CodeGraph Documentation
CodeGraph transforms TypeScript and JavaScript repositories into a deterministic, queryable entity-relationship graph. This documentation details the end-to-end pipeline, AST extraction internals, graph query layer, traversal analytics, and structural health scoring models.
Engineering System Documentation
server/src/. It reflects the exact deterministic behavior of the AST parser, graph builder, analytics engine, and mathematical health scoring algorithms.Documentation Sections
Introduction
High-level overview, core architecture concepts, and getting started with CodeGraph.
Architecture & Pipeline
The 5-stage transformation pipeline from raw source files to typed entities and relationships.
Canonical Graph Model
The 5-map in-memory graph structure, invariants, graph query facade, and serialization.
Analytics Suite
Graph analysis engine answering upstream impact, downstream dependencies, cycles, and connectivity.
Algorithmic Foundations
Deep dive into the core DSA algorithms powering CodeGraph and their specific adaptations.
Health Index & Structural Metrics
The 6 structural graph metrics, continuous normalization curves, RMS math, and weighted scoring.
Technical Reference
Complete node kinds, relationship edges, supported syntax extensions, and REST API specification.