● Open-source developer tool · 2026

Flow2Repo

A tool that turns screens designed with AI into a React project a developer can build on

Client
Flow2Repo
Discipline
Product Design & Development
Sector
Open-source developer tool
Year
2026

Visit flow2repo.laithalallaf.com

Flow2Repo · A tool that turns screens designed with AI into a React project a developer can build on

Overview

I started designing in HTML and CSS with AI, and kept hitting the same wall: a beautiful file with fifteen screens is still not an app. Turning it into React meant splitting pages, wiring every button and rewriting the same sidebar fifteen times. Flow2Repo does that part. Two fixed prompts tell the AI how to mark up its design, and a deterministic converter reads that markup and writes the project: no AI at conversion time, the same file always gives the same repository, and nothing leaves the browser.

Services

  • Product design
  • UX & UI design
  • Converter engineering
  • Prompt design
  • Testing & CI
  • Open-source release

Stack

React 19 · TypeScript · Vite · parse5 · Vitest · Playwright · JSZip

0

AI at conversion

13

Real designs tested

2

Fixed prompts

2026

Delivered

01

The prompt is the product

AI writes HTML in endless shapes, so guessing at structure was never going to be exact. Instead there are two fixed prompts, one for dashboards and one for websites, that give the AI one shape: every screen marked, every shared part named, every button told where it goes. Designs made without them still convert, through heuristics and a report of what was guessed.

Flow2Repo · The prompt is the product

02

Real React, not pasted HTML

Each screen becomes a routed page. Parts repeated across screens become shared components, with props when the copies differ only in text and the active nav item handled. Repeated cards and rows become typed arrays in their own data files with .map(), ready to swap for an API; forms, menus and tabs get real React state.

Flow2Repo · Real React, not pasted HTML

03

Preview first, honest always

Before downloading, every screen is previewed in a sandboxed frame with its links working, and the code can be read file by file. A report lists anything the converter was unsure of. Behind it, thirteen real designs must install, type-check and build on every push, so a change that breaks one never ships.

Flow2Repo · Preview first, honest always
Next projectKarin Nasrallah