Skip to content

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.

6.2 KB
Raw Blame

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 runs npm install when 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 errors
  • scripts/resolve-walk.mjs — indexed tree outline + fully resolved styles for any walk node
  • scripts/compare.mjs — property-level diff of original vs clone for a failing section, ordered by visual impact (geometry > typography > color), with missing/extra nodes
  • scripts/diff.mjs --triage — whole-page diff first per viewport; per-section diffs only for sections overlapping failing bands; scores and qa_passed recorded in the manifest automatically
  • scripts/extract/page.mjs --rename old=new — rename auto-detected sections (JSONs, probes, screenshots, responsive.json, manifest, spec) with zero page loads
  • manifest.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 marks specd, diff.mjs records scores + qa_passed
  • 640px -review.png beside 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: light spec schema for tiny static sections (≤15 nodes, no states), cross-checked against the walk so it can't be claimed to dodge rigor
  • examples/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; --legacy keeps 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; --audit keeps 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.png never wrote (PNG.sync.read returns a plain object, not a PNG instance)
  • 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 on node:22-alpine), Playwright-based Dockerfile.dev with Chromium preinstalled, docker-compose.yml with prod + dev services, and .dockerignore
  • Auto-installing Chromium — extraction scripts install the browser on first run, no manual npx playwright install step
  • 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 networkidle waits 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
  • 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/::after styles captured alongside the owning element)
    • <canvas> content captured via captureStream on 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 in docs/research/manifest.json
  • Scored visual QA: pixel-diff comparison against the original site (scripts/diff.mjs)
  • /clone-website and /restyle skills driving the full pipeline
  • Uploadthing example clone in examples/
  • MIT license