How git-probe/gitprobe works
Project type and purpose
• GitProbe is a full-stack developer tool composed of a CLI and a RESTful Web API (FastAPI).
• It clones arbitrary GitHub repositories, parses source code with Tree-sitter, runs language-specific analyzers to build call graphs and metadata, and returns JSON for visualization (e.g., Cytoscape.js).
File structure
• Top-level:
• CLI entrypoints: src/gitprobe/__main__.py, src/gitprobe/cli.py
• Core engine: src/gitprobe/analysis/
• Language plugins: src/gitprobe/analyzers/
• Web server: src/gitprobe/web/server.py
• Data models and limits: src/gitprobe/models/, src/gitprobe/core/analysis_limits.py
• Utilities: src/gitprobe/utils/
• Configs & scripts: pyproject.toml, requirements.txt, DEVELOPMENT.md
• Tests: a comprehensive integration suite under tests/
README for additional insights
• “Architecture” section outlines components.
• Technologies: Python 3.8+, FastAPI, Pydantic, Tree-sitter, Rich, Cytoscape.js.
• Key services: repository cloning, syntax parsing, call graph generation, REST API.