gitmyhub

decant

Rust ★ 2 updated 18d ago

decant is an AI-native website mirroring tool written in Rust. It downloads a site's complete UI layer — HTML, CSS, JS, web fonts, and images — rewrites all references to relative local paths so the capture works offline, and outputs three machine-readable artifacts

A Rust command-line tool that mirrors websites for offline use and produces structured AI-readable files for cloning or reproducing their design.

RustChrome/Chromiumnpmsetup: easycomplexity 3/5

This is a command-line tool written in Rust that downloads a copy of any website to your computer, including its HTML, CSS, JavaScript, fonts, and images, and rewrites all the internal links so the copy works offline. What makes it distinct from a simple website downloader is that it also produces structured files designed for AI tools to read and use when cloning or reproducing the site.

When you run a capture, the tool creates several output files alongside the downloaded site. The first is a plain-text summary you can paste into an AI prompt to give it context about the site. The second is a design-tokens.json file that captures the color palette, font choices, spacing rules, and other visual parameters extracted from the CSS. The third is a manifest that catalogs the page structure and assets. The fourth is a repair-hints.json file that tells an AI agent which assets failed to download and what it should try next.

For sites that rely heavily on JavaScript to show their content, the tool can launch a headless Chrome browser or an alternative lighter-weight browser called Lightpanda to render the page fully before capturing it. In Chrome mode it also takes screenshots at mobile, tablet, and desktop screen widths. A verify command lets you compare the live site against your local copy and receive a similarity score and list of differences.

The tool ships with a SKILL.md file that teaches AI coding assistants, such as Claude Code, how to use its commands on their own. Installation options include Rust's Cargo package manager, npm, a one-line curl install script, or building from source. Static crawls have no browser dependency, so the basic install is fast.

Where it fits