← Back to the graph03 / 10 · tool

Understand any TypeScript repo in one interactive map.

RepoAtlas: an architecture map of Zustand with entry points, modules, dependencies and a verified source line.
Year
2026
Role
Author
Stack
TypeScript, Compiler API, SVG, Node.js
Links
Live site ↗Source on GitHub ↗

Overview

Parses every import with the TypeScript compiler API and turns a project into a standalone architecture map – every connection links to the line that proves it.

Architecture diagrams drift from the code the day they are drawn. RepoAtlas derives the map from the code itself: the TypeScript compiler API resolves every import, and every edge on the map links to the exact statement and line behind it.

A Focus map shows a module's direct neighbours, an Impact map everything that transitively depends on it, and circular import groups are isolated edge by edge. The output is one HTML file you can share.

247
modules in the Hono map
676
connections traced
1
HTML file to share
maximilianfeix.github.io/repoatlas/
RepoAtlas: an architecture map of Zustand with entry points, modules, dependencies and a verified source line.

Implementation

  1. 01

    The compiler as the source of truth

    Imports are resolved with the same module resolution TypeScript uses, including path aliases and re-exports – no regex guessing.

  2. 02

    Evidence on every edge

    Each connection stores file, line and the import text, so any claim on the map can be verified with one click.

Technical challenges

  • Readable at 600+ edges

    Layered layout by dependency depth, focus and impact views, and cycle groups pulled out so large graphs stay legible.

Architecture

Resolve → build graph → detect cycles (Tarjan) → lay out → render into a single self-contained HTML file.

shrepoatlas
npx --yes --package=github:maximilianfeix/repoatlas -- \
  repoatlas https://github.com/pmndrs/zustand -o zustand-map.html