Codemap - One-page interactive map of any Go repository
Show HN: Codemap – one-page interactive map of any Go repository

Codemap turns any Go module into a single, self-contained HTML page that visualizes every package, its internal dependencies, and the functions inside each file. Search the map, click a package to see what it uses and what uses it, and jump straight to any function's line on GitHub. With a single `go run` command or a GitHub Action, you get a shareable code map with no server required — ideal for onboarding, code reviews, and understanding large codebases at a glance.
Each row builds only on the rows below it, so the foundations are at the bottom and your commands at the top — one HTML page that maps a Go module: every package, what it builds on, and the functions in each of its files.
- int0x21
I got inspired and "vibe coded" a Perl version :)
- stigok
I like this! It would be great if it was a hosted solution where I could just add any repository to the URL, like https://pkg.go.dev/ does for the godocs.
- quibono
Possibly silly question, but is this aimed at Go repos only because of some structural reason, or because this was the author's intention?
I can see this approach being useful across non-Go repositories too.