repowisecolbymchenry/codegraph

Architecture of colbymchenry/codegraph

colbymchenry/codegraph is 538 source files holding 5,303 symbols across 9 modules, written mainly in TypeScript, Shell, JavaScript. The largest module is src, with 174 files, and 47 files are entry points into the dependency graph.

How codegraph fits together

Source files enter through the codegraph-kernel directory, a Rust engine that parses code with tree-sitter grammars and extracts functions, classes, methods, and edges such as calls, imports, extends and implements. src/extraction/tree-sitter.ts is a hotspot file in the extraction step. src/resolution/callback-synthesizer.ts is another hotspot file, in the resolution code. The MCP tools defined in src/mcp/tools.ts let an agent request entry points, related symbols and code snippets in one call. The src directory holds 174 files, the largest module. A file watcher keeps the graph current as code changes, and the results are stored in a SQLite database in a .codegraph/ directory within each project.

Largest modules

  • src: 174 files and 49,916 lines of code
  • __tests__: 166 files and 41,335 lines of code
  • scripts: 58 files and 3,324 lines of code
  • codegraph-kernel: 42 files and 23,461 lines of code
  • docs: 33 files and 14,952 lines of code
  • site: 24 files and 796 lines of code
  • telemetry-dashboard: 16 files and 2,979 lines of code
  • telemetry-worker: 10 files and 1,420 lines of code

Languages

By file count: TypeScript 349 files, Shell 35 files, JavaScript 33 files, Rust 25 files, C++ 12 files, C 4 files.

Documentation

Repowise documents codegraph in 587 pages generated from the source.

More on codegraph: summary and FAQ, codebase overview, code health.