Scripts2026年5月15日·1 分钟阅读

GitNexus — Zero-Server Code Intelligence Knowledge Graph

A client-side knowledge graph creator that turns any GitHub repository or ZIP file into an interactive visual graph with a built-in Graph RAG agent for code exploration.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 96/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Knowledge
安装
Single
信任
信任等级:Established
入口
GitNexus Overview
通用 CLI 安装命令
npx tokrepo install 357af053-5079-11f1-9bc6-00163e2b0d79

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.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产