dittu
A CLI and MCP server that turns any website's frontend (layout, CSS, fonts, images and scroll animations) into an editable Next.js or Astro project, then proves the copy matches with pixel diffs.
Built 2 min readLive Demo (opens in a new tab)Code (opens in a new tab)

dittu turns any website into an editable Next.js or Astro project, and then checks its own work. It copies the frontend: layout, CSS, fonts, images and scroll animations. Not the backend.
It’s published on npm as @manishtamang/dittu, and it works three ways: as a CLI, as an MCP server your coding agent can drive, and through agent skills.
npx @manishtamang/dittu setup
How it works
Most website cloners screenshot a page and ask an AI model to redraw it. dittu copies what the browser actually rendered instead:
- Capture. Chromium loads the page and scrolls it, so lazy content and scroll reveals fire, then freezes timers so carousels hold still. A second pass at phone width records layout that JavaScript computes per screen size.
- Take the live DOM, not the server HTML, so Next.js and React sites come out as their final markup.
- Keep the original CSS in order, including CSS-in-JS rules, so media queries, hover states and animations keep working.
- Download every asset and rewrite the URLs.
- Export a static preview, a Next.js project and an Astro project, split into section components.
- Replay motion with a 2 KB runtime.
- Verify by screenshotting the original and the clone the same way, on desktop and on mobile, and scoring the difference.
How close it gets
Score = 1 − differing pixels ÷ total pixels.
| Site | Stack | Desktop | Mobile |
|---|---|---|---|
| gole.codes | Next.js, heavy animation | 99.95% | 99.89% |
| nextjs.org | Next.js | 99.79% | 99.99% |
| ui.shadcn.com | Next.js + Tailwind | 100% | 100% |
| astro.build | Astro | 100% | 100% |
The docs
The website has the landing page and the docs: installation, the CLI, the MCP server, and how the pipeline and the fidelity scoring work.

- TypeScript
- Node.js
- Playwright
- Next.js
- Astro
- MCP