Skip to content

screenshot-to-code

AI tool that turns screenshots, mockups and recordings into HTML, React or Vue code

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

58

Health

Active

Overview

Stars

81,409

Last commit

8 days ago

Nov 2026

Repository age

3 years

since Nov 2023

Latest version

–

Contributors

–

1 active in 90 days

Releases

0

last 12 months

Language

Python

Screenshot to Code takes a screenshot, mockup, Figma design or screen recording and asks AI models to write the front-end code for it. You pick an output stack: HTML with Tailwind, HTML with CSS, React with Tailwind, Vue with Tailwind, Bootstrap, or Ionic with Tailwind.

You can run it yourself. The frontend is React and Vite, and the backend is FastAPI, managed with Poetry. It needs at least one model key from OpenAI, Anthropic or Gemini. Gemini is required for video mode and for pulling real logos and images out of your screenshot. A Replicate key adds image generation, background removal and image editing. With more keys, the app mixes stronger models per variant and lets you compare results. A Docker setup exists, and a hosted version is run independently by evolvAI LLC.

It is MIT licensed. It suits people who want a code starting point from a design, not a replacement for a specific commercial product.

Who it's for

Front-end developers prototyping from mockups

You get a first draft in your framework of choice from an image, which you then edit by hand.

Skip if: You need pixel-exact production code with no manual cleanup.

Designers who want a quick working prototype

It accepts Figma designs and screen recordings as well as static screenshots.

Skip if: You do not want to obtain and pay for model API keys.

Teams that want to self-host an AI code generator

The MIT license and Docker support let you run it with your own keys.

Skip if: You prefer a hosted service with no setup.

The problem it solves

Turning a design or an existing page into working front-end code is slow, repetitive work. This tool produces a first version from an image or recording, so you start from code and not a blank file.

Strengths

  • Outputs six stacks, including React, Vue, Bootstrap and Ionic
  • Accepts screenshots, mockups, Figma designs and screen recordings
  • Supports OpenAI, Anthropic and Gemini models and can compare variants
  • MIT licensed and self-hostable with a React/Vite and FastAPI stack

Trade-offs

  • Needs at least one paid model provider API key
  • Video mode requires a Gemini key
  • Image tools need a Replicate key set in the backend env file
  • Local ollama models give poor results

Self-host screenshot-to-code

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Quick start

cd backend
echo "OPENAI_API_KEY=sk-your-key" > .env
echo "ANTHROPIC_API_KEY=your-key" >> .env
echo "GEMINI_API_KEY=your-key" >> .env
echo "REPLICATE_API_KEY=r8_your-key" >> .env
poetry install

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

The code is MIT licensed and free to run. You pay your model providers for API usage.

Can I self-host it?

Yes. Run the FastAPI backend and React/Vite frontend yourself, with a Docker option available.

Which stacks can it generate?

HTML with Tailwind, HTML with CSS, React with Tailwind, Vue with Tailwind, Bootstrap, and Ionic with Tailwind.

Which API keys do I need?

At least one of OpenAI, Anthropic or Gemini. Gemini is needed for video mode and Replicate for image editing.

Similar tools in AI coding assistants

FauxPilot

AI coding assistants

15k 635 3 years ago Dormant MIT

Happy

AI coding assistants

25k 2.1k yesterday Active MIT

mistral-vibe

AI coding assistants

5.5k 811 3 days ago Thriving Apache-2.0

Dyad

AI coding assistants

Desktop AI app builder that runs locally with your own API keys, for developers

22k 2.8k today Thriving Apache-2.0

Replaces Lovable

agentsview

AI coding assistants

6.5k 681 today Thriving MIT