Description
Prompt to Diagram is a browser demo that turns a text description into an Excalidraw diagram. You describe a system, a flow or a schema, and the Gemma 4 E2B language model writes a short piece of code that is rendered as an editable Excalidraw drawing. The model runs on your own machine through WebGPU, and the page says everything happens in your browser. The demo includes sample prompts such as an OAuth sequence diagram, a CI/CD pipeline, a TCP state machine, an e-commerce schema, payment classes and a checkout swimlane. To reduce memory use, it compresses the model's KV cache about 2.4 times with a TurboQuant-style algorithm rewritten as WGSL compute shaders, which the page says lets longer conversations fit in GPU memory. It needs desktop Chrome 134 or newer with WebGPU subgroups and roughly 3 GB of RAM, and it does not run on Safari or iOS yet. A related turboquant-wasm package, published on npm and GitHub, implements the same algorithm in WASM for vector search on the CPU.…
Highlights
- Turns text prompts into editable Excalidraw diagrams
- Runs in the browser with WebGPU
- Sample prompts for sequence, pipeline and schema diagrams
- KV cache compressed about 2.4 times
Ratings & Reviews
No ratings yet
Be the first to rate Prompt → Diagram.
People also visit
Fireworks Tech Graph
Generate production-quality SVG+PNG technical diagrams from natural language
Prompt → Diagram FAQ
What does the demo do?
It generates Excalidraw diagrams from a text description, such as an OAuth flow or a database schema, using the Gemma 4 E2B model.
Which browsers work?
Desktop Chrome 134 or newer. The page says Safari and iOS are not supported yet, and mobile browsers have less memory available.
Are my prompts sent to a server?
No. The page says the model runs entirely in your browser on your GPU.
How much memory does it need?
The page says about 3 GB of RAM. Mobile browsers cap well below that.
How do I start?
Open the demo and wait for the model to load. Pick a sample or type a prompt, then press Generate Diagram or Cmd+Enter.
Is the underlying project public?
The related turboquant-wasm project is published on GitHub and npm.
What are the best Prompt → Diagram alternatives?
Popular alternatives to Prompt → Diagram include ChatLLM-Web, Fireworks Tech Graph and Graphologue. See all Prompt → Diagram alternatives










