Assay
Describe an app and get one that runs. Agents write it, a QA gate runs it in a Node sandbox inside your browser tab, and anything broken goes back to the debugger first.
- Year
- 2026
- Role
- Solo. Design, build, deploy
- Stack
- Next.js, WebContainers, Monaco, AI SDK, Supabase

The problem
A generated app that builds can still show nothing.
An AI app builder can call a turn done just because the model stopped talking. In my own runs a turn could end looking fine with no files written, or with a dev server serving a white page. I wanted a builder that checks the app actually renders before it says done, and costs nothing to run.
What I built
A full workspace in one browser tab.
Chat, a Monaco editor, a file tree, a terminal and a live preview. WebContainers run npm install and the dev server inside the page, so the server only talks to the model. Six agent roles (architect, assistant, coder, debugger, designer, tester) share one loop, and free models on OpenRouter and Groq back it.
- sandboxA WebContainer per project. Reset between projects so an old app never leaks into a new one.
- agentsRoutes each turn to a role and declares the tools the model may call, with Zod schemas.
- QA gateAfter every generation it collects build errors, failed commands, runtime exceptions and structural problems, then hands them to the debugger. Up to two automatic retries.
- shipDiff preview before a write lands, 10 starter templates, GitHub push and Vercel deploy from the workspace.
Five tools, all run in your tab
The model never hand-writes markup. It calls one of these, the server checks the shape, and the browser runs it inside the WebContainer.
| Tool | What it does |
|---|---|
write_file | Creates or replaces a whole file. Never a diff or a placeholder |
run_command | Runs a one-off command, such as npm install |
start_dev_server | Starts the server once files and dependencies exist, so the preview appears |
read_file | Reads an existing file instead of guessing before an edit |
delete_file | Removes a file from the project |
Hard decisions
The calls that shaped it.
Tool calls, not a markup dialect
Asked for a custom XML format, models fell back to their trained
<tool_call>syntax. The parser found nothing, no files were written and the turn still looked successful. Tools now have schemas the provider enforces, and the server turns each call into the format the browser already runs.Read the files, not just the logs
QA once passed a todo app that rendered a white screen: no
index.htmland a stylesheet import that pointed nowhere. Nothing errors in that case, so the gate also reads the project and checks the entry file, the mount point and that every relative import resolves.Treat model output as hostile
A prompt-injected model or a poisoned file comes back through the same parser. Tests cover twelve path traversal shapes, forged and split actions and a 2 MB file body. The preview iframe gets the narrowest sandbox, since the generated app is untrusted code.
A second provider, not more models
Every free model sat on one OpenRouter account with one daily allowance, so they all failed together. Groq adds a second allowance. I probed its models with a real
write_filecall and kept the one that passed, and the fallback chain alternates providers.
Where it is now
Live, open source and free to run.
- Liveassay.mithunchavan.me, Chrome and Edge
- 63 commitsNext.js 16, React 19
- $0 a monthFree models, code runs in the visitor's browser
- TestedUnit tests for the sandbox, parser, orchestrator and hostile output, plus Playwright smoke and accessibility checks