Skip to content

Ctxo Visualizer ​

A self-contained single-page web app that lets you explore the Ctxo index visually β€” the same graph the MCP tools query, but rendered for humans.

How to get here

Run npx ctxo visualize in any indexed project. The CLI generates a static HTML file and opens it in your browser.

What you see ​

Visualizer full view

The graph layout is force-directed: symbols cluster by connectivity, edges show imports / calls / extends / implements / uses. Node size scales with PageRank (centrality), colour encodes dead-code status.

Dashboard ​

Dashboard

The left panel summarises your codebase at a glance:

  • Symbol count broken down by kind (function / class / interface / ...)
  • Dead code percentage and scaffolding markers (TODO / FIXME / HACK)
  • Change intelligence bands β€” which files carry the most complexity Γ— churn
  • Anti-pattern counts β€” reverted code and hot-revert hotspots

Search

The search bar runs the same two-phase ranker as get_ranked_context:

  1. BM25 lexical pass (camelCase-aware, trigram fallback for typos)
  2. PageRank re-rank within the matching candidate set

Query-free browsing (blank box) is also supported β€” the list falls back to global PageRank order.

Detail panel ​

UI detail

Click any node to see:

  • Its Logic-Slice (symbol + transitive dependencies, what the MCP agent would receive)
  • Blast radius tiers (confirmed / likely / potential) with impact score
  • Git intent β€” recent commits touching the symbol + anti-pattern warnings
  • Incoming / outgoing edges with their kinds

Features ​

FeatureWhat it doesMCP equivalent
Force-directed graphVisual cluster discoveryget_architectural_overlay
Node sizingPageRank centralityget_symbol_importance
Dead-code highlightingFlags unreachable + unused-export symbolsfind_dead_code
Click = detail panelLogic-Slice + blast + historyget_logic_slice + get_blast_radius + get_why_context
Top-N filterZoom into PageRank top symbols--max-nodes flag on ctxo visualize
Full-text searchFind symbols without knowing the exact nameget_ranked_context

Released under the MIT License.