Demo app that turns a wireframe you draw on a tldraw canvas into an HTML page with GPT-4 Vision
open sourceMITfree
draw-a-ui is a demo Next.js app by Sawyer Hood that turns a wireframe drawn on a tldraw canvas into a web page: it converts the canvas to an image and asks GPT-4 Vision to return a single HTML file styled with Tailwind. You run it locally with your own OpenAI API key. It's MIT licensed. It's no longer developed: the last commit was in July 2025, and its README names Terragon Labs, since shut down, as its successor.
Problems it solves
- I want to sketch a UI and get working HTML for it
- I need to turn a wireframe drawing into a Tailwind page
- I want to see how sketch-to-code with a vision model works
Features
- Draw a wireframe on a tldraw canvas
- Generates a single HTML file with Tailwind via GPT-4 Vision
- Runs locally with your own OpenAI key
Limitations
Alternatives
The same job
These do what draw-a-ui does.
- OpenUI Open source tool to describe a UI in words and see it rendered live, from Weights & Biases
