[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115104":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":15,"starSnapshotCount":15,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},115104,"perfectclone","eshaangulati123\u002Fperfectclone","eshaangulati123","yoink any website without AI. get its real frontend files, not an AI-regenerated clone","",null,"Python",66,5,58,0,7,6,46.53,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33],"clone-website","httrack-alternative","nextjs","playwright","python","static-site","web-scraping","website-cloner","website-copier","website-mirror","2026-11-04 05:54:08","2026-11-23 03:39:20","# perfectclone: website cloner that copies the real site, 1:1\n\n**Pull the real frontend of any public site in ~15 seconds. No AI, no tokens.**\n\n![Clone any website. Get the real files. huly.io cloned with perfectclone: 0.00% pixel difference, 14 seconds, 157 files, 0 LLM calls.](https:\u002F\u002Fraw.githubusercontent.com\u002Feshaangulati123\u002Fperfectclone-website-cloner\u002Fmain\u002Fdocs\u002Fimages\u002Fhuly-live-vs-clone.jpg)\n\nperfectclone clones any website 1:1. It crawls the site with a real browser (Playwright),\ndownloads the site's own HTML, JavaScript, CSS, fonts and images, and gives you a folder you can\nserve, edit and deploy. Then it lets you rebrand it, rehost it and strip the original owner's\ntrackers without breaking it, including Next.js sites that hydrate on load.\n\n```bash\npip install perfectclone\n\nperfectclone clone example.com\nperfectclone serve example.com             # → http:\u002F\u002Flocalhost:8000\n```\n\nThat's it. Chromium is downloaded automatically the first time you clone. Requires Python 3.10+.\n\nOr try it without installing anything, using [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F):\n\n```bash\nuvx perfectclone clone example.com\n```\n\n## Why not an AI cloner?\n\nMost \"clone any website\" tools today regenerate the site: an AI agent looks at screenshots or\nscraped markup, writes a new React\u002FNext.js app, and compares the result against the original\nwith a visual-similarity score until it's close enough. That gets you a lookalike. The code is\nnew, the behaviour is approximate, and there are always gaps.\n\nperfectclone doesn't regenerate anything. It mirrors the bytes the site actually serves, so\nthe clone *is* the site: same markup, same bundles, same animations, same JavaScript running.\nSometimes the real solution is the simple one.\n\n|                                         | AI cloners | wget \u002F HTTrack | perfectclone |\n| --------------------------------------- | :--------: | :------------: | :----------: |\n| Copies the site's real files            | ❌         | ✅             | ✅           |\n| Pixel-identical on modern JS sites      | ❌         | ❌             | ✅           |\n| Catches lazy-loaded JS, fonts, images   | —          | ❌             | ✅           |\n| React \u002F Next.js sites still run         | —          | ❌             | ✅           |\n| Rebrand without breaking the site       | ✅         | ⚠️             | ✅           |\n| Strips the original site's trackers     | —          | ❌             | ✅           |\n| Works without an LLM or API key         | ❌         | ✅             | ✅           |\n\n## Tested on real sites\n\nEach card is one site split down the middle: the live site on the left, the clone on the right.\n\n![Live vs clone split view for nextjs.org, astro.build, svelte.dev, vitepress.dev, docusaurus.io and wordpress.org](https:\u002F\u002Fraw.githubusercontent.com\u002Feshaangulati123\u002Fperfectclone-website-cloner\u002Fmain\u002Fdocs\u002Fimages\u002Fcompatibility.jpg)\n\n`scripts\u002Fcompat.py` clones each site, serves the copy, and compares its home page with the live\none at 1440×900, with animations and videos paused on the same frame:\n\n| Site | Built with | Pixel match | Hydration errors | Notes |\n| --- | --- | --- | --- | --- |\n| huly.io | Next.js | 100% | 0 | |\n| nextjs.org | Next.js | 100% | 0 | |\n| astro.build | Astro | 100% | 0 | |\n| svelte.dev | SvelteKit | 100% | 0 | |\n| vitepress.dev | VitePress (Vue) | 100% | 0 | |\n| docusaurus.io | Docusaurus (React) | 100% | 0 | |\n| wordpress.org\u002Fnews | WordPress | 100% | 0 | |\n| paulgraham.com | Hand-written HTML | 100% | 0 | |\n| example.com | Static HTML | 100% | 0 | |\n| framer.com | Framer | 96% | 0 | Cookie banner needs Framer's backend |\n| webflow.com | Webflow | 93% | 0 | Cookie banner won't run on localhost; carousel caught mid-scroll |\n\nEvery clone loaded with zero requests to trackers. Run it yourself with\n`python scripts\u002Fcompat.py`, and please open an issue for any site that doesn't come out right.\n\n## Commands\n\n```bash\nperfectclone clone \u003Curl> [-o out] [--max-pages 200] [--extract] [--keep-trackers] [--ignore-robots]\nperfectclone serve \u003Csite> [-p 8000]\nperfectclone replace \u003Csite> \u003Cold> \u003Cnew> [--exact-case] [--substring]\nperfectclone rehost \u003Csite> \u003Cold-origin> \u003Cnew-origin>\nperfectclone strip-trackers \u003Csite>\n```\n\n- **clone** writes `out\u002Fsite\u002F` (the working copy) and `out\u002Fmanifest.json` (pages, failures,\n  third-party hosts the site uses). `--extract` also saves each page's text, metadata\n  (headings, links, images, forms, JSON-LD) and a full-page screenshot to `out\u002Fextract\u002F`.\n  Trackers are stripped by default.\n- **replace** renames text everywhere: HTML, JS, CSS, JSON, SVG. It also handles the UPPER,\n  lower and Capitalized variants, and leaves URLs and asset paths alone so nothing 404s.\n- **rehost** points canonical, Open Graph, JSON-LD and sitemap URLs at your domain.\n- **serve** works like a static host: clean URLs (`\u002Fabout` → `\u002Fabout\u002Findex.html`), and\n  `\u002F_next\u002Fimage` requests are served from the mirrored originals.\n\nRebrand a clone and put it online:\n\n```bash\nperfectclone clone acme.com -o acme\nperfectclone replace acme \"Acme\" \"Globex\"\nperfectclone rehost  acme https:\u002F\u002Facme.com https:\u002F\u002Fglobex.com\nnpx netlify-cli deploy --dir acme\u002Fsite --prod      # or any static host\n```\n\n## How it works\n\n1. **Crawl with a real browser.** Each page is rendered in Chromium and scrolled to the bottom,\n   and every response is recorded. That catches what static mirrors miss: code-split JS chunks,\n   fonts requested from CSS, images behind lazy loading. Links are followed breadth-first,\n   seeded from the sitemap. robots.txt is respected unless you pass `--ignore-robots`.\n2. **Mirror the server's bytes.** Pages are saved as the HTML the *server* sends, not the\n   rendered DOM, because that's what the site's JavaScript expects to hydrate. Assets keep\n   their URL paths, and CSS\u002FJS are scanned for further references (`url()`, `srcset`, chunk\n   paths) until nothing new turns up.\n3. **Edit without breaking hydration.** A Next.js App Router page ships its HTML *and* a\n   serialized copy of the React tree in `self.__next_f.push(...)` script chunks. Change one and\n   not the other, and React throws a hydration error and re-renders from the payload, undoing\n   your edit. perfectclone decodes the payload stream, edits it row by row, recomputes the\n   UTF-8 byte lengths of length-prefixed text rows (`\u003Cid>:T\u003Chex>,…`), rejoins rows that span\n   chunks, and writes it back next to the matching HTML edit.\n4. **Strip trackers.** Google Analytics\u002FTag Manager, the Meta pixel, LinkedIn Insight, Hotjar,\n   Clarity, Segment, PostHog, HubSpot, TikTok, Reddit, X, Cloudflare Web Analytics, RB2B and\n   more. They're removed from `\u003Cscript>`\u002F`\u003Cnoscript>` tags, from preload hints, and from Next.js\n   `next\u002Fscript` elements that only exist in the payload.\n\n## Limits\n\n- **No backend.** Forms, logins, search and API calls still go to the original servers (or\n  fail). perfectclone copies the front end.\n- **Next.js client-side navigation** needs each page's RSC payload answered for `?_rsc=`\n  requests. perfectclone mirrors them and `perfectclone serve` routes them. On a plain static\n  host, internal links fall back to full page loads: everything still works, just without the\n  instant transitions.\n- **Chunks that are only requested after a click** (say, a modal's code) are captured if the\n  crawl triggered them or a bundle names them as a string. A bundle can also assemble a chunk\n  URL at runtime, and that one may be missed.\n- **Bot protection** (CAPTCHAs, aggressive Cloudflare rules) can block the crawl. perfectclone\n  does not try to get around it.\n- Embeds (YouTube, Cal.com, maps) and third-party CDNs keep loading from their own hosts.\n\n## Roadmap\n\n**Clone apps behind a login, like dashboards.** Today perfectclone sees what an anonymous visitor\nsees, and data that loads from APIs after the page renders isn't kept. The plan, for apps you\nhave an account on:\n\n- **Crawl as you.** Sign in once in a browser window; perfectclone saves the session and\n  crawls with it.\n- **Record API responses.** Keep every JSON response the app fetches during the crawl and have\n  `perfectclone serve` replay them, so charts, tables and lists show real data offline.\n- **Explore by clicking.** Click through navigation, tabs and menus to reach views that only\n  exist in client-side routing.\n\nThe result is a clickable snapshot of the UI and its data at capture time. Saving, server-side\nfiltering and live updates still need the real backend.\n\nOther ideas: hydration-aware editing for Nuxt, SvelteKit and Remix payloads, and a deploy\nhelper that writes `_redirects` \u002F `vercel.json` rules so `?_rsc=` and `\u002F_next\u002Fimage` work on\nstatic hosts. Contributions welcome.\n\n## Contributing\n\nperfectclone is open source under the [MIT License](https:\u002F\u002Fgithub.com\u002Feshaangulati123\u002Fperfectclone-website-cloner\u002Fblob\u002Fmain\u002FLICENSE). Issues and pull requests are\nwelcome, especially reports of sites that don't clone cleanly. See\n[CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002Feshaangulati123\u002Fperfectclone-website-cloner\u002Fblob\u002Fmain\u002FCONTRIBUTING.md), and please follow the [Code of Conduct](https:\u002F\u002Fgithub.com\u002Feshaangulati123\u002Fperfectclone-website-cloner\u002Fblob\u002Fmain\u002FCODE_OF_CONDUCT.md).\nReport security issues privately as described in [SECURITY.md](https:\u002F\u002Fgithub.com\u002Feshaangulati123\u002Fperfectclone-website-cloner\u002Fblob\u002Fmain\u002FSECURITY.md).\n","perfectclone 是一个基于 Python 的网站精准克隆工具，可完整镜像任意公开网站的原始前端资源（HTML、JS、CSS、字体、图片），实现像素级一致的静态副本。它使用 Playwright 驱动真实浏览器进行智能爬取，支持动态加载内容和 Next.js 等现代框架的客户端水合，克隆后仍可正常运行交互逻辑；提供重品牌化、追踪器剥离与本地预览功能。适用于合规性网站备份、竞品前端分析、离线文档归档、快速原型托管及教育演示等需保留原始行为与结构的场景。",2,"2026-11-24 04:50:21","CREATED_QUERY"]