GitLab Knowledge Graph (gkg)
Why GKG?
Section titled “Why GKG?”Universal Call Graph
Support for Rust, TypeScript, Python, Ruby, and more. Extensible architecture powered by gitlab-code-parser means new languages can be added with ease.
Lightning-Fast Queries
Purpose-built for complex relationship queries. Find dependencies, trace function calls, and explore architecture at any scale.
Developer-First Design
Powerful CLI for automation, IDE integration, and beautiful web UI for exploration. Works with all major OS.
AI-Ready Integration
Enables AI tools to understand your codebase structure and provide context-aware assistance.
Get Started in Minutes
Section titled “Get Started in Minutes”-
Install GitLab Knowledge Graph
One-line installation:
Terminal window curl -fsSL https://gitlab.com/gitlab-org/rust/knowledge-graph/-/raw/main/install.sh | bash⚠️ Note: Ensure
$HOME/.local/binis in your$PATHenvironment variable. Add this line to your shell configuration file (e.g.,~/.bashrc,~/.zshrc):Terminal window export PATH="$HOME/.local/bin:$PATH" -
Index your first repository
Navigate to your project and create the knowledge graph:
Terminal window gkg index -
Explore with the web interface
Start the server and open your browser:
Terminal window gkg server start
Use Cases
Section titled “Use Cases”Project Status Public Beta
Section titled “Project Status ”This project is now in public beta. Core functionality is stable and ready for evaluation, though some features are still being refined. Follow progress in the Knowledge Graph First Iteration epic.