Turn any public GitHub repo into a code knowledge graph.
GIT-MAP is a fun way to see what a codebase looks like as a graph.
Instead of going to a website, pasting a repo URL, and waiting for a tool to understand it, just change the domain:
https://github.com/owner/repo
https://git-map.com/owner/repo
That is it. Open the new URL and GIT-MAP builds an interactive knowledge graph for the repo.
Sometimes you just want to explore a codebase visually:
- see the main files
- find important classes and functions
- understand how pieces connect
- get a quick feel for a repo without cloning it
This is not trying to replace reading code. It is a cool first look before you dive in.
GitHub repo URL
-> GitHub API
-> Aider RepoMap + Tree-sitter
-> graph nodes and links
-> React + D3 visualization
The backend fetches supported source files, extracts symbols and references, builds graph JSON, and the frontend renders it in the browser.
- FastAPI
- GitHub API
- Aider RepoMap
- Tree-sitter
- React
- D3
- Tailwind
Create your environment:
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
cp .env.example .envAdd a GitHub token to .env:
GITHUB_TOKEN=ghp_your_github_token_here
MAX_FILES=300
CACHE_TTL=3600
LOG_LEVEL=INFORun the backend:
uvicorn app.main:app --reload --port 8000Run the frontend:
cd frontend
npm install
npm run devOpen:
http://localhost:5173
Health check:
curl http://localhost:8000/healthAnalyze a repo:
curl -X POST http://localhost:8000/analyze-repo \
-H "Content-Type: application/json" \
-d '{"owner":"tiangolo","repo":"fastapi"}'Get a graph:
curl http://localhost:8000/api/graph/tiangolo/fastapi.py .js .ts .tsx .jsx .java .go .rs .rb .cpp .c .h .cs .php .swift .kt
Run tests:
pytestMain files:
app/main.pyapp/api/routes.pyapp/services/github.pyapp/services/repomap.pyapp/services/graph_builder.pyfrontend/src/App.jsx
- better symbol resolution
- search and filtering
- file drill-down
- larger repo performance improvements
- Redis cache backend
MIT
