scaffold.

Prototype-first development server. YAML schema, SQLite CRUD, live HTML editing.

v0.1.1 MIT Bun
scaffold.yml
name: My App

entities:
  Task:
    properties:
      - name
      - { name: status, type: enum,
        values: [todo, in_progress, done] }
      - { name: priority, type: integer }
    seed:
      - { name: "Design homepage" }
Terminal
$ scaffold dev

  scaffold.  http://localhost:1234

   Migrated 1 entity (tasks)
   Seeded 1 record
   6 API endpoints ready
   1 page with live editor
   Watching for changes…

Everything you need.

Define your data model once. scaffold generates the API, serves your prototypes, and lets you edit them live.

Schema-Driven API

Define entities in YAML. Get REST endpoints with filtering, sorting, pagination, and eager loading. Zero boilerplate.

Live Editor

Edit HTML in the browser. Inline text editing, element selection, drag to reorder, duplicate, delete. Changes save to disk.

Hot Reload

File watcher broadcasts changes to all connected browsers via WebSocket. Edit in your IDE, see it instantly.

Custom Functions

Add route handlers in functions/*.ts. Full access to the SQLite database and WebSocket broadcast.

Powered by Claude

AI-powered prototyping.

Claude understands your design system. Edit pages with natural language, generate new prototypes from descriptions, extract reusable components.

Edit with AI

Select an element or describe a change. AI modifies your page with full context of your design system and data model.

Generate Pages

Describe a new page. AI generates a complete prototype matching your project's existing style and conventions.

Component System

Extract patterns into reusable components. AI-powered palette with search, categorization, and one-click insertion.

AI prompt bar in the live editor
"Add a filter dropdown for status above the tasks table"
Page updated — 12 lines added. Live-reloaded across 3 browsers.
"Make it include an 'All' option and show counts per status"
Page updated — 8 lines modified. Live-reloaded across 3 browsers.

Iterative editing. AI sees your full page, design system, and data model on every request.

Get started in seconds.

# Install scaffold globally
$ bun install && bun link

# Create a new project
$ mkdir my-app && cd my-app
$ scaffold init .

# Edit scaffold.yml, add some .html prototypes, then:
$ scaffold dev
  scaffold.  http://localhost:1234
3
Dependencies
yaml, commander, anthropic sdk
Unit + E2E
Tests passing
Schema, CRUD, AI, editor, components
0
Build step
No webpack, no vite, no bundler