Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

draw-a-ui

> 前端框架
Open source

Draw a mockup and generate html for it

13.6K stars0 likes1 views
WebsiteGitHub

About

Draw a mockup and generate html for it

draw-a-ui

This is an app that uses tldraw and the gpt-4-vision api to generate html based on a wireframe you draw.

The spiritual successor to this project is Terragon Labs.

This works by just taking the current canvas SVG, converting it to a PNG, and sending that png to gpt-4-vision with instructions to return a single html file with tailwind.

Disclaimer: This is a demo and is not intended for production use. It doesn't have any auth so you will go broke if you deploy it.

Getting Started

This is a Next.js app. To get started run the following commands in the root directory of the project. You will need an OpenAI API key with access to the GPT-4 Vision API.

Note this uses Next.js 14 and requires a version of node greater than 18.17. Read more here.

bash
echo "OPENAI_API_KEY=sk-your-key" > .env.local
npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Issues· 51 open

View all issuesOpen on GitHub
  • #108

    แนะนำ 13 เว็บ สล็อตเว็บตรง เว็บแท้ สล็อต pg เว็บตรง แตกหนัก RTP สูงสุด 98% รับวอเลท ปี2026

    Updated Sep 8, 2026
  • #104

    Map

    Updated Mar 20, 2025
  • #82

    Error from open ai: "slow down"

    Updated Feb 8, 2025
  • #100

    Improving the UI

    Updated Oct 18, 2024
  • #45

    Please add LLaVA

    Updated Oct 14, 2024
  • #52

    Feature: Ollama Support

    Updated Oct 14, 2024
  • #83

    local model support

    Updated Oct 14, 2024
  • #98

    Hydration Error in Google Chrome but not in Microsoft Edge (Error Resolved After Refresh)

    Updated Oct 11, 2024
  • #88

    Add dark mode

    Updated Jul 11, 2024
  • #87

    Add Framework Options

    Updated Apr 11, 2024

> Tags

TypeScriptaigptopenaireact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架