Real components, zero production leak
Prototypes compile with your own Vite config. Build guards fail vite build if prototype code leaks into production or touches live network clients.

@protohq/cliReact 19 + Vite 8
Live UI prototypes from your real components. Point at the screen in Proto, drop a comment, and let your coding agent fix the exact JSX line while you stay in charge of approval.

The problem
The interface is the last thing anyone sees, so every opinion lands after the code exists, in chat threads and screenshots. And the prototypes meant to prevent that are throwaway HTML that look nothing like your app.
Before Proto: HTML prototypes that don't use your components, a 3 hour agent run of 41 files nobody has seen on screen, and a chat of team feedback, round after round. After Proto: the same checkout on a live screen with your real components and comments pinned to the exact element.
Before: one screen, six rounds
After: one live screen in Proto


Same checkout. Your real components. Reviewed before the code ships.
Stop paying for rounds. Point at the screen, and your agent gets the exact element and JSX line.
Inside the Proto review app
Point at any element inside Proto to anchor a comment thread with its state, role, viewport and exact JSX source line. Switch to Agent JSON anytime to see the structured payload your coding agent reads.
Try clicking any of the 6 pinned elements
stay-checkout · ready · 996 × 698
Not another mockup
AI mockups and HTML prototypes look like nobody's app, and none of it ships. Proto renders a *.proto.tsx beside your real view, with your components, tokens and Vite config. Drag to compare.

✨ Complete Your Booking!
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
📅 Trip Details
🛏️ Select Room
💳 Payment Info
Beautiful Beach House
⭐⭐⭐⭐⭐ 4.9 · Amazing location
import { definePrototype } from "@protohq/cli";import { StayCheckout } from "./stay-checkout"; // the one production renders export const meta = definePrototype({ title: "Stay checkout", roles: ["guest", "member"], states: [{ id: "ready" }, { id: "card-error" }, …],}); export default function Prototype({ state }) { return <StayCheckout {...BASE_CHECKOUT} {...overrides[state]} />;}The same Button, tokens, fonts and providers production uses. No lookalike to keep in sync.
Loading, errors, empty, roles, dark mode and 390px mobile, from fixtures. No backend needed.
The prototype renders the real view, so what people sign off on is the code that ships.
The review loop
Four steps, one loop. Every frame is the real Proto app reviewing the Solstice example that ships with the CLI.
Step 01 of 4
Write a *.proto.tsx next to the production component. Proto renders it with your Vite config, then lets you flip through every state, role and theme.

01 · 7 states · Guest & Member roles · light & dark
Bring your own agent
Proto is not an AI and doesn't sell one. It gives the coding agent you already pay for the comments, the exact element and the JSX line to fix. Connect it in one command.
US$0
in AI fees from Proto. Ever.
Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, Antigravity, Claude Desktop, Qwen Code, Kimi CLI, and any agent that can run a terminal command or connect to MCP.
Your agent subscriptions and API keys stay yours. Proto never proxies or resells model access.
Quick startRequires a React 19 + Vite 8 app
Under the hood
Prototypes compile with your own Vite config. Build guards fail vite build if prototype code leaks into production or touches live network clients.

Wire defineFlow graphs across states and routes. Proto flags uncovered edge cases automatically in the sidebar and in proto check --json.

Inspect desktop, tablet and 390px phone viewports in isolated iframes. Every comment pin records the exact viewport width it was anchored at.

Flip Guest, Member and Host fixtures straight from the gallery toolbar — no auth hacks, mock servers or throwaway branches.

One shared local gallery on 127.0.0.1:4400 serves every project. Review threads save to proto/review/*.json under per-key locks — diffable in git.

Approving records the git commit hash and reviewer identity. Coding agents can read, fix and resolve threads — never self-approve.

See it before your AI ships it
Write a prototype beside your view. Share a live link when the team needs to see it. Let your agent fix the exact line while you stay in charge of approval.
