A web-based Go module dependency visualizer that helps you explore and understand the dependency tree of any Go module.
π Try it live: go-mod-graph.samber.dev
- β‘ Interactive Dependency Graph - Interactive, zoomable dependency visualization
- π Minimal Version Selection (MVS) - Go's MVS algorithm for accurate dependency resolution
- π¦ Version Management - View and select module versions with searchable dropdown
- π Module Weights - Optional size display with color-coded badges
- π§ Custom Proxy Support - Configure custom Go module proxy for enterprise/offline use
- π One-Click Documentation - Click nodes to open module docs on pkg.go.dev
Start both the proxy server and the frontend dev server:
# Terminal 1: Start the Go proxy server
cd proxy
go run main.go
# Terminal 2: Start the frontend dev server
cd app
npm run devOpen your browser and navigate to http://localhost:5173
export VITE_GO_MOD_PROXY_URL=xxxx
export ALLOWED_ORIGINS=yyyy
export PORT=8080
# Build the frontend
cd app
npm run build
# Build the Go proxy server
cd ../proxy
go build -o go-mod-graph-proxy main.goThe built frontend files will be in app/dist/. The proxy server can serve these files directly.
- Ping me on Twitter @samuelberthe (DMs, mentions, whatever :))
- Fork the project
- Fix open issues or request new features
Don't hesitate ;)
Give a βοΈ if this project helped you!
Copyright Β© 2026 Samuel Berthe.
This project is MIT licensed.