Skip to content

Docs · Core Concepts

Reading Chomp Map & privacy

Chomp derives structure directly from your TypeScript and JavaScript source files—never from LLM guesses. Every box and wire links back to an exact file and line.

On this page

System view and Package view

  • System view

    The top-level map of your codebase: every package (or app), how packages depend on each other, and outgoing external calls (databases, caches, queues, external APIs).

  • Package view

    Zoom inside any package to trace how entry points (pages, API routes, CLI commands, startup code) call functions, components, classes, and helpers step by step.

  • Pending changes

    Toggle live Git diff overlay to paint uncommitted edits directly on the map: +ADDED (green), ~MOD (amber), and -REM (red).

  • Agent spotlight

    When you ask your AI agent how a flow works, Chomp highlights the exact path on your map with STEP k of N navigation.

Shared, Uncalled, and Internal helpers

  • Shared (❖ N shared)

    Reused components, middleware, classes, types, and utilities referenced across a package.

  • Uncalled (N uncalled)

    Exported functions, routes, or components with zero callers inside this repo—either unused code or intentional public SDK surface.

  • Internal helpers

    Small single-package utilities folded cleanly onto their host node so the map stays readable.

Honest unknowns (? N unresolved)

A trustworthy map admits what static analysis cannot prove.

When code invokes a dynamic callback, dependency-injection container, or custom wrapper that syntax alone cannot prove, Chomp marks the call ? N unresolved and clusters similar calls by shape instead of fabricating a line.

Click any ? unresolved badge in the inspector to see the exact line of code, then wire custom patterns locally with the Bridges plugin (chomp_local_shims).

Built-in map plugins

  • Design system

    Audits design tokens, WCAG contrast pairs, hardcoded hex/pixel literals, arbitrary Tailwind values, and near-duplicate UI components.

  • Bridges

    Connects unresolved dynamic calls, event buses, dependency injection, or external OpenAPI specs onto the map (chomp_local_shims).

  • Summaries

    Attaches plain-English names and summaries to nodes (chomp_enrich_nodes), each tied to a hash of that node's code so stale docs flag themselves automatically.

  • Sequences (Coming soon)

    Planned step-by-step playback of multi-request user and API flows across packages.

Privacy & local-first architecture

Your source code, symbol names, and file paths never leave 127.0.0.1.

Illustrative node payload sent to api.getchomp.dev
{
  "id": "a8f39c12",
  "kind": "function",
  "width": 220,
  "height": 84
}
  • 1. Analyze locally: chomp analyze parses your repo on your machine and stores the map in .chomp/graph.db with zero network calls.
  • 2. Anonymized layout request: When you open Chomp Map, chomp ui strips all source snippets, file paths, and symbol names into blank geometric shapes (n_01, widths, connections) and posts only those shapes to api.getchomp.dev.
  • 3. Rehydrate in your browser: api.getchomp.dev computes orthogonal coordinates, forgets the request, and returns coordinates. Your browser merges your real names locally over http://127.0.0.1:5555.