← Wed, Nov 4 digest

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

read article ↗ hn thread ↗

Codemap is a Go CLI tool that generates a self-contained, interactive one-page HTML visualization of a module's packages, files, and function dependencies.

summary is enough The tool is simple and self-explanatory, making a quick skim of the README and trying it out more valuable than deep analysis.

summary

Codemap generates a single interactive HTML file mapping out a Go repository's package structure, internal dependencies, and functions. Running a simple go command produces the visualization without needing external servers or complex setups. Commenters appreciate the clean concept, discuss potential extensions to other languages, and suggest uses for documentation or AI agent workflows.

key points

  1. Generates a single self-contained HTML page showing packages, files, and functions for Go 1.24+ modules.
  2. Features interactive search, direct links to GitHub line numbers, and dependency mapping.
  3. Author notes it is currently Go-only due to personal use, but the approach applies universally.

who should read it

Go developers looking for quick visual representations of their repository structure and dependencies.

discussion positive

consensus

Commenters generally like the utility and simplicity of the tool, with several discussing how similar visual maps could benefit other languages or AI agent workflows.

pushback

A minority critique questioned the writing style of the project documentation as feeling sloppy or AI-generated.

best comment by 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.

It introduces alternative codebase visualization tools like Whiteboard and T3's Guide view for comparison.

Generated by an LLM from the article and thread. Check the sources before relying on it.