rclabs · distillateexperiment EXP-005
paused

CodeGraph

Question
What does a codebase actually look like, if you could see every call and import at once?
In short
Any git repo as a living knowledge graph
Started
2025
Apparatus
Node.jsExpressD3.js
Specimens

Curious about

Joining a new codebase means weeks of building a mental map. I wanted to see that map on day one.

Built

A tool that parses JavaScript/TypeScript, Python and Java repos into functions, classes, imports and API endpoints. It renders them as a force-directed D3 graph with a file explorer, search, call-chain tracing and highlighted endpoints. It also detects the tech stack and reports metrics such as the most-connected modules.

Learned

  • Force-directed layouts look amazing up to about 2,000 nodes and then turn into hairballs. Clustering and filtering matter more than physics.
  • “Where are the endpoints?” is the question everyone asks first.
  • Paused, not abandoned. Coding agents make this question more interesting, not less.

next specimen → EXP-006 · claude-code-statusline