dittu: clone a site's frontend, verified
dittu renders the page in Chromium, serializes the live DOM and the original CSS (including CSS-in-JS rules), downloads assets, records scroll animations, and writes a static preview, a Next.js project and an Astro project. It then screenshots original and clone at 1440 and 390 px and reports the percentage of identical pixels.
Run it
Prefer the MCP tools when the dittu server is connected:
clone_website { url, frameworks?, styling?, pages?, build?, remove? }verify_clone { outDir, targets? }read_report { outDir }
Otherwise use the CLI:
bashnpx @manishtamang/dittu clone <url> [-o <out>] [-p <pages>] [-s css|tailwind] [--build] [--remove "<selector>" ...] npx @manishtamang/dittu verify <out> [--targets next,astro]
pages > 1crawls same-site pages (robots.txt respected) and links them.build: true/--buildalso installs and builds the Next/Astro apps and scores them. Do this before handing the project over.removedrops cookie banners or chat widgets by CSS selector.styling: "tailwind"/-s tailwindwhen the user wants Tailwind classes: utilities wherever they render identically (a site built with Tailwind v4 keeps its own classes), the rest stays CSS. The score doesn't drop.- If Chromium fails to start, run
npx @manishtamang/dittu doctorand relay its fix.
Read the result
lowest ≥ 95→ good clone. Tell the user the scores and where the projects are (outputs.next,outputs.astro).- Lower → open the
diffImage(red = differing pixels) and the matching files inreference/(original) vsreport/(clone). See thedittu-fidelity-debuggingskill's table of causes, or try--wait 4000,--remove, or a mobile-first clone (--viewport 390x844). - Always mention warnings (Shadow DOM, mobile DOM differences) and what isn't copied: click behaviour (menus, tabs, carousels, forms) is markup only.
Afterwards
To turn the clone into maintainable code (components with props, real
interactivity, the user's own content), follow the dittu-refactor skill.
Only clone sites the user owns or has the right to copy, or keep the result for learning and prototyping. Don't help publish someone else's brand, copy or images.


