draw-a-ui  by SawyerHood

Web app generates HTML from UI wireframes

created 1 year ago
13,527 stars

Top 3.7% on sourcepulse

GitHubView on GitHub
Project Summary

This project enables users to draw UI mockups and automatically generate HTML with Tailwind CSS using GPT-4 Vision. It's targeted at designers and developers looking for a rapid prototyping tool, offering a novel approach to translating visual wireframes into functional code.

How It Works

The application leverages tldraw for the drawing canvas and integrates with the GPT-4 Vision API. It converts the drawn canvas into a PNG image, which is then sent to GPT-4 Vision with a prompt to generate a single HTML file styled with Tailwind CSS. This method allows for a natural, visual input to code generation.

Quick Start & Requirements

  • Install dependencies: npm install
  • Run the development server: npm run dev
  • Requires an OpenAI API key with GPT-4 Vision access.
  • Node.js version greater than 18.17.
  • Access the app at http://localhost:3000.
  • Official documentation: draw-a-ui.com

Highlighted Details

  • Generates HTML with Tailwind CSS from hand-drawn wireframes.
  • Utilizes tldraw for an interactive drawing interface.
  • Integrates with OpenAI's GPT-4 Vision API for code generation.

Maintenance & Community

The project is actively developed by SawyerHood. A hosted version is planned with a waitlist available at draw-a-ui.com.

Licensing & Compatibility

The core of the project is open source. The specific license is not detailed in the README, but it is presented as available for use.

Limitations & Caveats

This is a demo and not intended for production use due to a lack of authentication, which could lead to significant costs if deployed.

Health Check
Last commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
98 stars in the last 90 days

Explore Similar Projects

Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

screenshot-to-code by abi

0.1%
70k
Screenshot-to-code tool for generating code from visual inputs
created 1 year ago
updated 6 days ago
Feedback? Help us improve.