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

adr-explorer

v0.3.0

Published

Visualize Architecture Decision Records with timeline and graph views — VS Code extension or standalone web app via npx. Pairs with deep-adr for authoring.

Readme

ADR Explorer

Browse, analyze, and tidy your Architecture Decision Records in a graph + timeline view. Two ways to run it:

  • npx adr-explorer — local web app, opens in your default browser. No editor required.
  • VS Code extension — same UI, hosted in a webview tab.

Both targets ship from the same repo and share the same UI bundle.

ADR Explorer — feature overview


Features

  • Force-directed graph of decisions with supersedes / amends / relates-to edges.
  • Timeline panel sorted by date, with status, review, and confidence badges.
  • Health dashboard — score (A–F), stale decisions, orphans, supersession chains, zombie decisions, missing deciders.
  • Lifecycle analytics — velocity, status-over-time, decision debt, hotspots, ownership/bus factor, confidence distribution.
  • AI Insights (opt-in) — Claude reviews the whole graph for contradictions, missing relations, and staleness.
  • AI Distill (opt-in) — Claude flags filler, redundant sections, and over-detailed alternatives in individual ADRs, with one-click apply.
  • Live file watching — edits on disk show up immediately.

Graph view

Group decisions by tag, status, or decider to see clusters at a glance:

Graph grouping

Trace supersession chains to understand how a decision evolved:

Supersession chains

Health dashboard

Score the corpus (A–F) and surface stale, orphan, zombie, and incomplete decisions:

Health dashboard

Lifecycle analytics

Velocity, status-over-time, and decision debt:

Lifecycle overview

Hotspots by area / tag:

Lifecycle by area

Ownership and bus-factor by decider:

Lifecycle by people

AI Distill

Claude flags filler and over-detail per ADR, with one-click apply:

AI Distill — review

AI Distill — applied result


Authoring ADRs with deep-adr

ADR Explorer reads and audits an ADR corpus. It doesn't write the decisions for you. For that, use its companion: deep-adr — four coding-agent skills (adr-discovery, draft-adr, adr-critique, c4-model) that co-think each decision with you and push back on weak reasoning. Works with Claude Code, Cursor, OpenCode, GitHub Copilot, and other agents supported by the skills CLI.

deep-adr (discover + draft + critique + C4)  →  *.md on disk  →  ADR Explorer (visualize + audit + distill)

The two cover opposite halves of the ADR lifecycle:

| | deep-adr | ADR Explorer | |---|---|---| | When | While authoring decisions | After many exist | | Mode | Discover + co-author + critique + model | Visual audit + distill | | Surface | Coding-agent skills (Claude Code, Cursor, Copilot, …) | Browser / VS Code webview |

Install the skills once and they'll be available next time you ask your coding agent to discover, draft, critique, or model an ADR. See the deep-adr README for setup.


Quick start (npx, no VS Code required)

From the directory containing your ADRs:

npx adr-explorer

That's it. A browser tab opens at http://127.0.0.1:<port>/?token=… showing the explorer.

By default, ADRs are discovered under any of:

  • **/adr/*.md
  • **/docs/adr/*.md
  • **/docs/decisions/*.md
  • **/docs/architecture/decisions/*.md

If your ADRs live elsewhere, point --root at the right folder:

npx adr-explorer --root path/to/decisions

Enabling AI features

Distill and Insights require an Anthropic API key (BYOK — calls go directly from your machine to Anthropic, nothing else sees them):

export ANTHROPIC_API_KEY=sk-ant-...
npx adr-explorer --with-ai

Without --with-ai, the AI buttons are hidden and the tool runs as a viewer/analyzer.

CLI flags

| Flag | Default | Effect | |---|---|---| | --root <dir> | cwd | Directory to scan for ADRs | | --with-ai | off | Enable Distill + Insights (requires ANTHROPIC_API_KEY) | | --read-only | off | Suggestions are visible but Apply is disabled — files cannot be modified | | --port <n> | random | Bind to a specific port | | --host <addr> | 127.0.0.1 | Bind address. Don't set this to 0.0.0.0 on untrusted networks | | --no-open | opens | Don't auto-open the browser; just print the URL | | --help, -h | — | Show help | | --version, -v | — | Print package version |

Security model

  • Bound to 127.0.0.1 by default.
  • A random per-session bearer token gates both HTTP and WebSocket; the URL printed in the terminal contains it.
  • Apply Distill writes to local files via Node fs. Pass --read-only to disable that path entirely.

Quick start (VS Code extension)

  1. Install the extension from the marketplace (or vsce package + install locally).
  2. Open a folder containing ADRs.
  3. Click the ADR Explorer status bar item, or run ADR Explorer: Open from the command palette.

The VS Code path uses the GitHub Copilot Language Model API (Claude via Copilot), so no API key is needed if you have Copilot. The npx path uses the Anthropic API directly.


ADR file format

Standard markdown with YAML frontmatter. Filenames must start with a number (e.g. 0001-use-rest-for-public-api.md).

---
title: "Use REST for the public API"
status: accepted          # proposed | accepted | deprecated | superseded
date: 2025-01-15
deciders: ["Alice", "Bob"]
supersedes: []            # list of ADR numbers/IDs
amends: []
relates-to:
  - id: 0003
    reason: "Builds on the auth model"
tags: ["api", "backend"]
review-by: 2026-01-15     # optional
expires: 2027-01-15       # optional
confidence: high          # optional: high | medium | low
---

# Use REST for the public API

## Context
...

## Decision
...

## Consequences
...

The frontmatter parser is lenient — only status defaults to proposed if missing or invalid, and date defaults to today. ADR IDs are derived from the leading number in the filename and zero-padded to 4 digits (ADR-0001).


Development

git clone https://github.com/janmohammadi/adr-explorer
cd adr-vs-code
npm install
npm run build           # produces dist/{extension,explorer,cli,host-shim}.js
npm run watch           # rebuild on change
npm run lint            # tsc --noEmit
node dist/cli.js --root test-fixtures   # smoke test the CLI

Repo layout

src/
  core/              # host-neutral: types, parser, repository, analyzers, message router, interfaces
  adapters/
    vscode/          # vscode.lm / Webview / DiagnosticCollection bindings
    node/            # @anthropic-ai/sdk + ws + chokidar + fast-glob bindings
  cli/               # CLI entry, Express + ws server, browser launcher
media/explorer/      # webview UI (D3 force graph, charts, panels)
dist/                # bundled output (extension.js, explorer.js, cli.js, host-shim.js)
test/                # validator tests
test-fixtures/       # example ADRs used for smoke tests

The core/ layer has zero vscode imports and runs identically inside the extension and the CLI. The two adapters/* directories implement three interfaces — LMProvider, AdrFileSystem, Host — that the message router consumes.

Building both targets

esbuild.js produces four bundles in one pass:

| Bundle | Source | Target | |---|---|---| | dist/extension.js | src/adapters/vscode/extension.ts | Node CJS, vscode external | | dist/cli.js | src/cli/index.ts | Node CJS, shebang, vscode external | | dist/explorer.js | media/explorer/explorer.js | Browser IIFE | | dist/host-shim.js | media/explorer/host-shim.js | Browser IIFE (CLI lane only) |


License

MIT — see LICENSE.