Skip to content

ton-anywhere/bruna-mvp

Repository files navigation

Bruna UI 🎨

A minimalist, high-performance design critique tool powered by Gemma 4 on Cerebras.

Bruna UI provides instant, professional-grade UX/UI audits by analyzing screenshots and delivering actionable feedback via a panel of specialized AI agents—all with ultra-low latency.

Bruna UI demo

🚀 Core Loop

Upload Screenshot -> WebSocket Transport -> Gemma 4 Analysis -> Categorized Critique

✨ Features

  • Zero-Lag Feedback: Built for millisecond-level responses using Cerebras' inference speed.
  • High-Signal Audits: Specifically prompted to avoid "AI praise" and provide ruthless, constructive senior-level design critiques.
  • Parallel Expert Panel: Instead of a single response, Bruna UI dispatches the analysis to four specialized agents in parallel, streaming a "blind review" from each:
    • Accessibility Lead: Focuses on WCAG compliance and inclusive design.
    • Visual Architect: Critiques grid alignment, hierarchy, and professional polish.
    • UX Psychologist: Analyzes cognitive load and mental model friction.
    • Copy Specialist: Mercilessly edits for clarity, brevity, and conversion.
  • Stateless Pipeline: Designed for instant "One Frame -> One Response" flow with no database overhead.
  • Extreme Minimalism: Only dependencies essential to the visual loop are included.

🛠️ Tech Stack

  • Backend: Rails (Minimal mode)
  • Frontend: Stimulus + Tailwind
  • Transport: ActionCable (WebSockets) for low-latency image transmission.
  • AI Model: gemma-4-31b via the local Cerebras Ruby SDK.
  • Data Flow: Base64 encoded image pipeline.

📦 Getting Started

Prerequisites

  • Ruby installed
  • A CEREBRAS_API_KEY

Installation

  1. Clone the repository.
  2. Create a .env file in the root directory:
    CEREBRAS_API_KEY=your_key_here
  3. Install dependencies (Bundler will fetch the exact cerebras gem version 0.1.0 from GitHub):
    bundle install

Running the App

bin/dev

🧪 Verification

To ensure your CEREBRAS_API_KEY is configured correctly and the SDK is linked, run the smoke tests:

  • Test Basic API Call: ruby spec/smoke/test_api_call.rb
  • Test Vision/Image Analysis: ruby spec/smoke/test_vision_sdk_call.rb

🔗 Links & Submission

About

Bruna UI: High-performance AI design critique tool. Get instant UX/UI audits from screenshots powered by Gemma 4 on Cerebras.

Resources

Stars

Watchers

Forks

Contributors

Languages