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

briefed

v1.4.0

Published

Adaptive Context Engine — compile your codebase into focused, token-efficient context for AI coding tools

Readme

briefed

Compile your codebase into focused, token-efficient context for AI coding tools.

briefed scans your repository and produces a layered context snapshot that Claude Code, Cursor, Copilot, and any tool reading AGENTS.md load automatically — so the AI starts oriented instead of grepping around.

Headline

v1.1.0 — danger-zone annotations, test assertion extraction, 9 MCP tools.

Quality bench (epic-stack, n=4 paired)

| Configuration | Wall time (mean) | Correctness | $/task | Input tokens | |---|---|---|---|---| | Serena alone | 100s | 5/5 | $0.43 | 874K | | Serena + briefed (with hooks) | 64s | 5/5 | $0.38 | 312K |

-36% wall time, equal correctness, ~11% cheaper per prompt.

SWE-PolyBench (v1.6, 3 evaluable TypeScript tasks)

| Task | baseline | briefed-only | |---|---|---| | mui/material-ui-13828 | Pass | Pass | | microsoft/vscode-106767 | Fail | Fail | | microsoft/vscode-135805 | Fail | Pass |

briefed-only 2/3 vs baseline 1/3. The vscode-135805 win: adaptive skeleton (200 files) let the model find multicursor.ts in 23 turns while baseline hit the 41-turn cap with an empty patch.

Install — pick your path

Claude Code users (recommended): install as a Claude Code plugin so the MCP server actually loads and the hooks register globally.

claude plugin marketplace add WesOps/briefed
claude plugin install briefed

Cursor / Copilot / Codex / other tools: install via npm and run the CLI per-project. You get the static skeleton + cross-tool output but not the MCP server (which currently only loads via the Claude Code plugin path).

npm install -g briefed
briefed init

That's it. briefed installs a git post-commit hook and re-indexes after every commit.


What it produces

| Layer | What | Where | When loaded | |-------|------|--------|-------------| | Skeleton | File tree, exports, signatures, dep graph (PageRank-ranked), routes, schemas, conventions | CLAUDE.md / AGENTS.md / .cursorrules | Every session | | Deep rules | Behavioral descriptions, danger-zone annotations, test assertions | .claude/rules/ | When touching matching files | | Contracts | Per-module behavioral contracts | .briefed/contracts/ | Per-prompt via hook | | MCP tools | On-demand queries (blast radius, find usages, symbol lookup) | briefed mcp server | When the agent asks |

Installation

# Run once in any repo
npx briefed init

# Preview without writing files
npx briefed plan

# Validate setup
npx briefed doctor

# Token usage breakdown
npx briefed stats

What gets extracted

Static analysis only — no LLM calls during init (unless --deep is used). Extractors run only when relevant files are present.

Code structure

  • Function/class/type signatures via TypeScript AST (with regex fallback for other languages)
  • Dependency graph with PageRank-ranked file importance
  • Import cycle detection (runtime imports only — type-only imports are correctly ignored)
  • Symbol-level cross-references and call-site lookup

APIs & data

  • HTTP routes — Express, Fastify, Hono, Next.js, FastAPI, Flask, Django
    • Per-route auth detection (requireAuth, getServerSession, Depends(get_current_user), role middleware, @login_required, etc.)
    • Per-route request body schema detection (Zod, validateBody, Schema.parse)
  • Database schemas — Prisma, Drizzle, TypeORM, Django models, fields, relations
  • Cross-layer graph linking frontend fetch calls to backend route handlers

Project context

  • External deps with installed versions and import counts (Context7-aware: detects Context7 MCP and signals the agent to ask for version-pinned public docs; flags private packages where Context7 has no coverage)
  • Environment variables (required vs optional, grouped by category)
  • Build/test/dev scripts from package.json, Makefile, etc.
  • Monorepo workspace detection
  • Infrastructure files (Docker Compose, etc.)

