Reverse Engineer Any App or Website into Code with Claude Code ⚡
Traditional AI code generation suffers from visual hallucinations and brittle edge cases because models cannot see what they build. Craft Anything (the evolution of Reverse Engineer Anything) earned over 35,000 GitHub stars in two weeks by introducing a closed-loop visual feedback cycle. Point it at any app or web interface, and it generates high-performance Rust and WebAssembly, compiles the build, takes automated headless browser screenshots, grades visual discrepancies pixel-by-pixel, and self-corrects until reaching 99%+ fidelity.
Instead of guessing CSS values or JavaScript state transitions, the agent uses computer vision to verify its own implementation against the ground truth.
How the Closed-Loop Vision Engine Works
The system breaks reverse engineering into four iterative stages:
- DOM & Asset Extraction: A headless Chromium driver intercepts network requests, CSS stylesheets, Canvas draw calls, and layout bounding boxes.
- Rust / WebAssembly Compilation: Re-implements business logic and UI state machines in memory-safe Rust using modern web frameworks (Yew, Leptos, or Macroquad).
- Headless Screenshot Capture: Launches local web servers and captures high-DPI screenshots of user interactions and button states.
- Perceptual Diffing & Auto-Correction: Computes Structural Similarity Index (SSIM) and pixel diffs against the original target, looping until visual fidelity passes 99%.
Installation & Practical Execution Guide
Initialize the Craft Anything reverse-engineering pipeline in Claude Code: Target: [INSERT TARGET URL OR APP COMPONENT] Target Output: High-performance Rust + WebAssembly (WASM) Execution Pipeline: 1. Crawl the target URL, capturing DOM hierarchy, CSS properties, responsive breakpoints, and interaction event handlers. 2. Generate a clean Rust project (Cargo.toml, src/main.rs, src/lib.rs) utilizing wasm-bindgen and web-sys. 3. Build the project locally with `wasm-pack build --target web`. 4. Spin up a local static server, take screenshots of both the target and the compiled build at 1440x900 and 390x844 (mobile). 5. Compare images using pixelmatch/SSIM diffing. If mismatch > 1%, identify the discrepant elements, adjust styling and layout in Rust code, and recompile. 6. Continue the self-grading loop until visual match exceeds 99%. Output clean, well-commented source code.
Clean-Room Reverse Engineering & Legal Boundaries
To ensure your projects remain legally compliant under intellectual property law:
- Re-implement Logic, Do Not Copy Code: Write original Rust implementations based on observed behavior rather than copying source files directly.
- Replace Proprietary Assets: Substitute proprietary brand logos, icons, and copyrighted artwork with open-source alternatives.
- Interoperability Focus: Document the system as a clean-room interoperable implementation.