Skip to main content
AdOpenFree logoPromote your productReach more potential users and drive product growth and revenue.Advertise
Favicon of Screenshot to Code

Screenshot to Code

Free Listing

Screenshot to Code converts screenshots, mockups, Figma designs, and screen recordings into clean, functional code using AI, supporting HTML/Tailwind, HTML/CSS, React/Tailwind, Vue/Tailwind, Bootstrap, and Ionic/Tailwind.

Visit abi/screenshot-to-code

Overview

Screenshot to Code is an open-source project and hosted product that uses AI to turn screenshots, mockups, Figma designs, and screen recordings into clean, functional code. It supports multiple frontend stacks and lets users run locally or use the hosted app.

Key Features

  • Convert screenshots, mockups, Figma designs, and screen recordings into clean, functional code using AI.
  • Supported stacks: HTML + Tailwind, HTML + CSS, React + Tailwind, Vue + Tailwind, Bootstrap, and Ionic + Tailwind.
  • Default AI models include Gemini 3 Flash Preview, Gemini 3.1 Pro Preview, GPT-5.5, GPT-5.4 Mini, Claude Opus 4.6, Claude Opus 4.8, and z-image-turbo via Replicate.
  • Supports turning a screen recording of a website in action into a functional prototype.
  • With multiple provider keys, the app can compare models and automatically pick a stronger mix of models per variant.
  • Optional screenshot preview lets the agent render generated pages in a headless browser and visually check its work.

Use Cases

  • Converting a screenshot into clean HTML, Tailwind, React, Vue, or other supported code.
  • Turning Figma designs or mockups into functional frontend code.
  • Creating a functional prototype from a screen recording of a website in action.
  • Comparing multiple AI model providers per generation when multiple API keys are configured.

Getting Started

  • Use the hosted app for the fastest way to try Screenshot to Code with no local setup.
  • Run locally by setting up the React/Vite frontend and FastAPI backend; local operation requires API keys.
  • Backend setup uses Poetry: install dependencies, configure .env with model provider keys, install Chromium through Playwright, activate the Poetry environment, and run uvicorn main:app --reload --port 7001.
  • Frontend setup uses pnpm: run pnpm install and pnpm dev.
  • Docker setup: from the root directory, create .env with OPENAI_API_KEY and run docker-compose up -d --build.

Deployment & Requirements

  • Running locally requires API keys and a backend/frontend setup. The app has a React/Vite frontend and a FastAPI backend.
  • You need at least one model provider key among OpenAI, Anthropic, or Gemini; Gemini and Replicate are strongly recommended for the best quality.
  • Replicate must be configured in backend/.env as REPLICATE_API_KEY; without it, edit_images and remove_backgrounds are unavailable.
  • Optional screenshot preview requires Chromium installed via Playwright or automatically in the Docker image; if Chromium is missing, the app skips the tool.
  • Docker deployment requires Docker installed and a .env file with OPENAI_API_KEY; docker-compose up -d --build starts the app.

Before You Adopt

  • License: MIT. Review its terms before using, modifying, or distributing the project.
  • Operational caution: Optional screenshot preview depends on Chromium; if Chromium is missing, the app skips the tool.
  • Operational caution: Running with Ollama open-source models is not recommended due to poor-quality results.
  • Operational caution: The Docker setup cannot be used for development because file changes won't trigger a rebuild.

Comments

Sign in to leave a comment.

More like Screenshot to Code

Favicon of Claude Code

Claude Code

Free ListingStars: 148.3K

Agentic coding tool for terminal, IDE, desktop, and browser.

Code Assistants & Editors

Claude Code is an agentic coding tool that reads your codebase, edits files, and runs commands. It integrates with your development tools and handles git workflows through natural language. Available in terminal, IDE, desktop, and browser.

Favicon of omp

omp

Free ListingStars: 33.5K

A coding agent with the IDE wired in.

Code Assistants & Editors

omp is a coding agent for the terminal with subagents, plan mode, LSP, DAP, memory, hashline edits, and time-traveling rules, powered by a native Rust core. Built by Stencil Labs.

Favicon of Zed

Zed

Free ListingStars: 90.9K

Your last next editor

Code Assistants & Editors

Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. It is crafted for speed and collaboration with humans and AI.