Whenever I open an unfamiliar part of a codebase (or my own code from a few months ago) I end up in the same loop: Find Usages, jump, Go to Declaration, jump again, and five files later I've forgotten where I started. On bigger Compose projects it gets messy fast.
So I built Mindmap. Put your cursor inside any Kotlin or Java function, press Alt+G (Option+G on Mac), and it opens a graph of that function: everything that uses it on the left, everything it uses on the right.
What it does right now:
- both directions in one view, depth configurable from 1 to 5
- click a node to jump straight to the code
- double-click a node to trace from it and merge its graph in
- hover for signature, file and lines of code
- search/filter nodes, hide the noisy ones
- tree view if you'd rather read a list than a graph
- minimap for bigger graphs
- works across Kotlin and Java, including Kotlin code using Java and the other way round
- follows interfaces/abstract functions through to the actual implementations
Website: https://vishal2376.github.io/mindmap
GitHub: https://github.com/vishal2376/mindmap
It's still early. It caps graphs at 300 nodes so they don't explode, and it doesn't go into library code. If you try it on a real project I'd genuinely like to know where it breaks or what feels missing.
NOTE : The video is an animated showcase, not a screen recording. There are real screenshots on the GitHub page.
Watch screen recording here : https://x.com/vishal2376/status/2047010712955113547
[link] [comments]