freshcrate
Home > Infrastructure > Buildable

Buildable

AI-powered web app builder โ€” describe it, build it, ship it. 2-agent LangGraph system (Sonnet 4.5 + o4-mini) generates React apps from natural language with live preview and one-click deploy.

Description

AI-powered web app builder โ€” describe it, build it, ship it. 2-agent LangGraph system (Sonnet 4.5 + o4-mini) generates React apps from natural language with live preview and one-click deploy.

README

Buildable

Describe it. Build it. Ship it.

Buildable is an AI-powered web application builder that converts natural language descriptions into production-ready React apps. A 2-agent LangGraph system generates and iterates on code in an isolated E2B sandbox โ€” with live preview, iterative chat refinement, and one-click deployment to Cloudflare Pages.

Buildable Demo

How It Works

  1. Describe โ€” Write what you want in plain English
  2. Build โ€” A build agent (Sonnet 4.5) generates your app with automatic prompt enhancement
  3. Iterate โ€” Refine with follow-up messages; an edit agent (o4-mini) makes surgical changes with build validation
  4. Ship โ€” Preview live, download as ZIP, or deploy to Cloudflare Pages

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      Frontend                           โ”‚
โ”‚          Next.js 16 ยท TypeScript ยท Tailwind v4          โ”‚
โ”‚          shadcn/ui ยท Monaco Editor ยท SSE Client         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                       โ”‚ HTTPS (SSE)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Backend (FastAPI)                     โ”‚
โ”‚                                                         โ”‚
โ”‚  โ”Œโ”€โ”€โ”€ First Build โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ guardrail โ†’ enhancer โ†’ build agent โ†’ assembler     โ”‚ โ”‚
โ”‚  โ”‚                                    โ†’ sandbox       โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚  โ”Œโ”€โ”€โ”€ Follow-up โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
โ”‚  โ”‚ guardrail โ†’ edit agent โ†’ validate โ‡„ error fix      โ”‚ โ”‚
โ”‚  โ”‚                        โ†’ sandbox                   โ”‚ โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
โ”‚                                                         โ”‚
โ”‚  Auth (JWT) ยท PostgreSQL ยท Cloudflare R2 ยท E2B Sandbox  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

2-Agent System

Agent Model Tools Role
Build Sonnet 4.5 create_app, web_search Initial app generation from prompt
Edit o4-mini modify_app, chat_message, web_search Follow-up edits + error fixes

Supporting steps:

  • Guardrail โ€” Classifies every message as "build" or "chat" (questions vs change requests)
  • Prompt Enhancer โ€” Lightly expands vague prompts (e.g. "todo app" โ†’ adds key features). Additive only, skipped if prompt is already detailed
  • Assembler โ€” Merges LLM files with base template, protects locked config files
  • Validation Loop โ€” On edits: write โ†’ npm run build โ†’ if fail โ†’ error fix agent โ†’ retry (max 3)

Tech Stack

Backend: Python 3.12+, FastAPI, LangGraph, LangChain, SQLAlchemy (async), E2B, Cloudflare R2, Alembic

Frontend: Next.js 16 (App Router), TypeScript, Tailwind CSS v4, shadcn/ui, Monaco Editor, Axios, SSE

Infrastructure: DigitalOcean, Nginx, Certbot, Terraform, Neon PostgreSQL, Vercel

Models: Hardcoded via OpenRouter (BYOK) โ€” Sonnet 4.5 for builds, o4-mini for edits/guardrail/enhancement

Getting Started

Prerequisites

  • Python 3.12+
  • uv (Python package manager)
  • Node.js 24+
  • Docker (for PostgreSQL)
  • E2B API key

Setup

# Clone
git clone https://github.com/BihanBanerjee/Buildable.git
cd Buildable

# Backend
cp .env.example .env          # Fill in required values
docker-compose up -d           # Start PostgreSQL
uv sync                        # Install Python deps
uv run alembic upgrade head    # Run migrations
uv run main.py                 # Start backend on :8000

# Frontend
cd frontend
npm install
npm run dev                    # Start frontend on :3000

Environment Variables

