Cloning a websiteβs design used to mean manually inspecting HTML, extracting CSS, downloading assets, then rebuilding component by component. ai-website-cloner-template automates this entire process β give it a URL, and AI agents reverse-engineer the site into a clean, modern Next.js codebase.
Source: GitHub - JCodesMore/ai-website-cloner-template
How It Works: 5-Phase Pipeline
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
β Recon β ββΆβFoundationβ ββΆβ Comp. β ββΆβ Parallel β ββΆβ Assembly β
βScreenshotsβ β Tokens β β Specs β β Build β β & QA β
βInteractionsβ β Assets β βCSS valuesβ βWorktrees β β Merge β
ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ ββββββββββββ
- Reconnaissance β Screenshots, design token extraction, interaction analysis (scroll, hover, click, responsive)
- Foundation β Updates typography/color system, downloads all media assets
- Component Specs β Generates detailed specs with exact
getComputedStyle()values, behavior models, responsive breakpoints - Parallel Build β Launches independent builder agents in separate git worktrees (one per section)
- Assembly & QA β Merges worktrees, integrates page, visual comparison against original
The key innovation: it extracts exact computed CSS values via getComputedStyle() instead of letting AI guess styles β ensuring high visual fidelity.
Usage
# Clone the template
git clone https://github.com/JCodesMore/ai-website-cloner-template.git my-clone
cd my-clone && npm install
# Start your AI agent with browser access
claude --chrome
# Clone a website
/clone-website https://target-site.com
Tech Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 + App Router |
| UI | React 19 + TypeScript (strict) |
| Components | shadcn/ui + Radix primitives |
| Styling | Tailwind CSS v4 + oklch tokens |
| Icons | Lucide React |
Supported AI Agents
Works with 12+ agents: Claude Code (recommended, Opus 4.6), GitHub Copilot, Cursor, Windsurf, Gemini CLI, Cline, Roo Code, Continue, Amazon Q, Augment Code, Aider, Codex CLI.
Real-World Use Cases
| Scenario | Description |
|---|---|
| Platform migration | WordPress/Webflow/Squarespace β Next.js |
| Source code recovery | Rebuild a live site when source code is lost |
| Learning | Study how production sites structure their layouts and interactions |
How LearnAI Team Could Use This
- Rebuild legacy LearnAI pages β migrate older pages or prototypes into maintainable Next.js components.
- Create reference implementations β study high-quality education, documentation, and tool sites to improve LearnAI UI patterns.
- Prototype course microsites β quickly generate first-pass layouts from approved reference sites, then rewrite copy and branding for LearnAI.
Ethical Note
The project explicitly prohibits phishing, impersonation, or passing off designs as your own. Itβs meant for legitimate migration, recovery, and learning β not cloning someone elseβs brand.