Skip to content

Latest commit

Β 

History

History
121 lines (96 loc) Β· 4.52 KB

File metadata and controls

121 lines (96 loc) Β· 4.52 KB

BuildBrief πŸš€

From Vague Idea to Production-Ready Spec β€” in minutes, not weeks.

BuildBrief is an AI-powered interview app that transforms half-baked app ideas into comprehensive "Mega-Prompt" specifications. Designed for vibecoders β€” people building apps with AI tools like Cursor, Windsurf, and Bolt β€” it acts as a Senior Technical Product Manager, asking the right questions, making smart decisions automatically, and producing a spec document you can hand directly to an AI coding agent.

✨ Features

  • AI-Driven Interview β€” A dynamic 5–10 question flow that adapts based on your project's complexity. No fixed questionnaire.
  • Idea Analysis β€” Validates your concept immediately with a vision statement, implementation approaches, and honest cautions.
  • Auto-Decisions β€” The AI makes non-critical technical decisions for you (database type, auth method, folder structure) and shows them in a live sidebar.
  • Target-Specific Exports β€” Export your spec formatted for Cursor (.cursorrules), Windsurf (.windsurfrules), or Bolt, or download as Markdown.
  • Task Breakdown β€” Post-spec AI-generated implementation checklist with phases, priorities, and time estimates. Interactive β€” check off tasks as you build.
  • Starter Prompt β€” A ready-to-paste first message for your AI coder, generated alongside the spec.
  • Session Persistence β€” Your interview progress survives tab closes and page refreshes (localStorage with 24h expiry).
  • Error Recovery β€” Automatic retries with visual feedback. Go Back and Start Over buttons at every step.
  • Existing Project Support β€” "I have an existing project" mode that focuses on extensions, not starting from scratch.
  • Aurora Design System β€” A premium glassmorphic dark/light UI with Clash Display typography and subtle grain textures.

πŸ› οΈ Tech Stack

Client

  • React 18 + Vite 5
  • TypeScript (strict mode)
  • Tailwind CSS v4 + Aurora design system
  • Framer Motion (animations)
  • Lucide React (icons)
  • React Markdown + React Router

Server

  • Node.js + Express
  • OpenRouter API (xiaomi/mimo-v2-flash)
  • TypeScript (strict mode)
  • Zod (request validation)
  • Winston-style structured logger

Shared

  • Unified type definitions in shared/types.ts
  • Path aliases (@shared/*) configured in both client and server

πŸš€ Getting Started

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/arjun-arihant/BuildBrief.git
    cd buildbrief
  2. Setup Server

    cd server
    npm install
    cp .env.example .env

    Edit .env and set your OPENROUTER_API_KEY.

  3. Setup Client

    cd ../client
    npm install

Running the App

  1. Start the Server (Terminal 1)

    cd server
    npm run dev

    Server runs on http://localhost:3000.

  2. Start the Client (Terminal 2)

    cd client
    npm run dev

    Client runs on http://localhost:5173.

  3. Open http://localhost:5173 in your browser.

πŸ“– How It Works

  1. Describe your idea β€” "A Tinder for adopting rescue dogs" is enough.
  2. AI analyzes it β€” You get a vision statement, suggested app name, and implementation approaches.
  3. Answer a few questions β€” The AI asks only what matters architecturally (5–10 questions max).
  4. Review auto-decisions β€” Watch the sidebar fill with smart defaults the AI chose for you.
  5. Get your spec β€” A detailed Mega-Prompt covering user stories, data models, API design, and tech stack.
  6. Break into tasks β€” Optional: generate a phased implementation checklist with time estimates.
  7. Export & build β€” Download for Cursor/Windsurf/Bolt and start building immediately.

πŸ“ Project Structure

buildbrief/
β”œβ”€β”€ client/          # React frontend (Vite)
β”‚   └── src/
β”‚       β”œβ”€β”€ components/  # UI components + templates
β”‚       β”œβ”€β”€ hooks/       # usePersistedSession
β”‚       β”œβ”€β”€ lib/         # exportFormats, utils
β”‚       └── pages/       # LandingPage, AppPage
β”œβ”€β”€ server/          # Express backend
β”‚   └── src/
β”‚       β”œβ”€β”€ index.ts     # Routes + middleware
β”‚       β”œβ”€β”€ openrouter.ts # AI integration
β”‚       β”œβ”€β”€ prompts.ts   # System prompts
β”‚       └── state.ts     # In-memory session store
β”œβ”€β”€ shared/          # Shared TypeScript types
β”‚   └── types.ts
└── docs/            # GitHub Pages site

πŸ“„ License

MIT