Variable Required Description
DATABASE_URL Yes PostgreSQL connection string (asyncpg)
SECRET_KEY Yes JWT signing key
E2B_API_KEY Yes E2B sandbox API key
E2B_TEMPLATE_ID No Custom E2B template
R2_ACCESS_KEY No Cloudflare R2 access key
R2_SECRET_KEY No Cloudflare R2 secret key
R2_ENDPOINT No Cloudflare R2 endpoint URL
R2_BUCKET_NAME No R2 bucket name
CLOUDFLARE_ACCOUNT_ID No Cloudflare account ID (for deployment)
CLOUDFLARE_API_TOKEN No Cloudflare API token (for deployment)
FRONTEND_URL No Frontend URL for CORS (default: http://localhost:3000)

Project Structure

โ”œโ”€โ”€ main.py                    # FastAPI entry point
โ”œโ”€โ”€ agent/
โ”‚   โ”œโ”€โ”€ service.py             # Orchestration + sandbox lifecycle
โ”‚   โ”œโ”€โ”€ agent.py               # LLM configuration (models, OpenRouter)
โ”‚   โ”œโ”€โ”€ build_agent.py         # Build agent (Sonnet 4.5)
โ”‚   โ”œโ”€โ”€ edit_agent.py          # Edit agent + error fix (o4-mini)
โ”‚   โ”œโ”€โ”€ tools.py               # Pure-data tools (create_app, modify_app, etc.)
โ”‚   โ”œโ”€โ”€ prompts.py             # All LLM prompts
โ”‚   โ”œโ”€โ”€ assembler.py           # Merge generated files with base template
โ”‚   โ”œโ”€โ”€ sandbox.py             # E2B sandbox lifecycle
โ”‚   โ””โ”€โ”€ base_template.py       # Base project files + LOCKED_FILES
โ”œโ”€โ”€ auth/                      # JWT auth (register, login, refresh)
โ”œโ”€โ”€ db/                        # SQLAlchemy models + base
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ r2.py                  # Cloudflare R2 client
โ”‚   โ”œโ”€โ”€ store.py               # Dual-write (R2 + local cache)
โ”‚   โ””โ”€โ”€ cloudflare.py          # Cloudflare Pages deployment
โ”œโ”€โ”€ alembic/                   # Database migrations
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ app/                   # Next.js pages (/, /chat, /chat/[id])
โ”‚   โ”œโ”€โ”€ components/            # UI components (shadcn + chat)
โ”‚   โ”œโ”€โ”€ lib/                   # SSE handlers, types, utils
โ”‚   โ””โ”€โ”€ api/                   # Axios client (auth, chat)
โ”œโ”€โ”€ deploy/                    # Terraform + systemd service
โ”œโ”€โ”€ nginx/                     # Nginx config + SSL setup
โ””โ”€โ”€ .github/workflows/         # CI/CD pipelines

CI/CD

  • CI โ€” Runs on every push: frontend lint + build, backend ruff + syntax check
  • CD โ€” Auto-deploys backend to DigitalOcean after CI passes
  • Frontend โ€” Auto-deployed by Vercel on push

License

MIT

Release History

VersionChangesUrgencyDate
0.0.0No release found โ€” using repo HEADHigh4/11/2026
main@2026-04-11Latest activity on main branchHigh4/11/2026
main@2026-04-11Latest activity on main branchHigh4/11/2026
main@2026-04-11Latest activity on main branchHigh4/11/2026
main@2026-04-11Latest activity on main branchHigh4/11/2026
main@2026-04-11Latest activity on main branchHigh4/11/2026
main@2026-04-11Latest activity on main branchMedium4/11/2026
main@2026-04-11Latest activity on main branchMedium4/11/2026
main@2026-04-11Latest activity on main branchMedium4/11/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

autopoeA structured multi-agent framework for coordinated AI collaborationv0.2.12
agentic-rag๐Ÿ“„ Enable smart document and data search with AI-powered chat, vector search, and SQL querying across multiple file formats.main@2026-04-21
openclaw-gateway๐Ÿ”— Connect your phone directly to AI agents with OpenClaw Gateway, an open-source WebSocket solution free from third-party oversight.main@2026-04-21
ai-lead-qualifier๐Ÿง  Qualify leads with an AI-driven system that understands intent, asks key questions, and structures quality leads without hardcoding processes.main@2026-04-21
mcp-audit๐ŸŒŸ Track token consumption in real-time with MCP Audit. Diagnose context bloat and unexpected spikes across MCP servers and tools efficiently.main@2026-04-21