Clone website frontend
clone_websiteCapture a live website's frontend into a static preview and editable Next.js or Astro projects, then verify visual fidelity against the original using desktop and mobile pixel diffs.
Instructions
Clone a website's frontend (markup, original CSS, fonts, images, scroll animations) into a static preview plus Next.js and Astro projects, then score it against the original with pixel diffs at desktop and mobile widths. Takes ~1 minute per page (several minutes with build=true). Returns output paths and scores (percent identical).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Page to clone, e.g. https://gole.codes | |
| build | No | Also npm install + build + score the generated apps (slow, default false) | |
| pages | No | Crawl up to n same-site pages (default 1) | |
| outDir | No | Output directory (default ./dittu-out/<host>) | |
| remove | No | CSS selectors to drop (cookie banners, chat widgets) | |
| verify | No | Score the clone against the original (default true) | |
| waitMs | No | Extra wait after load in ms | |
| styling | No | css keeps the original stylesheet (default); tailwind converts class rules to Tailwind utilities wherever that renders identically and keeps the rest as CSS | |
| frameworks | No | Projects to generate (default next + astro) |