@lachlans9/codegraph
v0.2.0
Published
Scans a codebase and generates dependency/call graphs as JSON or an interactive HTML report
Readme
codegraph
Scans a codebase and generates dependency/call graphs as JSON or an interactive, self-contained HTML report. Supports C#, Java, Go, Python, TypeScript/React, and Rust.
Install
npm install -g @lachlans9/codegraphThis installs the codegraph command. It's a thin wrapper: on install,
a small script downloads the prebuilt codegraph binary matching your
OS/architecture from GitHub Releases
and runs it directly — no Node.js runtime dependency once installed.
Usage
codegraph # scan the current directory, write .codegraph/report.html
codegraph path/to/repo # scan a specific path
codegraph --view=call # function-call graph instead of module dependencies
codegraph --format=json # JSON to stdout instead of the HTML report
codegraph --helpSee the main repo for full documentation.
Supported platforms
Windows x64, Linux x64/ARM64, macOS ARM64 (Apple Silicon).
