ai-website-cloner-template README

The project's README from github.com/JCodesMore/ai-website-cloner-template. As one markdown file: README.md.

AI Website Cloner Template

Clone any website with one command

Give your AI coding agent a URL and watch it recreate the website as a clean Next.js app.

Best results with Claude Code + Opus 5.5. Also supports Codex, Cursor, and OpenCode.

Use this template Discord

Quick Start · Watch Demo · Supported Platforms

MIT License Stars tokens

JCodesMore%2Fai-website-cloner-template | Trendshift Star History Global Rank


SPONSORED BY

Swiftproxy residential proxies for inspecting websites from 195+ locations
Inspect and compare websites from any region with rotating or static residential IPs in 195+ locations, over HTTP(S) and SOCKS5. Free testing, plus 10% off with code PROXY90. Try Swiftproxy →

Demo

Watch the demo

Click the image above to watch the full demo on YouTube.

Quick Start

1. Set up your project

Recommended: ask your agent. Paste this into Codex, Claude Code, or your coding agent:

Set up https://github.com/JCodesMore/ai-website-cloner-template
as a standalone project in a new folder on my computer.
Ask me where to put it. Clone the repository, remove its origin remote,
install dependencies, and run npm run check. Leave it ready for me
to clone a website.

Or create your own GitHub repository:

Use this template

Give it a name and click Create repository. Then give your agent the new repository's link and ask it to clone it onto your computer, install dependencies, and run npm run check.

2. Clone a website

Open the project in your agent with browser access enabled. In Claude Code or Cursor, run:

/clone-website https://example.com

Replace the URL with the website you want to recreate. Once it's built, ask your agent for any changes you want.

Supported Platforms

Agent Status
Claude Code Recommended — Opus 5.5
Codex CLI Supported
OpenCode Supported
Cursor Supported

Prerequisites

Tech Stack

How It Works

The /clone-website skill follows four steps:

  1. Map — map source URLs to local routes and preserve existing work.
  2. Observe — inspect desktop/mobile pages, extract real assets and fonts, and exercise alternate states.
  3. Build — implement editable components and working interactions; delegate independent sections when useful.
  4. Compare — review source and local pages at matched sizes/states, repair visible differences, and run the production check.

Framer pages and animated sites have focused inspection guidance for responsive variants, media, sticky scenes, and scroll/time-driven motion. Direct HTTP or asset tools handle extraction where practical; browser comparisons establish appearance and behavior. Deliverables include route mappings, run instructions, comparison screenshots, and any remaining gaps.

Use Cases

Not Intended For

Project Structure

src/
  app/              # Next.js routes
  components/       # React components
    ui/             # shadcn/ui primitives
    sites/<site>/   # Source-specific components and extracted SVGs
  lib/utils.ts      # cn() utility
  types/            # TypeScript interfaces
  hooks/            # Custom React hooks
public/
  sites/<site>/     # Source-specific images, fonts, videos, and other assets
docs/
  research/<site>/  # Page brief, asset map, and inspection evidence
  design-references/ # Screenshots
.agents/skills/
  clone-website/    # Canonical skill and inspection reference
.claude/commands/
  clone-website.md  # Thin Claude Code bridge
AGENTS.md           # Agent instructions (single source of truth)
CLAUDE.md           # Claude Code config (imports AGENTS.md)

Commands

npm run dev    # Start dev server
npm run build  # Production build
npm run lint   # ESLint check
npm run typecheck # TypeScript check
npm run check  # Run lint + typecheck + build

If using docker

docker compose up app --build # build and run the app
docker compose up dev --build # run the app in dev mode on port 3001

Agent Support

The project keeps one portable Agent Skill at .agents/skills/clone-website/. Codex, Cursor, and OpenCode read it directly. Claude Code uses the small command bridge at .claude/commands/clone-website.md so /clone-website and its arguments continue to work without exposing a duplicate skill to the other agents.

Star History

Star History Chart

License

MIT

ai-website-cloner-template (JCodesMore/ai-website-cloner-template)

Searching Database…

What is this?A GitHub template that lets an AI coding agent clone any website into a working Next.js project just by giving it the URL.
Is this a ready-made app or a starting template I run myself?It is a GitHub template repository: you click 'Use this template' to create your own copy, then run the included skill through your AI agent to generate a real Next.js app from it.
How do I actually clone a website with this?Create your own repo from the template, open it locally, run npm install, start your AI agent (Claude Code recommended), then run the /clone-website skill which handles the rest.
What do I need installed before I start?You need Node.js 24 or newer plus one of the supported AI coding agents (Claude Code, Codex CLI, Cursor, Gemini CLI, and many others).
Any rules I need to follow when using this?Don't work directly in this template repo for your own site, and don't open PRs here with generated clones; the project also explicitly forbids using it for phishing, impersonation, or copying someone's branding.
What's this actually useful for?It's aimed at developers who need to migrate an old WordPress/Webflow/Squarespace site into modern code, recover a site whose source was lost, or study how a production site's layout and interactions are built.
Can I run this on Windows, or do I need a Mac?Since it's just Node.js plus whatever AI agent CLI you use, it runs the same way on Windows, macOS, and Linux.
How does the cloning pipeline actually work?It runs a multi-phase pipeline: reconnaissance (screenshots, design tokens, interaction sweep), foundation setup, detailed component spec files, parallel builder agents working in git worktrees, then assembly and a visual diff QA pass against the original site.
Which AI agent should I use for best results?Claude Code with Opus 5 is explicitly recommended, but Codex CLI, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Cline, Roo Code, Continue, Amazon Q, and Augment Code are all supported.
What tech stack does the generated site use?The cloned output is a Next.js 16 app using the App Router, React 19, TypeScript in strict mode, shadcn/ui with Radix primitives, and Tailwind CSS v4 with oklch design tokens.
What shouldn't I use this for?It's not meant for phishing or impersonation, for passing off someone else's logos/brand assets/copy as your own, or for scraping sites whose terms of service prohibit reproduction.
Creator
JCodesMore
Size
1.5 MB
Stars
39.4K
Age
8mo
Commits · 90 Days