repository
0.0.0-20250604222745-f217aaeeac92
Repository: https://github.com/thiamath/repo2graph.git
Documentation: pkg.go.dev
# README
repo2graph
Library that tries to approach a graph simulation of a repository ecosystem
Build and run
- Install Go (1.21+ recommended) and clone this repository.
- Download dependencies using Go modules:
The available CLI commands are defined ingo mod tidy
cmd/commands
. - Build the command-line tool (the
-o
flag avoids a name clash with thecmd
directory):go build -o repo2graph ./cmd
- Run the CLI directly from sources or using the built binary:
go run ./cmd server # run without building # or ./repo2graph server # using the compiled binary
Using the server
- Start the server using one of the commands above. It listens on
:8080
by default. - Open
http://localhost:8080
in your browser. - Enter a GitHub token in the text field and click Reload. The token must have access to the repositories you want to analyse.
- The web interface will display a graph rendered with vis-network. A list of repository names with checkboxes allows you to toggle each node. The canvas will update to show the graph of repositories and their relationships.