# Screenshot to Code

> Screenshot to Code converts an image or screen recording of a website into front-end code in HTML + Tailwind, HTML + CSS, React, Vue, Bootstrap or Ionic. It runs locally as a FastAPI backend and React frontend, or with Docker. It needs at least one OpenAI, Anthropic or Gemini key, and Gemini plus Replicate are recommended; Ollama works but the README says results are poor. It produces front-end code only: no backend, database or hosting. MIT; there is also a paid hosted version.

- Repository: https://github.com/abi/screenshot-to-code
- Official docs: https://github.com/abi/screenshot-to-code#readme
- Checked: 2026-10-15

## What it replaces
- Lovable: Turn a screenshot (partial). Recreates a screen as front-end code; no full-stack app, backend or publishing.
- Bolt.new: Turn a screenshot or design into an app (image or Figma import) (partial). Recreates a screen as front-end code; no full-stack app, backend or publishing.

## Facts, with sources

| Question | Status | Answer | Source | Checked |
|---|---|---|---|---|
| Runs on my machine? | Confirmed | Yes, backend and frontend run on your machine (or Docker); models are cloud APIs | https://github.com/abi/screenshot-to-code#-getting-started | 2026-10-15 |
| Code licence | Confirmed | MIT | https://github.com/abi/screenshot-to-code/blob/main/LICENSE | 2026-10-15 |
| Model weights licence | Confirmed | No separate model weights | https://github.com/abi/screenshot-to-code#readme | 2026-10-15 |
| Commercial use | Confirmed | Yes, MIT | https://github.com/abi/screenshot-to-code/blob/main/LICENSE | 2026-10-15 |
| Paid services needed? | Partial | Normally needs an OpenAI, Anthropic or Gemini key (Replicate recommended); Ollama is possible but not recommended | https://github.com/abi/screenshot-to-code#api-keys | 2026-10-15 |
| Hardware | Unknown | Not documented | none found | - |
| Operating systems | Partial | Windows and Linux are mentioned in setup notes; macOS not stated; Docker available | https://github.com/abi/screenshot-to-code#-faqs | 2026-10-15 |
| Setup effort | Confirmed | Medium; Poetry backend plus pnpm frontend, or docker-compose | https://github.com/abi/screenshot-to-code#docker | 2026-10-15 |

GitHub: 80405 stars, 9822 forks, last push 2026-10-09, archived: no.
---
Source: RepoQuarry (https://repoquarry.dev/projects/screenshot-to-code). Data licence: CC BY 4.0. Quotes are from project documentation and belong to their authors.
