Introduction
GitNexus is a client-side application that builds interactive knowledge graphs from codebases. It parses source files, identifies relationships between modules, functions, and types, then renders them as a navigable graph. A built-in Graph RAG agent lets you ask natural language questions about the codebase structure.
What GitNexus Does
- Ingests GitHub repositories or uploaded ZIP files directly in the browser
- Parses code to extract entities like classes, functions, imports, and dependencies
- Generates an interactive force-directed knowledge graph visualization
- Provides a Graph RAG agent for natural language codebase Q&A
- Runs entirely client-side with no server or database required
Architecture Overview
GitNexus operates as a single-page TypeScript application. A language-aware parser extracts abstract syntax tree nodes and cross-file references, feeding them into an in-memory graph data structure. The visualization layer uses a WebGL-accelerated force-directed layout for smooth interaction with large graphs. The RAG agent traverses graph edges to retrieve context for LLM-based question answering.
Self-Hosting & Configuration
- Clone the repository and install Node.js dependencies
- Run the development server or build a static bundle for deployment
- No backend server or database is required
- Configure LLM API keys in the settings panel for the RAG agent
- Supports Ollama for fully local inference without external APIs
Key Features
- Fully client-side processing with zero server dependency
- Supports JavaScript, TypeScript, Python, Go, Rust, and Java codebases
- Interactive graph with zoom, filter, and search capabilities
- Natural language Q&A about code structure via Graph RAG
- Export graph data as JSON for use in other tools
Comparison with Similar Tools
- Sourcegraph — server-based code intelligence; GitNexus runs entirely in the browser
- Repomix — flattens repos for LLM input; GitNexus builds navigable graphs
- DeepWiki — generates wiki documentation; GitNexus focuses on visual graph exploration
- GraphRAG by Microsoft — general knowledge graph RAG; GitNexus is purpose-built for code
FAQ
Q: How large a codebase can it handle? A: Typical repositories under 100K lines render smoothly; larger codebases may require filtering by directory.
Q: Does it need an internet connection? A: Only for fetching GitHub repos. ZIP uploads and Ollama-backed Q&A work fully offline.
Q: Which languages are supported? A: JavaScript, TypeScript, Python, Go, Rust, and Java are supported with tree-sitter parsers.
Q: Can I use it with private repositories? A: Yes, upload a ZIP file of any private codebase and processing stays entirely in your browser.