{"id":13457546,"url":"https://github.com/SawyerHood/draw-a-ui","last_synced_at":"2025-03-24T14:32:08.032Z","repository":{"id":206126479,"uuid":"715427466","full_name":"SawyerHood/draw-a-ui","owner":"SawyerHood","description":"Draw a mockup and generate html for it","archived":false,"fork":false,"pushed_at":"2024-07-18T21:18:26.000Z","size":1030,"stargazers_count":13272,"open_issues_count":50,"forks_count":1590,"subscribers_count":101,"default_branch":"main","last_synced_at":"2024-10-29T15:09:22.035Z","etag":null,"topics":["ai","gpt","openai","react","typescript"],"latest_commit_sha":null,"homepage":"https://draw-a-ui.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SawyerHood.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-07T05:47:49.000Z","updated_at":"2024-10-29T07:35:47.000Z","dependencies_parsed_at":"2024-01-12T04:49:37.008Z","dependency_job_id":"b8ce56de-97d5-481d-9b03-06a90eee7fe0","html_url":"https://github.com/SawyerHood/draw-a-ui","commit_stats":null,"previous_names":["sawyerhood/draw-a-ui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SawyerHood%2Fdraw-a-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SawyerHood%2Fdraw-a-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SawyerHood%2Fdraw-a-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SawyerHood%2Fdraw-a-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SawyerHood","download_url":"https://codeload.github.com/SawyerHood/draw-a-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245289603,"owners_count":20591100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","gpt","openai","react","typescript"],"created_at":"2024-07-31T09:00:29.420Z","updated_at":"2025-03-24T14:32:07.658Z","avatar_url":"https://github.com/SawyerHood.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","AI","其他_机器视觉","目录","CTF Content Creation","Code Assistant","Load testing"],"sub_categories":["React Components","网络服务_其他","collection"],"readme":"# draw-a-ui\n\nThis is an app that uses tldraw and the gpt-4-vision api to generate html based on a wireframe you draw.\n\n\u003e I'm currently working on a hosted version of draw-a-ui. You can join the waitlist at [draw-a-ui.com](https://draw-a-ui.com). The core of it will always be open source and available here.\n\n![A demo of the app](./demo.gif)\n\nThis 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.\n\n\u003e 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.\n\n## Getting Started\n\nThis 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.\n\n\u003e Note this uses Next.js 14 and requires a version of `node` greater than 18.17. [Read more here](https://nextjs.org/docs/pages/building-your-application/upgrading/version-14).\n\n```bash\necho \"OPENAI_API_KEY=sk-your-key\" \u003e .env.local\nnpm install\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSawyerHood%2Fdraw-a-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSawyerHood%2Fdraw-a-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSawyerHood%2Fdraw-a-ui/lists"}