Clone any website into a pixel-accurate Next.js app with AI — Playwright-measured extraction (no eyeballing), spec-gated parallel builder agents, and scored pixel-diff QA at phone/tablet/desktop. Works with Claude Code, Cursor, Copilot + 9 more.
JavaScript aiai-agentsclaudeclaude-codecursornextjspixel-perfectplaywrightscreenshot-to-codetailwindcssweb-cloningwebsite-cloner
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.1 - 2026-10-30
Added
scripts/update.sh— pulls the latest version into a fork or clone, keeps your own commits, and runsnpm installwhen dependencies change. Template copies get a clear message instead of a broken merge
0.3.0 - 2026-07-22
Renamed site-cloner → ai-site-cloner. Efficiency overhaul driven by measurements from a full plausible.io benchmark run (now in examples/plausible/): ~50% less agent-facing artifact surface and a QA phase that costs a handful of page loads on a good clone.
Added
scripts/spec-scaffold.mjs— generates the mechanical spec sections (frontmatter, DOM, computed styles, assets, text, responsive) straight from extraction JSON; the agent fills only marked judgment blocks. Ends hand-transcription errorsscripts/resolve-walk.mjs— indexed tree outline + fully resolved styles for any walk nodescripts/compare.mjs— property-level diff of original vs clone for a failing section, ordered by visual impact (geometry > typography > color), with missing/extra nodesscripts/diff.mjs --triage— whole-page diff first per viewport; per-section diffs only for sections overlapping failing bands; scores andqa_passedrecorded in the manifest automaticallyscripts/extract/page.mjs --rename old=new— rename auto-detected sections (JSONs, probes, screenshots, responsive.json, manifest, spec) with zero page loadsmanifest.mjs resume— one-screen digest: stage table + the exact next commands with real file paths- Manifest self-reporting: page.mjs marks
extracted(and registers sections), lint-spec marksspecd, diff.mjs records scores +qa_passed - 640px
-review.pngbeside every screenshot for agent judgment work (full-res stays for pixelmatch/builders) - Utility-CSS fast path: Tailwind-style sites detected (98.5% on plausible.io); sections carry cleaned source markup and specs quote it as the primary spec
tier: lightspec schema for tiny static sections (≤15 nodes, no states), cross-checked against the walk so it can't be claimed to dodge rigorexamples/plausible/— full-page original-vs-clone comparisons and the 9-section score table (six sections at 100% across all three viewports)
Changed
- Section walks stored as
compact-v1: per-file style dictionary + inherited-prop pruning (fixture: 889KB → 445KB;--legacykeeps the old format) - State captures are diff-only: header + changed props + appeared/disappeared subtrees with inline styles (368KB → 2.9KB on the fixture's pricing toggle;
--auditkeeps full trees) - The state differ aligns children structurally (LCS on tag+classes, then tag) instead of by index — inserted/removed nodes and deep descendant changes are no longer invisible
- QA serves
npm start(production build) instead of the dev server; SKILL.md documents the stop→build→restart cycle
Fixed
- Full-page
-review.pngnever wrote (PNG.sync.readreturns a plain object, not aPNGinstance) - Triage treated zero-height selector matches on the clone as "no overlap" and silently skipped sections
- Marginal review downscales (768→640) that grew PNG file size are skipped
0.2.0 - 2026-07-21
Added
- Multi-tool portability: instruction files and skills for 12 agent tools (Claude Code, Cursor, Windsurf, GitHub Copilot, Codex CLI, Gemini CLI, Cline/Roo Code, Continue, Amazon Q, Augment Code, OpenCode, Aider), regenerated by a sync script
- Docker packaging: multi-stage production
Dockerfile(Next.js standalone onnode:22-alpine), Playwright-basedDockerfile.devwith Chromium preinstalled,docker-compose.ymlwith prod + dev services, and.dockerignore - Auto-installing Chromium — extraction scripts install the browser on first run, no manual
npx playwright installstep - Bug report and feature request issue templates, pull request template, and this changelog
- Repository metadata in
package.json(repository, homepage, bugs)
Changed
- Performance overhaul of the extraction pipeline:
- One-shot page recon (
page.mjs) — full extraction in 3 page loads per page instead of one load per collector - Replaced blind
networkidlewaits with a hard cap plus precise settle signals (fonts, images, animation frames) running concurrently - Disk-backed response cache shared across scripts, so repeat visits never re-fetch the original site
- 8-way concurrent asset downloads
- QA compares all viewports of a page in one call, cropping section shots out of a single full-page capture and caching original-side screenshots
- One-shot page recon (
- Precision improvements to extraction and QA:
- Animations frozen at their end state before screenshots, so diffs measure layout instead of motion
- Pixel-diff mismatches localized to 10 horizontal bands per section with absolute page coordinates, so builder agents get told exactly where to look
- Single-pass batched style walker that is pseudo-element-aware (
::before/::afterstyles captured alongside the owning element) <canvas>content captured viacaptureStreamon the shared browser instead of being left as a hole
0.1.0 - 2026-07-21
Added
- Initial template: clone any multi-page website into a clean Next.js 16 + Tailwind CSS v4 + shadcn/ui codebase
- Playwright extraction scripts — crawl, computed styles, real CSS rules, design tokens, responsive breakpoints, assets, screenshots (
scripts/extract/) - Spec-driven parallel builds: per-component spec files linted by
lint-spec.mjs, built by parallel agents, tracked indocs/research/manifest.json - Scored visual QA: pixel-diff comparison against the original site (
scripts/diff.mjs) /clone-websiteand/restyleskills driving the full pipeline- Uploadthing example clone in
examples/ - MIT license