Latest / AI & agents

screenshot-to-code

github.com · Open source · Active

Turn screenshots into clean HTML and Tailwind code with GPT-4 Vision

Visit github.com ↗Share

Stars
81.5k
Forks
10k
Open issues
127
Last commit
Found
3 years ago

GitHub figures as of . They are context, not a ranking.

screenshot-to-code is a React and Python app that turns a website screenshot into clean HTML and Tailwind code using GPT-4 Vision and DALL-E 3 for placeholder images. It needs an OpenAI key with vision access and suits developers who want a starting point for landing pages.

Repository description on GitHub: “Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)”

What it does

  • Converts screenshots, mockups and Figma designs into code
  • Generates HTML, React, Vue or Ionic output with Tailwind, CSS or Bootstrap
  • Creates placeholder images for the generated page
  • Turns a screen recording of a website into a functional prototype

Good for

  • Turn a landing page screenshot into a starting-point HTML layout
  • Convert a Figma mockup or screen recording into front-end code

Suits: Developers who want a starting point for landing pages from a screenshot.

Worth knowing: Needs an API key for a vision-capable model, such as OpenAI with GPT-4 Vision access

What you can try

Run it locally from the GitHub repo with an OpenAI key that has vision access.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw screenshot-to-code on , when abi posted it to Show HN. GitHub listed no published releases for abi/screenshot-to-code when checked , so the project may ship straight from its main branch. The repository was created .

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 358 points, 90 comments. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 358 points, 90 comments. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: abi/screenshot-to-code
  2. Found: abi posted it to Show HN. Show HN
  3. Day-7 check recorded by Kip (details)
  4. Day-30 check recorded by Kip (details)

Quick answers

When was screenshot-to-code released?
No dated release record is available. Kip found it on Show HN on 16 Nov 2023.
Is screenshot-to-code open source?
Its source is public on GitHub at abi/screenshot-to-code under the MIT licence.
What does screenshot-to-code run on?
Web, Self-hosted.
Is screenshot-to-code free?
It is open source, so the code is free to read and run; check the licence for terms.
Is screenshot-to-code still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryabi/screenshot-to-code
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-38285228. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in AI & agents

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.