npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

code-graph-rca-ui

v0.4.4

Published

Visual graph explorer for code-graph-rca. Constellation-style force-directed view of the indexed code knowledge graph, Monaco code inspector, RCA candidate ranking + Impact (blast-radius) tabs.

Readme

code-graph-rca-ui

Visual viewer for code-graph-rca's knowledge graph and RCA results. Open any persisted cgrca session and you get a Constellation-style force-directed view of the indexed neighborhood, a ranked-candidate RCA panel with score breakdowns, and an Impact (blast-radius) tree — plus a Monaco code inspector that slides in on any node click. Built for the moment after cgrca rca returns: when the agent (or you) wants to see the structural picture, not just read it.

For the high-level pitch and architecture, see the repo README.

Install

npm install -g code-graph-rca-ui

This pulls code-graph-rca as a dep, so installing the UI gets you the engine too. Currently v0.4.0.

Run

# 1. Generate a session sqlite from a real failure:
cgrca rca symbol:login --repo /path/to/repo --persist /tmp/session.sqlite

# 2. Open the visual UI:
cgrca-view /tmp/session.sqlite          # opens browser at 127.0.0.1:7331
cgrca-view --port 7331                  # browse ~/.cgrca/sessions
cgrca-view ./sessions-dir               # browse a directory of sessions

<sqlite-path-or-dir> accepts either a single .sqlite session file or a directory of them. With no path argument, the server lists ~/.cgrca/sessions plus the current working directory.

| Flag | Default | Notes | | --- | --- | --- | | --port N | 7331 | Auto-increments through 7340 if busy. | | --no-open | off | Don't launch the system browser. | | --watch <repo> | off | Re-index on file change (chokidar). Streams LiveEvents over WebSocket to the UI. | | --dev | off | API-only mode (no SPA static serving — for local UI dev). |

Three tabs

  • Constellation graph (default) — Cytoscape-rendered force-directed view. Nodes glow by kind, edges weave faintly, causal halos size by score, recency rings color by 7d / 30d / 90d. File-scope nebulas (capped at 24 clusters — past that, the SVG layer hangs the renderer on large repos like a 28k-symbol Python checkout) give a cartographic sense of which subsystem you're in. Smart-labels avoid collision via a per-frame layout pass over the top-N highest-degree files. Click any node to slide in a Monaco source panel.
  • RCA candidates — the ranked output: score breakdown per signal (recency × proximity × ambiguity × co-change × subsystem × complexity × dataflow), recent commits per node, and a focused call-graph view around each candidate.
  • Impact tree — forward propagation from any symbol: tree view, hop-grouped graph, ranked-by-risk table, and a "high blast radius" banner when a single change reaches a lot of dependents.

A file-scope filter (shipped early in this release cycle) lets you collapse the graph to a single file's symbols + their direct neighbors, which is the right view for "what does this PR's diff actually touch?"

Bridge mode

The UI advertises itself to local MCP servers by writing ~/.cgrca/bridge.json ({ url, port, pid, sessionsDir }) on listen and removing it on shutdown. When cgrca's MCP server sees that file, the agent can call cgrca_currentSelection to read whatever symbol you're focused on in the UI, or cgrca_publishSelection to push the agent's focus back to the graph. The two views stay in sync — useful when an agent is investigating and you want to follow along visually (or vice versa).

Status

Tracks code-graph-rca major/minor releases; designed to open any sqlite produced by cgrca rca --persist (schema v6).

License

MIT.