Skip to main content

CodeAtlas

Zero-config local codebase architecture & call-graph visualizer.

Inspect functions, classes, call-graph hubs, unreferenced ("dead") code, circular dependencies, and shortest call paths in your terminal or browser—with zero cloud uploads, zero configuration files, and zero runtime dependencies for the CLI.

CodeAtlas interactive Svelte call-graph demo

More screenshots (Overview, Focus 1-hop, File-level Graph)
Symbol Graph & Path Finder Focus 1-Hop Isolation File Dependency Map
CodeAtlas Symbol Graph CodeAtlas Focus 1-Hop CodeAtlas File Graph

Key Features

  • Zero Runtime Dependencies: Pure Python standard-library CLI (pip / pipx ready).
  • Multi-Language Analysis (9 Languages):
    • Python: Full ast parsing for classes, methods, nested functions, docstrings, relative imports, and import aliases.
    • JavaScript / TypeScript / Svelte: Structural analysis of functions, arrow functions, ES6 classes, methods, getters/setters, class arrow properties, and <script> blocks.
    • Go / Rust / Java / C / C++: Structural parsing of structs, traits/impl blocks, receiver methods, classes, and member call sites.
  • Architectural Health Score & Standalone HTML Report:
    • Computes a 0–100 repository health score based on circular dependency and dead-code ratios.
    • Export self-contained single-file .html architecture reports (codeatlas export . --format html -o report.html).
  • Interactive Svelte 5 Web UI (codeatlas serve):
    • Switch between Symbol-Level and File-Level dependency graphs.
    • Hubs, Circular Dependencies (Cycles), and Unreferenced (Dead) tabs.
    • Shortest Call-Path Finder (BFS): Highlight the exact call chain (A → ... → B) between any two symbols.
    • Focus 1-Hop Mode: Isolate callers and callees of the selected symbol.
    • Live Source Preview: Inspect exact source lines directly in the side panel.
    • One-Click Exports: Download .svg or .mmd (Mermaid) diagrams directly from the toolbar.
  • Fast & Scalable: Iterative Tarjan strongly-connected-components (SCC) cycle detection, precompiled .gitignore matching, and automatic minified bundle filtering.

Architecture Overview

flowchart LR
    CLI["cli.py (main)"] --> Scanner["scanner.py (scan_directory)"]
    CLI --> Server["server.py (serve_graph)"]
    Scanner --> AnalyzerRegistry["analyzers/__init__.py (analyze_file)"]
    AnalyzerRegistry --> PyAnalyzer["python_analyzer.py (analyze_python)"]
    AnalyzerRegistry --> JsAnalyzer["js_analyzer.py (analyze_js)"]
    Scanner --> GraphModel["models.py (CodeGraph)"]
    Server --> WebUI["Svelte 5 Web UI (/api/graph & /api/file)"]

Installation

# Run directly with pipx / uvx (once published to PyPI)
pipx install codeatlas-viz

# Or install from source
git clone https://github.com/kutyfuty/codeatlas.git
cd codeatlas
pip install -e .

Usage

1. Terminal Summary (scan)

codeatlas .
# or explicitly:
codeatlas scan /path/to/repo

2. Interactive Web UI (serve)

codeatlas serve .
# Custom port / without auto-opening browser:
codeatlas serve /path/to/repo --port 4173 --no-open

3. Export Graph (export)

# Export as self-contained single-file HTML report
codeatlas export . --format html -o report.html

# Export as GitHub-flavored Markdown summary (great for PR comments / CI)
codeatlas export . --format markdown -o SUMMARY.md

# Export as Mermaid flowchart
codeatlas export . --format mermaid -o architecture.mmd

# Export full graph analytics as JSON
codeatlas export . --format json -o graph.json

Development & Testing

# Backend tests
pip install -e ".[dev]"
pytest -v

# Rebuild Svelte static bundle (outputs to src/codeatlas/web/)
cd frontend
npm install
npm run build

License

MIT

Metadata

Release files for codeatlas-viz 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codeatlas-viz 0.2.3
File Size Uploaded Provenance Actions
codeatlas_viz-0.2.3.tar.gz 55.0 kB With provenance Details for codeatlas_viz-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codeatlas-viz 0.2.3
File Interpreter ABI Platform Actions
codeatlas_viz-0.2.3-py3-none-any.whl Python 3 none any Details for codeatlas_viz-0.2.3-py3-none-any.whl

Total release size: 107.6 kB

Release files / codeatlas_viz-0.2.3.tar.gz

Download URL codeatlas_viz-0.2.3.tar.gz
Size 55.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4405cb499fcff4d11cb1ba976895d46ac6862fcbfd0f37f618b5ce02ad09f021
BLAKE2b-256 checksum
How to use checksums
ec0fc44fcbc59c8fd88d9cee73912ff411efac10e14d45cb086cba1d7dfe4bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / codeatlas_viz-0.2.3-py3-none-any.whl

Download URL codeatlas_viz-0.2.3-py3-none-any.whl
Size 52.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
879c87a66e9f650b8ef40fc9bc777a3ae1f710f27d20bac97b67c6e85a075006
BLAKE2b-256 checksum
How to use checksums
92463392a9b499d33d907b77efbb2bd4a5bf6f3fb8b8313e273a7997b2d986b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for codeatlas-viz 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codeatlas_viz-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page