Agents
Agent drives the app
The tool calls an AI agent makes: read the running app, click and type in it, check its console and edit its files.
This is a real terminal. Click into it and type.
The project's files open here.
Changes save as you type. Press Escape, then Tab, to leave the editor.
The page the server serves shows here.
First run in this browser: the project is built once and cached, and npm and the WebAssembly build tools are downloaded on first use. Later runs start in seconds.
betaClientVM is pre-1.0 (v0.2.0): things can break, and APIs may change between releases. Found a bug? Open an issue.
About this demo
This is what an AI app builder does between a model’s turns. Each chip is one tool call from @clientvm/agent-api, made here in the browser exactly as it would be for a model’s tool_use block, and the terminal shows the call and the result the model would get back.
The preview is the agent’s own: preview_snapshot reads it as a text outline with element refs, preview_click and preview_type drive it, and preview_console returns what the page logged. edit_file changes the project, and the next load shows the change.
How it's built
import { createAgentTools } from '@clientvm/agent-api';
const tools = createAgentTools({ instance: app, previewContainer });
// send tools.definitions to the model; for each tool_use block it returns:
const result = await tools.call('preview_click', { port: 5050, text: 'Add item' });More demos
View all →Frameworks
Tailwind on Vite 8
Vite 8, React 19 and Tailwind CSS 4, with rolldown, lightningcss and Tailwind’s oxide scanner running as WebAssembly.
- Vite 8
- React 19
- Tailwind CSS 4
- WebAssembly
Servers
WebSocket chat
A chat room on Express and ws: the page talks to the server over a real WebSocket, and bash posts into the same room.
- Express 4
- ws 8
- npm 11
Frameworks
Todo app
A React todo app on the Vite dev server, with an API you can curl from bash and code that hot-reloads as you edit it.
- Vite 6
- React
- TypeScript
- bash
- git