How bzilee/craft-anything works
Craft Anything studies websites, apps, games, and files, then uses a coding agent to build a clean-room recreation, checks it against the target, and supports refinement. Desktop UI and CLI drive a shared Rust engine; a browser viewer provides a narrower, in-page file-triage experience. The README documents the product workflow and capabilities; sampled source confirms key app, session, project, and tool boundaries, but many implementation links remain unverified.
Main entry points: session.rs Session · src/main.rs Desktop app · src/main.rs CLI tools · mod.rs Study and rebuild
Components 21
User entrypoints
- Desktop app
apps/craft-anything/src/main.rs - CLI tools
apps/craft-anything-cli/src/main.rs - Browser viewer
apps/craft-anything-web/src/viewer.rs - Workbench UI
crates/ui-egui/src/engine_ui.rs
Rebuild workflow
- Session
crates/engine/src/session.rs - Target handling
crates/engine/src/target.rs - Study and rebuild
crates/ai/src/rebuild/mod.rs - Build comparison
crates/ai/src/rebuild/check.rs
Inspection engine
- Tool registry
crates/engine/src/tool.rs - Investigation tools
crates/engine/src/tools/investigation_tools.rs - File analysis
crates/analysis/src/native.rs - Disassembly
crates/disasm/src/program.rs - File formats
crates/formats/src/pe.rs - Inspection engines
crates/engines/src/lib.rs
AI and evidence
- AI providers
crates/ai/src/providers.rs - Coding agents
crates/ai/src/cli_agents/mod.rs - Evidence ledger
crates/evidence/src/lib.rs
Persistence and integrations
- Project store
crates/engine/src/project.rs - Clean-room policy
crates/engine/src/clean_room.rs - MCP interface
crates/mcp/src/lib.rs
Other components
- Person or agent
Connections 24
- Person or agent → Desktop app: starts work
README.md - Person or agent → CLI tools: runs commands
README.md - Person or agent → Browser viewer: opens file
README.md - Desktop app → Workbench UI: opens interface
apps/craft-anything/src/main.rs - CLI tools → Tool registry: dispatches tools
apps/craft-anything-cli/src/main.rs - Desktop app → Session: creates session
apps/craft-anything/src/main.rs - CLI tools → Session: uses engine
- Workbench UI → Session: drives workflow
- Session → Target handling: opens targets
crates/engine/src/session.rs - Session → Project store: loads project
crates/engine/src/project.rs - Session → Evidence ledger: tracks findings
crates/engine/src/session.rs - Session → Clean-room policy: applies policy
crates/engine/src/session.rs - Tool registry → Investigation tools: registers tools
- Investigation tools → File analysis: inspects targets
- File analysis → Disassembly: analyzes programs
- File analysis → File formats: parses formats
- Investigation tools → Inspection engines: uses engines
- Session → Study and rebuild: starts rebuild
- Study and rebuild → Coding agents: delegates build
- Coding agents → AI providers: uses provider
- Study and rebuild → Build comparison: checks result
README.md - Build comparison → Evidence ledger: records findings
- Browser viewer → Target handling: triages file
- Person or agent → MCP interface: connects agent
README.md