Skip to content

@protohq/cliReact 19 + Vite 8

See it before your AI ships it.

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.

Star on GitHubRead the docs
Proto review app showing Solstice Stay checkout with Reviewer pin #1 on Reserve stay, the open comment in the Comments panel, and the Approve button

The problem

Agents write the code in hours. Getting the screen right still takes all week.

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

The same checkout in Proto on a phone, with a comment pinned to the Reserve button

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

Click anything on the screen.

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

SolsticeStay checkout
1 openApprove

stay-checkout · ready · 996 × 698

Not another mockup

Prototype with your components. Not HTML you throw away.

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.

The Solstice checkout rendered by Proto from the app's own StayCheckout component
HTML mockup · thrown awayYour components in Proto · ships
⟷
src/components/stay-checkout.proto.tsxbeside the real view
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]} />;}
  • 01

    Your design system, for real

    The same Button, tokens, fonts and providers production uses. No lookalike to keep in sync.

  • 02

    Every state, before it exists

    Loading, errors, empty, roles, dark mode and 390px mobile, from fixtures. No backend needed.

  • 03

    Approved means already built

    The prototype renders the real view, so what people sign off on is the code that ships.

The review loop

From live screen to human approval, in one app.

Four steps, one loop. Every frame is the real Proto app reviewing the Solstice example that ships with the CLI.

Step 01 of 4

Prototype every state beside your view

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.

Proto gallery with the state picker open on Solstice Stay checkout, listing seven states

01 · 7 states · Guest & Member roles · light & dark

Bring your own agent

Works with the agent you already use.

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.

  • CLIAny agent that runs a terminal reads and answers comments with --json.
  • MCPLocal MCP server for every client, remote OAuth MCP on Pro.
  • SkillsShipped skills teach your agent the review loop on install.

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

Built like a studio tool, wired into your build.

Explore the docs
GUARDSguards.productionBoundary

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.

Close-up of Solstice stay checkout compared side by side in light and dark themes
FLOWSproto check --json

Multi-screen journeys + coverage checks

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

Close-up of the Stay booking flow sidebar listing uncovered prototype states
VIEWPORTSviewport: 390 × 798

390px mobile & desktop frames

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

Close-up of Solstice stay checkout inside Proto's 390px phone viewport
ROLESroles: { guest, member, host }

Switch roles without backend seeds

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

Close-up of Solstice Trip inbox in Host role with pink pin #1 on Accept reservation
LOCAL-FIRST127.0.0.1:4400 · proto/review/

Plain JSON threads right in git

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.

Close-up of Proto local gallery overview listing Solstice specs and journeys
APPROVALApproved by Reviewer

Agents fix and reply. People approve.

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

Close-up of the Approved pill beside resolved Comment #1 and agent reply

Where Proto fits

Before code review, with your real components.

Design tools draw pictures of UI. AI generators scaffold new apps. Storybook catalogs isolated components. Proto runs the review loop on your real screens.

Full comparison & sources

Uses your production components

Proto
Yes
Design tools
—
AI generators
—
Storybook
Yes

Live interactive screens in the browser

Proto
Yes
Design tools
Partial
AI generators
Yes
Storybook
Yes

Multi-screen user flows with coverage checks

Proto
Yes
Design tools
Yes
AI generators
—
Storybook
—

Anchored comments with JSX source chain

Proto
Yes
Design tools
—
AI generators
—
Storybook
—

Coding agents read & reply via CLI / MCP

Proto
Yes
Design tools
Partial
AI generators
—
Storybook
—

Pricing & quick start

Start free locally. Add Pro when your team reviews.

Free

Local only · Forever

US$0

Local prototypes, flows, anchored comments, static builds and stdio MCP — free forever, including for commercial projects.

  • Runs on 127.0.0.1:4400 with plain JSON in git
  • Full CLI --json + local stdio MCP server

Pro

Per Editor seat

US$15/ seat / month

Or US$12/mo (US$144 billed yearly) · Taxes added at checkout

Hosted share links on protohq.app, invited guest reviewers without accounts, remote OAuth MCP and persistent review history.

  • Guest reviewers never need a paid seat or Proto account
  • Straightforward seat billing via Stripe Tax
Pro opens soonCompare plans

See it before your AI ships it

Point at the screen, not the code.

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.

Proto's illustrated cast characters gathered in a studio pointing at and reviewing a giant screen together