Zoomable architecture maps for any codebase
Run one command in any repo and get an interactive map of how your code fits together.
npx @arjanj/loupe
Getting started
You need Node 18+ and git. In the root of any git repository, run:
npx @arjanj/loupe
The first time, Loupe asks which model to use: Claude Code, an Anthropic API key, or an OpenAI API key. It saves the choice for that repo. Only short code excerpts are sent to the model.
When it finishes, loupe.html opens in your browser. It's a single file that works offline, so you can commit it or share it.
Connection types
Click a card to see its connections and the file and line each one comes from.
- Code One module imports another.
- HTTP A client calls an API route.
- Data Code reads or writes a database table.
- Async Work is handed off through a queue or event.
- External A call to a third-party service, like Stripe or OpenAI.