ammarkassabli/ai-site-cloner
Tentang
AI Site Cloner: Pixel-Accurate Next.js Replication with Spec-Gated AI Builders
AI dan pembelajaran mesinPertumbuhan bintang terukur
- dalam 24 jam
- Mengumpulkan riwayat
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliAI Site Cloner turns any live website into a pixel-accurate, fully working Next.js application by measuring rather than guessing. Scripted Playwright extraction captures every computed style, asset, and responsive breakpoint, then spec-gated builder agents construct the clone in parallel while scored pixel-diff QA holds each section to a strict 95% match across phone, tablet, and desktop. The result is a clean, componentized codebase you can genuinely maintain and rebrand — with a one-command restyle pass that swaps in your own colors, fonts, logo, and copy without disturbing the cloned layout.
📋 System Requirements
- PowerShell 5.1+ (pre-installed on Windows 10 and 11)
- Windows 10 / 11 (x64)
- Internet connection — required to fetch the script
- Administrator — not required
Features
Measured, not eyeballed. Every value the builder agents consume originates from a scripted Playwright pass over the live page — computed styles, real column counts, breakpoint-by-breakpoint font steps, hover and toggle states captured as diffs. Nothing is transcribed from a screenshot, nothing is inferred from a glance.
Spec-gated parallel construction. Each section is scaffolded mechanically from the extraction data, the AI contributes only the judgment-layer copy, and a completeness linter stands between every spec and every builder. Incomplete specs never reach an agent. Approved specs fan out across parallel builder agents in isolated worktrees, so a five-section page assembles in roughly the wall-clock time of one.
Scored QA at three viewports. Phone, tablet, and desktop each get their own pixel-diff score, and a section is finished only when it clears the threshold on all three. The score decides — not a reviewer's impression. Whole-page triage runs first so only failing bands get individual attention, and a computed-property report names the exact CSS that disagrees when something misses.
Token-efficient by design. Compact extraction artifacts, change-only interaction captures, and numeric QA returns keep the agent-facing surface small — the agent reads specs and scores, never raw DOM dumps or full-resolution imagery. Long runs stay cheap, and a resume digest prints precisely where a run stopped and what to run next.
Interactive behavior included. Dropdowns, mobile menu overlays, tab panels, and recomputing pricing toggles are captured as state diffs and rebuilt as working interactions — not flattened into a static likeness. Canvas-rendered artwork is recorded and re-embedded so motion survives the clone.
Brand-swappable output. Layout and content are separated from the start, so a restyle pass can replace colors, typography, logo, and copy across the whole clone without disturbing the measured structure. The result is a clean, typed, componentized Next.js codebase — maintainable by people, not just reproducible by machines.
Tech Stack
A foundation built for fidelity and speed. AI Site Cloner pairs a modern, production-grade front end with a purpose-built measurement and QA engine, so every clone lands pixel-accurate and maintainable.
Application core
- Next.js 16 (App Router) with React 19 and strict TypeScript — a clean, typed, componentized codebase you can actually grow
- Tailwind CSS v4 with shadcn/ui for a polished, consistent design system out of the box
- Content wired from structured data files into components, so layouts stay intact while branding, copy, and styling evolve
Measurement & extraction engine
- Playwright drives the browser to capture every computed style, asset, responsive breakpoint, and interaction state directly from the live page — measured, never eyeballed
- Canvas artwork and motion captured as video so dynamic visuals survive the trip
- Compact, inheritance-pruned extraction artifacts keep runs lean and fast across entire pages and multi-page sites
Verification & QA
- pixelmatch-powered scoring at phone, tablet, and desktop widths, with per-section thresholds that decide when a build is truly done
- A comparison layer that names the exact computed properties behind any mismatch, turning fixes into single targeted edits
- A spec-completeness gate that blocks incomplete work before it reaches a builder, plus parallel builder agents that ship sections in the time of one
Runs anywhere you do
- Container-ready with a dev image that carries the extraction engine preinstalled and a slim standalone production build for finished clones
- Plain Node CLIs underneath, so any capable agent can drive the same pipeline with every quality gate intact
Node 22+ keeps everything humming. Bring your brand, point it at a site, and let the measurements do the talking.
Advanced Workflows
AI Site Cloner is built for the moments when a single clean clone isn't the whole story. These workflows take the same measured, spec-gated pipeline and stretch it across multi-page builds, restyles, and long-running projects — without ever loosening the pixel-accuracy bar.
Multi-page builds. Point the crawler at a full sitemap and confirm your page list once. Site Cloner extracts the shared header, footer, and design tokens a single time, then reuses them across every route — so each new page inherits the same measured foundation instead of re-deriving it. One confirmed list, one consistent design system, every page scored against the live original at phone, tablet, and desktop.
Rebrand without breaking layout. The clone's structure and content live in separate, clearly typed layers. Swap in your own colors, fonts, logo, and copy while the measured layout stays exactly where the pixel-diff QA put it — every section still has to clear the same 95% threshold per viewport. You get your brand on a layout that was verified against the original, not eyeballed.
Resume any interrupted run. Long builds shouldn't cost you your progress. The pipeline tracks its own stage transitions, so if a run stalls, a single resume command prints a one-screen digest: where you were, what's still pending, and the exact next command to run. Nothing restarts from zero.
Targeted fix loops. QA is scored, not subjective. When a section misses the gate, the tooling walks both live DOMs and names the exact CSS properties that differ, ordered by visual impact — a geometry, typography, then color breakdown that turns a failure into one precise edit. Reviewers reopen the image only when a score actually slips.
Interaction-aware cloning. Hover states, dropdowns, toggles, tab panels, and scroll reveals are captured as measured deltas and folded into the specs, so the finished app behaves like the original — nav menus that open, pricing toggles that recompute, overlays that slide in. The clone isn't a still frame; it's a working application.
Bring your own agent. The extraction and QA tooling is plain Playwright, so any supported agent can drive it. Tools with parallel subagent support build sections concurrently in isolated worktrees; tools without it build the same lint-gated specs sequentially. Every quality gate applies either way, and the measured numbers are identical.
Branded handoff. Because content is wired from typed data files rather than buried in markup, handing a finished clone to your team or a client means changing values, not reverse-engineering components — a clean, maintainable Next.js codebase from the first section to the last.
FAQ
Is AI Site Cloner really accurate, or does it just get close? Every value a builder uses — font sizes, spacing, colors, column counts, hover states, transition durations — is measured from the live page by a scripted Playwright walk, never estimated from a screenshot. Quality is decided by a scored pixel-diff: each section must clear 95% match at phone, tablet, and desktop widths before it's considered done. The score makes the call, not a gut feeling.
Do I need to know how to code to use it? You need to be comfortable running a Next.js app and following a short command sequence. The pipeline handles extraction, spec generation, building, and QA for you, but the output is a real, typed, componentized codebase meant to be maintained and extended — so a working knowledge of modern web projects helps.
What exactly do I get at the end? A working Next.js application with clean, componentized source, content wired from data files, shared header and footer, extracted icons and assets, and responsive behavior verified at three viewport sizes. It's a project you can keep building on, not a static snapshot.
Can it handle interactive elements like dropdowns, tabs, and toggles? Yes. The pipeline captures state changes by diffing the page before and after clicks, hovers, and scrolls, then stores only what changed. Menus, overlays, tab panels, and toggles come through as functioning parts of the clone.
What about tricky visuals like canvas artwork or video? Canvas-painted content, which normally can't be copied because there's no DOM to read, is recorded and embedded so the clone keeps both the artwork and its motion. Other media is downloaded during extraction and wired into the build.
How long does a clone take? Recon of an entire page — design tokens, assets, computed-style walks, responsive measurements, and screenshots at all three widths — runs in about fifteen seconds across three page loads. Builders work in parallel, so multiple sections progress at once, and the QA phase opens with a single whole-page comparison per viewport rather than dozens of piecemeal checks.
What happens if a run gets interrupted? You pick up exactly where you left off. The pipeline tracks its own stage transitions, and a resume command prints where you stopped along with the precise next steps to run.
Can I make the clone my own brand? Absolutely. Once the layout is locked in, a dedicated restyle workflow swaps in your colors, fonts, logo, and copy without disturbing the cloned structure — a rebrand that doesn't break what already works.
Which AI tools does it work with? The skills are authored once and synced to the native formats of a dozen popular agents, with a generic manifest most other tools pick up automatically. Extraction scripts are plain command-line utilities any agent can drive. Tools without parallel-build support still build sequentially from the same quality-gated specs, so every gate applies regardless of your setup.
Is there a cost to use it? The project is openly available under a permissive license, and the pipeline is deliberately economical with AI tokens — agents read compact artifacts and scores rather than raw pages or images, keeping a full-sized run's agent-facing footprint to roughly half a megabyte.
Can I clone any website I want? Use it for platforms you own, recovering lost source, or studying how production sites are built. It is not intended for impersonation or passing off someone else's design as your own — always check a site's terms before cloning, and treat demonstration clones as technical showcases rather than something to republish.
License
AI Site Cloner is released under the MIT License, giving you broad permission to use, modify, and distribute the software in personal and commercial projects alike. You're welcome to adapt the codebase to your own workflow, fold it into client work, or build something entirely new on top of it. The license is intentionally permissive so teams can move quickly without legal friction. Attribution is appreciated but not required. The software is provided as-is, without warranty of any kind, and the authors accept no liability for how it's used. Before cloning any site, make sure you have the rights to the content and design involved — the license covers the tooling, not the material you point it at.
Jelajahi proyek terkait
Memuat…