Quality signals

  • Complexity scoring per file
  • Gotchas: TODO/HACK/FIXME/WARNING comments, guard clauses
  • Error handling pattern detection
  • Project conventions (camelCase vs snake_case, error style, named vs default exports)
  • Usage examples — how each exported symbol is actually called elsewhere in the repo
  • Test mappings (source → test file)
  • Git churn (hot files in last 90 days)
  • Recent file history for high-complexity files
  • Frontend page routes and components
  • Secret redaction (skips and redacts files matching sensitive patterns)
  • Staleness detection (compares against last index)

Deep analysis (--deep)

briefed init --deep uses your Claude Code subscription to generate LLM-powered annotations for the most important files (top 15%, ranked by PageRank + git churn + complexity). Cached by content hash — re-runs are near-free.

  • Behavioral descriptions — one-line summaries of what each exported function does
  • Danger-zone annotations — for critical-tier files (top 20%): what callers depend on, what tests assert, what breaks if you change this function wrong. Injected as ⚠ DANGER: lines in path-scoped rules
  • Test assertion extraction — surfaces what tests actually check (expect/assert lines), not just test names
  • Directory boundaries — "this directory handles X, NOT Y — for Y, look in Z"

MCP tools

Run briefed mcp to start an MCP server that exposes on-demand queries to your AI agent:

| Tool | What it does | |------|--------------| | briefed_context | Search modules by topic — returns contracts for best-matching directories | | briefed_issue_candidates | Given a bug report, returns top candidate files via keyword matching | | briefed_symbol | Look up a function/class/type by name — signature, importers, dependencies, test coverage | | briefed_find_usages | Find every call site of a symbol. Scoped to importers, much faster than grep | | briefed_blast_radius | BFS over the dep graph — every file affected by changing a given file | | briefed_routes | Filter API routes by HTTP method or path pattern | | briefed_schema | Look up database models with fields, types, and relations | | briefed_test_map | Look up which test file covers a source file, with test names and assertions | | briefed_env_audit | List every env var the app reads — name, required/optional, category, consumers |

Add to .mcp.json or .claude/settings.json:

{
  "mcpServers": {
    "briefed": { "command": "briefed", "args": ["mcp"] }
  }
}

What gets generated

your-repo/
├── CLAUDE.md                        # skeleton — Claude Code
├── AGENTS.md                        # cross-tool context (Codex, Copilot, generic)
├── .cursorrules                     # Cursor IDE
├── codex.md                         # OpenAI Codex CLI
├── .github/copilot-instructions.md  # GitHub Copilot
├── .claude/
│   ├── settings.json                # adaptive hooks
│   └── rules/
│       └── briefed-*.md             # path-scoped gotchas
└── .briefed/
    ├── contracts/                   # module behavioral contracts
    ├── index.json                   # module map for hook matching
    ├── test-map.json                # source → test file mappings
    └── history.json                 # git history for complex files

How it stays fresh

briefed installs a git post-commit hook that re-indexes in the background after every commit. No CI required.

# Manual refresh
briefed init

# Check staleness / setup health
briefed doctor

# Remove the git hook
briefed unhook

Commands

briefed init              # scan + generate context (writes files)
briefed init --deep       # + LLM-powered behavioral descriptions & danger zones
briefed plan              # preview without writing
briefed stats             # token usage breakdown
briefed doctor            # validate setup, check staleness
briefed mcp               # start MCP server for on-demand queries
briefed bench             # benchmark briefed vs baseline Claude Code
briefed unhook            # remove git post-commit hook

Bench

briefed bench runs Claude Code on a fixed set of tasks twice — once with briefed, once without — and reports duration, token usage, turn count, file reads, and edit/read ratio for each task.

briefed bench --quick     # 2 tasks (~10–20 min)
briefed bench             # 3 tasks (default)
briefed bench --full      # 5 tasks (~40–90 min)

Resumable — if a run dies mid-bench, re-running picks up where it left off. Uses your Claude Code subscription, not the API.

Works with

  • Claude CodeCLAUDE.md + adaptive hooks + MCP server
  • Cursor.cursorrules
  • GitHub Copilot.github/copilot-instructions.md
  • OpenAI Codex CLIcodex.md
  • Anything else that reads AGENTS.md

Requirements

  • Node.js >= 20
  • Git (for the auto-update hook)

License

MIT