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
feat: rename to ai-site-cloner, plausible.io showcase example, v0.3.0 (README + changelog)
Mahanaicoachb5699d53cbf8
diff --git a/.amazonq/rules/project.md b/.amazonq/rules/project.mdindex 91a49ee..a16acdd 100644--- a/.amazonq/rules/project.md+++ b/.amazonq/rules/project.md@@ -1,7 +1,7 @@<!-- GENERATED from AGENTS.md by scripts/sync-skills.mjs — edit the source,then run: node scripts/sync-skills.mjs -->-# site-cloner+# ai-site-clonerTemplate for cloning any multi-page website into this Next.js codebase, then rebranding it as your own. Two commands drive everything: `/clone-website <url>` and `/restyle`.diff --git a/.clinerules b/.clinerulesindex 91a49ee..a16acdd 100644--- a/.clinerules+++ b/.clinerules@@ -1,7 +1,7 @@<!-- GENERATED from AGENTS.md by scripts/sync-skills.mjs — edit the source,then run: node scripts/sync-skills.mjs -->-# site-cloner+# ai-site-clonerTemplate for cloning any multi-page website into this Next.js codebase, then rebranding it as your own. Two commands drive everything: `/clone-website <url>` and `/restyle`.diff --git a/.continue/rules/project.md b/.continue/rules/project.mdindex 6a2ba5b..e172750 100644--- a/.continue/rules/project.md+++ b/.continue/rules/project.md@@ -5,7 +5,7 @@ alwaysApply: true<!-- GENERATED from AGENTS.md by scripts/sync-skills.mjs — edit the source,then run: node scripts/sync-skills.mjs -->-# site-cloner+# ai-site-clonerTemplate for cloning any multi-page website into this Next.js codebase, then rebranding it as your own. Two commands drive everything: `/clone-website <url>` and `/restyle`.diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 91a49ee..a16acdd 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -1,7 +1,7 @@<!-- GENERATED from AGENTS.md by scripts/sync-skills.mjs — edit the source,then run: node scripts/sync-skills.mjs -->-# site-cloner+# ai-site-clonerTemplate for cloning any multi-page website into this Next.js codebase, then rebranding it as your own. Two commands drive everything: `/clone-website <url>` and `/restyle`.diff --git a/AGENTS.md b/AGENTS.mdindex 68473fc..270183e 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,4 +1,4 @@-# site-cloner+# ai-site-clonerTemplate for cloning any multi-page website into this Next.js codebase, then rebranding it as your own. Two commands drive everything: `/clone-website <url>` and `/restyle`.diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cde9457..920f029 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## [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@@ -41,5 +72,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Uploadthing example clone in `examples/`- MIT license-[0.2.0]: https://github.com/Mahanaicoach/site-cloner/compare/v0.1.0...v0.2.0-[0.1.0]: https://github.com/Mahanaicoach/site-cloner/releases/tag/v0.1.0+[0.3.0]: https://github.com/Mahanaicoach/ai-site-cloner/compare/v0.2.0...v0.3.0+[0.2.0]: https://github.com/Mahanaicoach/ai-site-cloner/compare/v0.1.0...v0.2.0+[0.1.0]: https://github.com/Mahanaicoach/ai-site-cloner/releases/tag/v0.1.0diff --git a/CLAUDE.md b/CLAUDE.mdindex 227e684..1af2461 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -1,4 +1,4 @@-# site-cloner+# ai-site-clonerTemplate for cloning any multi-page website into this Next.js codebase, then rebranding it as your own. Two skills drive everything: `/clone-website <url>` and `/restyle`.diff --git a/README.md b/README.mdindex d920551..d755920 100644--- a/README.md+++ b/README.md@@ -1,10 +1,32 @@-# site-cloner+# ai-site-cloner-+-Clone any multi-page website into a clean Next.js codebase with Claude Code — then rebrand it as your own.+**Point AI at any website. Get a pixel-accurate Next.js clone back — measured, not eyeballed.**-Point it at a URL. `/clone-website` crawls the site, measures everything with scripted Playwright extraction (no eyeballing), writes auditable component specs, dispatches parallel builder agents in git worktrees, and loops a scored pixel-diff QA at phone/iPad/PC widths until every section passes. Then `/restyle` swaps in your brand — colors, fonts, logo, copy — without touching the cloned layout.+`/clone-website` turns Claude Code (or Cursor, Copilot, Gemini CLI — 12 tools supported) into a full cloning pipeline: it crawls the site, extracts every computed style with scripted Playwright measurement, generates auditable component specs, dispatches parallel builder agents in git worktrees, and loops a scored pixel-diff QA at phone/tablet/desktop widths until every section clears 95%. Then `/restyle` swaps in your own brand — colors, fonts, logo, copy — without touching the cloned layout.++Screenshot-to-code tools guess. This one measures.++## Proof: plausible.io, cloned++Original on the left. AI clone on the right.++++9 sections × 3 viewports, scored by pixelmatch against the live site: **6 of 9 sections hit 100% on every viewport**, nothing below 97.5%. That includes the working nav dropdowns, the mobile menu overlay, and the 9-tier pricing slider with its monthly/yearly toggle and recomputing prices.++| Section | PC | iPad | Phone | | Section | PC | iPad | Phone |+|---|---|---|---|---|---|---|---|---|+| hero | 100% | 100% | 100% | | story | 99.98% | 99.97% | 100% |+| dashboard | 100% | 100% | 100% | | nav | 99.2% | 98.8% | 100% |+| features | 100% | 100% | 100% | | cta | 99.6% | 99.3% | 100% |+| testimonials | 100% | 100% | 100% | | footer | 100% | 97.7% | 100% |+| pricing | 100% | 100% | 97.5% | | | | | |++Full-page and phone side-by-sides, the data file, and how the run went: [`examples/plausible/`](examples/plausible/)++**Second example:** [`examples/uploadthing/`](examples/uploadthing/) — its hero artwork is painted on a `<canvas>`, normally unclonable since there's no DOM to copy. The pipeline records it via `canvas.captureStream()` and embeds a looping video, so the clone keeps the artwork *and* its motion.## Quick Start@@ -26,39 +48,35 @@ Point it at a URL. `/clone-website` crawls the site, measures everything with sc/restyle```-## What's Better Than Eyeball Cloning--| Problem | Solution here |-|---|---|-| Agent guesses CSS values from screenshots | `scripts/extract/section.mjs` — full `getComputedStyle()` DOM walk, exact values (stored compact; `resolve-walk.mjs` reads any node) |-| Responsive behavior guessed from desktop | `scripts/extract/responsive.mjs` — measures real column counts at 390/768/1440px |-| "Looks close enough" QA | `scripts/diff.mjs` — pixel-diff score per section per viewport; 95% threshold to pass; `--triage` diffs the whole page first and touches only sections in failing bands |-| QA says WHERE but not WHAT | `scripts/compare.mjs` — walks original + clone, prints the differing computed properties ordered by visual impact |-| Agent mis-transcribes values into specs | `scripts/spec-scaffold.mjs` — mechanical spec sections generated straight from the extraction JSON (utility-CSS sites quote the markup itself) |-| Incomplete specs slip through | `scripts/lint-spec.mjs` — mechanical completeness gate before any builder runs |-| Long runs die and restart from zero | `docs/research/manifest.json` — scripts self-report their stage transitions; `manifest.mjs resume` prints the exact next commands |-| Single-page only | `scripts/extract/crawl.mjs` — sitemap + nav discovery, shared header/footer extracted once |-| Clone is a dead-end copy | Content in `src/data/*.ts` + `/restyle` skill = rebrand without breaking layout |--## Example--[`examples/uploadthing/`](examples/uploadthing/) is a real end-to-end run against **uploadthing.com** — side-by-side screenshots, the per-viewport score table (96–99.8% per section), and the tooling bugs that run exposed and fixed.----Its hero illustration is painted on a `<canvas>` — normally unclonable, since there's no DOM to copy. The pipeline records it through `canvas.captureStream()` and embeds a looping video, so the clone keeps the artwork *and* its motion.--## Pipeline+## How it works```Phase 0 Crawl sitemap + nav discovery → you confirm the page listPhase 1 Recon tokens, assets, screenshots, responsive measurements, interaction sweepPhase 2 Foundation fonts, color tokens, types, extracted SVG icons, shared header/footer-Phase 3 Sections extract → spec file → lint gate → parallel builders in worktrees → merge+Phase 3 Sections extract → spec scaffolded from JSON → lint gate → parallel builders in worktrees → mergePhase 4 Assembly one route per page, data wired to components-Phase 5 QA loop pixel-diff every section × 3 viewports until ≥95% match+Phase 5 QA loop whole-page triage first, then pixel-diff failing sections × 3 viewports until ≥95%```+The AI never invents a value. Every number a builder uses — font sizes, padding, colors, column counts, hover states, transition durations — comes from a script that measured the live page. Specs are generated from that JSON, a linter blocks incomplete ones, and the pixel score decides when a section is done.++## Why this beats screenshot-to-code++| Problem with "look at a screenshot and code it" | What happens here instead |+|---|---|+| AI guesses CSS values from pixels | `scripts/extract/section.mjs` — full `getComputedStyle()` DOM walk, exact values (stored compact; `resolve-walk.mjs` reads any node) |+| Responsive behavior guessed from desktop | `scripts/extract/responsive.mjs` — real column counts and font steps measured at 390/768/1440px |+| Only the default state gets cloned | `--state` captures diff the DOM before/after every click/hover/scroll — dropdowns, toggles, tab panels, with the appeared nodes and their styles |+| "Looks close enough" QA | `scripts/diff.mjs` — pixel-diff score per section per viewport, 95% to pass; `--triage` diffs the whole page first and touches only sections in failing bands |+| QA says WHERE but not WHAT | `scripts/compare.mjs` — walks original + clone, prints the differing computed properties ordered by visual impact |+| AI mis-transcribes values into specs | `scripts/spec-scaffold.mjs` — mechanical spec sections generated straight from the extraction JSON (Tailwind sites quote the source markup itself) |+| Incomplete specs slip through | `scripts/lint-spec.mjs` — mechanical completeness gate before any builder runs |+| Long runs die and restart from zero | `docs/research/manifest.json` — scripts self-report their stage transitions; `manifest.mjs resume` prints the exact next commands |+| Single-page only | `scripts/extract/crawl.mjs` — sitemap + nav discovery, shared header/footer extracted once |+| `<canvas>` artwork is unclonable | `scripts/extract/canvas.mjs` — records it with `captureStream()`, embeds a looping video |+| Clone is a dead-end copy | Content lives in `src/data/*.ts` + the `/restyle` skill = rebrand without breaking layout |+## ScriptsAll plain Playwright — run standalone, no MCP needed:@@ -111,7 +129,7 @@ Requires Node 22+ (auto via `.nvmrc`).Platform migration of sites you own · recovering lost source code · learning how production sites are built.-**Not for** phishing, impersonation, or passing off someone else's design as your own. Check a site's terms before cloning it.+**Not for** phishing, impersonation, or passing off someone else's design as your own. Check a site's terms before cloning it. The example clones in this repo (plausible.io, uploadthing.com) are technical demonstrations — don't republish anyone's brand.## Licensediff --git a/examples/plausible/README.md b/examples/plausible/README.mdnew file mode 100644index 0000000..1859c5f--- /dev/null+++ b/examples/plausible/README.md@@ -0,0 +1,51 @@+# Example: cloning plausible.io++A real end-to-end run of `/clone-website` against **https://plausible.io** — the full homepage, 9 sections, rebuilt as a clean Next.js + Tailwind codebase by parallel builder agents working from machine-generated specs.++> Plausible Analytics is a real product by Plausible Insights OÜ. Cloned here as a technical exercise to demonstrate pixel fidelity only. Don't republish someone else's brand.++**Original (left) vs clone (right):**++++## Result++| Section | PC (1440) | iPad (768) | Phone (390) |+|---|---|---|---|+| nav | **99.2%** | **98.8%** | **100%** |+| hero | **100%** | **100%** | **100%** |+| dashboard | **100%** | **100%** | **100%** |+| features | **100%** | **100%** | **100%** |+| testimonials | **100%** | **100%** | **100%** |+| story | **99.98%** | **99.97%** | **100%** |+| pricing | **100%** | **100%** | **97.5%** |+| cta | **99.6%** | **99.3%** | **100%** |+| footer | **100%** | **97.7%** | **100%** |++Six of nine sections hit a pixel-perfect **100% on every viewport**. Scores are pixelmatch percentages, measured by `scripts/diff.mjs` against the live site — not eyeballed.++- [`comparison-full.png`](comparison-full.png) — the entire 6,400px page side by side+- [`comparison-phone.png`](comparison-phone.png) — the 390px phone rendering side by side++## What made it hard (and what the pipeline did about it)++**It's not a static page.** The clone reproduces the behavior, not just the pixels:++- **Nav dropdowns** ("Why Plausible", "Resources") with icon grids — captured by `section.mjs --state click:…`, which diffs the DOM before/after and reports the appeared panel with its styles+- **Mobile menu overlay** at 390px — a conditionally-rendered tree the structural differ lists under `added`+- **The pricing widget** — a 9-position traffic slider, a monthly/yearly toggle with "2 months free" badge, and per-plan prices that recompute from both controls. The extraction recorded every state; the builder implemented it as a small state machine+- **Hover states** on CTAs and testimonial cards — from `css.json`'s `interactiveStates` checklist plus captured hover diffs++**Tailwind detection.** plausible.io fingerprints at 98.5% utility-class tokens, so the extraction stores each section's cleaned markup alongside the computed-style walk — the class list *is* the spec (`## Source Markup` in the generated spec files).++**Content is data.** All copy lives in [`data-home.ts.txt`](data-home.ts.txt) (the clone's `src/data/home.ts`) — 210 lines of typed content feeding 9 prop-driven components. Swap the data, keep the layout: that's what `/restyle` builds on.++## How it ran++```bash+/clone-website https://plausible.io+```++Phase by phase: crawl → one `page.mjs` call (tokens, assets, responsive signatures, computed-style walks, all screenshots — 3 page loads) → state captures for every dropdown/toggle/hover → specs scaffolded from the JSON and judgment-filled by the agent → lint gate → parallel builder agents in worktrees → merge → scored pixel-diff QA against the live site until every section cleared 95%.++This run was also the measurement bed for the v0.3.0 efficiency overhaul: the artifact sizes, page-load counts, and QA-iteration costs measured here drove the compact walk format, diff-only state captures, whole-page QA triage, and `compare.mjs`.diff --git a/examples/plausible/comparison-full.png b/examples/plausible/comparison-full.pngnew file mode 100644index 0000000..9a3cde8Binary files /dev/null and b/examples/plausible/comparison-full.png differdiff --git a/examples/plausible/comparison-phone.png b/examples/plausible/comparison-phone.pngnew file mode 100644index 0000000..f1f1c36Binary files /dev/null and b/examples/plausible/comparison-phone.png differdiff --git a/examples/plausible/comparison.png b/examples/plausible/comparison.pngnew file mode 100644index 0000000..8f32637Binary files /dev/null and b/examples/plausible/comparison.png differdiff --git a/examples/plausible/data-home.ts.txt b/examples/plausible/data-home.ts.txtnew file mode 100644index 0000000..39e9ec5--- /dev/null+++ b/examples/plausible/data-home.ts.txt@@ -0,0 +1,210 @@+// All homepage content for the plausible.io clone — verbatim from extraction+// (docs/research/plausible.io/sections/*.json + captured page HTML).+import type {+ NavDropdownFeature,+ NavLinkColumn,+ FeatureItem,+ StatItem,+ Testimonial,+ PricingVolume,+ PricingPlan,+ FooterColumn,+} from "@/types";++/* ---------------- Nav ---------------- */++export const whyPlausibleFeatures: NavDropdownFeature[] = [+ { title: "Simple analytics dashboard", description: "Get all the important stats on one single page. No training necessary.", href: "/simple-web-analytics", icon: "chart-bar" },+ { title: "Lightweight script", description: "Loads fast and won't affect your page speed or Core Web Vitals. A fraction of the size of Google Analytics.", href: "/lightweight-web-analytics", icon: "lightning" },+ { title: "Privacy-friendly analytics", description: "Built with visitor privacy in mind. No cookie banner required.", href: "/privacy-focused-web-analytics", icon: "shield-check" },+ { title: "Open source", description: "The code is public and auditable. Verify exactly what we collect, and run it yourself if you want to.", href: "/open-source-website-analytics", icon: "code" },+ { title: "EU-hosted", description: "Built and hosted in the EU. Your data never leaves European-owned infrastructure.", href: "/eu-hosted-web-analytics", icon: "flag" },+];++export const whoItsForColumn: NavLinkColumn = {+ heading: "Who it's for",+ links: [+ { label: "Ecommerce", href: "/for-ecommerce" },+ { label: "SaaS", href: "/for-saas" },+ { label: "Agencies", href: "/for-freelancers-agencies" },+ { label: "Creators & publishers", href: "/for-bloggers-creators" },+ { label: "White-label analytics", href: "/white-label-web-analytics" },+ { label: "Enterprise", href: "/enterprise-web-analytics" },+ ],+};++export const compareColumn: NavLinkColumn = {+ heading: "Compare",+ links: [+ { label: "vs Google Analytics", href: "/vs-google-analytics" },+ { label: "Migrate from GA4", href: "/migrate-from-google-analytics" },+ { label: "vs Matomo", href: "/vs-matomo" },+ { label: "vs Cloudflare Analytics", href: "/vs-cloudflare-web-analytics" },+ ],+};++export const resourcesFeatures: NavDropdownFeature[] = [+ { title: "Documentation", description: "Everything you need to get up and running with Plausible.", href: "/docs", icon: "book-open" },+ { title: "Blog", description: "Stories about privacy, web analytics and building Plausible.", href: "/blog", icon: "pencil-alt" },+ { title: "Tools", description: "Free calculators and utilities to help you understand your analytics data.", href: "/tools", icon: "adjustments" },+ { title: "Status", description: "Check the live status and uptime of Plausible services.", href: "https://plausible.io/status", icon: "check-circle", external: true },+ { title: "Product updates", description: "Major new features and improvements.", href: "https://plausible.io/changelog", icon: "speakerphone" },+];++export const followLinks = [+ { label: "Twitter", href: "https://twitter.com/PlausibleHQ" },+ { label: "Bluesky", href: "https://bsky.app/profile/plausible.io" },+ { label: "Mastodon", href: "https://fosstodon.org/@plausible" },+ { label: "LinkedIn", href: "https://www.linkedin.com/company/plausible-analytics/" },+];++/* ---------------- Features ---------------- */++export const features: (FeatureItem & { ddClass?: string })[] = [+ { title: "Automatic scroll depth tracking", description: "Scroll depth from 1 to 100 percent is tracked automatically on every page. No setup, no tag managers. Create scroll depth goals without code. ", ddClass: "lg:py-0 lg:pb-4" },+ { title: "Monitor traffic from AI tools", description: "See which AI tools like ChatGPT, Perplexity, or Claude send you traffic. Identify pages that attract AI visitors and the conversions they complete. " },+ { title: "Analyze SEO performance", description: "Connect Search Console to see search queries and organic performance directly in your Plausible dashboard. Track SEO content and conversions in one place." },+ { title: "Measure paid ads and campaigns", description: "Track UTM campaigns with automatic channel grouping for Paid Search or Affiliates. Analyze landing pages, conversions and locations." },+ { title: "Real-time dashboard", description: "Monitor live traffic with the same metrics as your main dashboard. Updates every 30 seconds without refreshing the page." },+ { title: "Codeless goals and revenue tracking", description: "Turn any page into a goal. Automatically track file downloads, form completions and external link clicks. Set up custom events and revenue tracking.", ddClass: "lg:border-t-0 lg:py-0 lg:pb-4" },+ { title: "Funnels and user journeys", description: "Measure drop-off across a fixed sequence of steps. Or explore the paths visitors actually take to discover flows you didn't predict." },+ { title: "Built-in bot filtering", description: "Exclude bots, referrer spam and data center traffic so your stats reflect real human visits, out of the box." },+];++/* ---------------- Testimonials ---------------- */++export const stats: StatItem[] = [+ { value: "19k", label: "Paying subscribers" },+ { value: "260B", label: "Tracked pageviews" },+ { value: "99.99%", label: "Uptime (Last 90 days)" },+];++export const testimonials: Testimonial[] = [+ { name: "Clem Delangue", role: "Co-founder and CEO at Hugging Face", avatar: "/images/ClemDelangue.jpg", href: "https://www.linkedin.com/feed/update/urn:li:activity:7297550772177682434", text: "We’re massive users of Plausible here at Hugging Face." },+ { name: "DHH", role: "Co-founder and CTO at 37signals", avatar: "/images/dhh.jpg", href: "https://twitter.com/dhh/status/1438785402576506884", text: "Been a very happy customer of Plausible at Basecamp. Wonderful to see domains like web stats that were once a wasteland due to monopoly weight spring new, better options ❤️" },+ { name: "John O'Nolan", role: "Founder and CEO at Ghost", avatar: "/images/JohnONolan.jpg", href: "https://twitter.com/JohnONolan/status/1488921946062569480", text: "Check out Plausible if you haven't yet - fantastic product. We switched over everything from GA." },+ { name: "Cyrus Shepard", role: "SEO consultant and former Moz lead", avatar: "/images/cyrusshepard.jpg", href: "https://twitter.com/cyrusshepard/status/1714380470862131344", text: "My 100% favorite GA4 alternative so far is Plausible. Not free and not a ton of bells and whistles, but SOOOO easy to use (for clients too) and the data is near real-time. A good solution for ~70% of websites struggling with GA4." },+ { name: "Rob Hope", role: "Product designer and founder", avatar: "/images/robhope.jpg", href: "https://twitter.com/robhope/status/1351465826109558784", text: "Just replaced my full network's Google Analytics with Plausible - I can't remember when last I was this impressed by a SaaS UX + design 💯\n\nBecame a paying customer within 1hr of the 30-day trial." },+ { name: "Laura Roeder", role: "Founder at Paperbell", avatar: "/images/lkr.jpg", href: "https://x.com/lkr/status/1792637010567385355", text: "I've been super happy with Plausible. All the conversion tracking we need, it has every report we use." },+];++/* ---------------- Story ---------------- */++export interface StorySegment {+ t?: string;+ href?: string;+ cls?: string;+ br?: boolean;+}+export interface StoryBlock {+ type: "h2" | "h3" | "p";+ segments: StorySegment[];+}++export const storyBlocks: StoryBlock[] = [+ { type: "h2", segments: [{ t: "It's time to ditch Google Analytics" }] },+ { type: "p", segments: [{ t: " Google Analytics is frustrating to use, difficult to understand, slow to load and privacy-invasive. That's why we built Plausible Analytics, a simple, privacy-first alternative that doesn't cut corners. " }] },+ { type: "p", segments: [{ t: " Here's what makes Plausible a great " }, { t: "Google Analytics alternative", href: "/vs-google-analytics" }, { t: " and why over 19,000 paying customers trust us with their website and business insights: " }] },+ { type: "h3", segments: [{ t: "Simple analytics at a glance" }] },+ { type: "p", segments: [{ t: " Plausible is " }, { t: "simple analytics", href: "/simple-web-analytics" }, { t: ". It is easy to understand and cuts through the noise. Check your site traffic and get the essential insights on one page in one minute. Get an aggregated view of all your sites in a consolidated dashboard. There are no layers of menus and no need to build custom reports, custom dashboards or PowerPoint documents. You can even import your Google Analytics stats. " }] },+ { type: "h3", segments: [{ t: "Lightweight script that keeps your site speed fast" }] },+ { type: "p", segments: [{ t: " Plausible is " }, { t: "lightweight analytics", href: "/lightweight-web-analytics" }, { t: ". Our script is 54 times smaller than Google Analytics. Every visitor that loads your site downloads 135KB less JavaScript. Less data transferred means less energy used and less carbon emitted, for every visitor, every day. A site with 100,000 monthly visitors saves around 4 kg of CO2 per year by switching. " }] },+ { type: "h3", segments: [{ t: "No need for cookie banners or GDPR consent" }] },+ { type: "p", segments: [{ t: " Plausible is " }, { t: "privacy-friendly analytics", href: "/privacy-focused-web-analytics" }, { t: " that doesn't process personal data or track individual users. No cookies, no persistent identifiers, no cross-site or cross-device tracking. Your site data is not used for any other purposes. All visitor data is exclusively processed on servers owned and operated by European companies and never leaves the EU. " }] },+ { type: "p", segments: [{ t: " We invite you to take a look around, explore our " }, { t: "live demo", href: "/plausible.io" }, { t: " and " }, { t: "try Plausible", href: "/register" }, { t: " for free. We'd be honored to have you as a customer. Thank you. " }] },+ { type: "p", segments: [{ t: " Uku and Marko" }, { br: true }, { t: "Co-founders", cls: "text-gray-500" }] },+ { type: "p", segments: [{ t: " P.S. We're a completely independent, self-funded, bootstrapped and profitable team of 10, running since 2018. No outside investors, no acquisition targets. We choose the subscription business model rather than surveillance capitalism. Our code is open source too, so you're never locked in. Read more " }, { t: "about us", href: "/about" }, { t: ". " }] },+];++/* ---------------- Pricing ---------------- */++export const pricingVolumes: PricingVolume[] = [+ { volume: "10k", starter: 9, growth: 14, business: 19 },+ { volume: "100k", starter: 19, growth: 29, business: 39 },+ { volume: "200k", starter: 29, growth: 44, business: 59 },+ { volume: "500k", starter: 49, growth: 74, business: 99 },+ { volume: "1M", starter: 69, growth: 104, business: 139 },+ { volume: "2M", starter: 89, growth: 134, business: 179 },+ { volume: "5M", starter: 129, growth: 194, business: 259 },+ { volume: "10M", starter: 169, growth: 254, business: 339 },+];++export const pricingPlans: PricingPlan[] = [+ { id: "starter", name: "Starter", features: ["One site", "3 years of data retention", "Intuitive, fast and privacy-friendly dashboard", "Email/Slack reports", "Google Analytics import", "Goals and custom events", "Saved Segments", "Annotations"] },+ { id: "growth", name: "Growth", features: ["Everything in Starter", "Up to 3 sites", "Up to 3 team members", "Team Management", "Shared Links", "Embedded Dashboards", "Shared Segments", "Shared Annotations"] },+ { id: "business", name: "Business", features: ["Everything in Growth", "Up to 10 sites", "Up to 10 team members", "5 years of data retention", "Custom Properties", "Stats API (600 requests per hour)", "Looker Studio Connector", "Ecommerce revenue attribution", "Funnels and user journeys", "Consolidated View"] },+ { id: "enterprise", name: "Enterprise", dark: true, features: ["Everything in Business", "10+ sites", "10+ team members", "600+ Stats API requests per hour", "Sites API access", "Single Sign-On (SSO)", "Managed Proxy", "Scheduled raw event data exports", "5+ years of data retention", "Priority support"] },+];++export const pricingCurrency = "€"; // original geo-detects via /api/paddle/currency; extraction rendered €++/* ---------------- Footer ---------------- */++export const footerColumns: (FooterColumn & { firstMt?: boolean })[] = [+ {+ heading: "Why Plausible?",+ links: [+ { label: "Simple metrics", href: "/simple-web-analytics" },+ { label: "Lightweight script", href: "/lightweight-web-analytics" },+ { label: "Privacy focused", href: "/privacy-focused-web-analytics" },+ { label: "Open source", href: "/open-source-website-analytics" },+ { label: "No cookie banner", href: "/cookieless-web-analytics" },+ { label: "Visitor segmentation", href: "/audience-segmentation" },+ { label: "Real-time", href: "/real-time-web-analytics" },+ { label: "Ecommerce", href: "/for-ecommerce" },+ { label: "SaaS", href: "/for-saas" },+ { label: "Publishers", href: "/for-bloggers-creators" },+ { label: "Agencies", href: "/for-freelancers-agencies" },+ { label: "White label", href: "/white-label-web-analytics" },+ { label: "Enterprise", href: "/enterprise-web-analytics" },+ ],+ },+ {+ heading: "Explore",+ links: [+ { label: "vs Google Analytics", href: "/vs-google-analytics" },+ { label: "Migrate from GA4", href: "/migrate-from-google-analytics" },+ { label: "vs Matomo", href: "/vs-matomo" },+ { label: "vs Cloudflare", href: "/vs-cloudflare-web-analytics" },+ { label: "GA4 accuracy", href: "/most-accurate-web-analytics" },+ { label: "Paid vs free", href: "/paid-analytics-vs-free-ga" },+ { label: "Right for you?", href: "/when-not-to-use-plausible" },+ { label: "How to choose", href: "/privacy-friendly-web-analytics" },+ { label: "WordPress plugin", href: "/wordpress-analytics-plugin" },+ { label: "Google Tag Manager", href: "/gtm-template" },+ { label: "Looker Studio", href: "/looker-studio-connector" },+ { label: "NPM package", href: "https://www.npmjs.com/package/@plausible-analytics/tracker" },+ ],+ },+ {+ heading: "Resources",+ links: [+ { label: "Documentation", href: "/docs" },+ { label: "Blog", href: "/blog" },+ { label: "Tools", href: "/tools" },+ { label: "What's new", href: "/changelog" },+ { label: "Status", href: "/status", external: true },+ { label: "GitHub", href: "https://github.com/plausible/analytics", external: true },+ { label: "X (Twitter)", href: "https://twitter.com/plausiblehq", external: true },+ { label: "Bluesky", href: "https://bsky.app/profile/plausible.io", external: true },+ { label: "Mastodon", href: "https://fosstodon.org/@plausible", external: true },+ { label: "LinkedIn", href: "https://www.linkedin.com/company/plausible-analytics/", external: true },+ ],+ },+ {+ heading: "Company",+ firstMt: true,+ links: [+ { label: "About", href: "/about" },+ { label: "Pricing", href: "/#pricing" },+ { label: "Contact", href: "/contact" },+ { label: "Privacy policy", href: "/privacy" },+ { label: "Data policy", href: "/data-policy" },+ { label: "Terms", href: "/terms" },+ { label: "DPA", href: "/dpa" },+ { label: "Security", href: "/security" },+ { label: "Compliance", href: "/compliance" },+ { label: "Imprint", href: "/imprint" },+ ],+ },+];diff --git a/package.json b/package.jsonindex a3ddd17..8c6b9dc 100644--- a/package.json+++ b/package.json@@ -1,17 +1,17 @@{- "name": "site-cloner",- "version": "0.2.0",+ "name": "ai-site-cloner",+ "version": "0.3.0","private": true,- "description": "Clone any multi-page website into a clean Next.js codebase with Claude Code — scripted extraction, spec-driven parallel builds, and scored visual QA",+ "description": "Clone any website into a pixel-accurate Next.js codebase with AI — scripted Playwright extraction (no eyeballing), spec-gated parallel builder agents, and scored pixel-diff QA at phone/tablet/desktop","author": "Mahanaicoach","license": "MIT","repository": {"type": "git",- "url": "git+https://github.com/Mahanaicoach/site-cloner.git"+ "url": "git+https://github.com/Mahanaicoach/ai-site-cloner.git"},- "homepage": "https://github.com/Mahanaicoach/site-cloner#readme",+ "homepage": "https://github.com/Mahanaicoach/ai-site-cloner#readme","bugs": {- "url": "https://github.com/Mahanaicoach/site-cloner/issues"+ "url": "https://github.com/Mahanaicoach/ai-site-cloner/issues"},"engines": {"node": ">=22"