Dev.to WebDev ๐Ÿ›  Dev ๐Ÿ‘ 0 ๐Ÿ“– 1 min read

I built a website builder with no prompt: it reads your wireframe's geometry

Most "AI website builders" ask you to describe your site in a paragraph. I think in boxes, so I built Mirage: draw a wireframe (or photograph one on paper) and it builds the page. Live: https://mirageui.vercel.app ยท Cod

Most "AI website builders" ask you to describe your site in a paragraph. I think in boxes, so I built Mirage: draw a wireframe (or photograph one on paper) and it builds the page.

Live: https://mirageui.vercel.app ยท Code: https://github.com/imveersolanki/Mirage

How it reads a layout

Every box lives on a grid of square cells, so a box's shape is just height / width. Ordered rules decide what each box is. The first match wins, and the runner-up readings are shown as "also reads as":

Signal Reads as
First row, full width, short Nav bar
Last row, full width, short Footer
Tall, full width, near the top Hero
Square-ish, beside others Image
Tall and narrow Side nav
2 to 4 equal boxes in a row Card grid

Override any box and it's never re-read.

Photo import, with no model

Take a picture of a paper sketch, and plain canvas code does the rest:

  • adaptive thresholding to find pen strokes despite shadows
  • projection-profile deskew
  • gap bridging that refuses to bridge at corners, so stacked boxes stay separate
  • flood fill plus a rectangularity test to find boxes, including nested ones

Nothing is uploaded.

What's in v0.8

  • 100 token-based styles (switching never touches your markup)
  • Peer-to-peer live editing (BroadcastChannel across tabs, WebRTC across devices)
  • Multi-page sites, SEO and accessibility checks
  • 7 export targets: HTML, React, Tailwind, Vue, Svelte, Astro, Next.js, plus a static site zip
  • A CLI (mirage build sketch.json --target next) and a Figma plugin
  • No build step: the editor is just static files

It's MIT licensed. I'd really like to hear what it misreads, since that's what improves the classifier.

I'm Veer, a designer and developer from New Delhi. I write about AI and tech at SpaceRock. More: veersolanki.in

๐Ÿ“ฐ Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes โ€” full credit and traffic to the original publisher.