Skip to content

samber/go-mod-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Go module dependency graph

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

image

πŸš€ Features

  • ⚑ 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

⛽️ Usage

Development

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 dev

Open your browser and navigate to http://localhost:5173

Production Build

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.go

The built frontend files will be in app/dist/. The proxy server can serve these files directly.

🀝 Contributing

Don't hesitate ;)

πŸ‘€ Contributors

Contributors

πŸ’« Show your support

Give a ⭐️ if this project helped you!

GitHub Sponsors

πŸ“ License

Copyright Β© 2026 Samuel Berthe.

This project is MIT licensed.

Sponsor this project

 

Contributors 2

  •  
  •