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

@ssthil/cc-lean

v0.4.0

Published

Static, offline audit of your Claude Code setup — flags never-used MCP connectors, oversized CLAUDE.md/memory, and missing context guardrails. Then lays down a lean default setup.

Readme

Keep your Claude Code setup lean. A static, offline audit of your ~/.claude config that finds the things quietly bloating every session — then lays down a lean default setup. No telemetry, no servers launched, no network calls — it only reads files already on your disk.

npx @ssthil/cc-lean audit      # posture report
npx @ssthil/cc-lean init       # install the lean default setup

Or install globally — the command is cc-lean either way:

npm i -g @ssthil/cc-lean
cc-lean audit

Why

Claude Code defers MCP tool schemas — a connected server's tools don't enter context until you actually use one. That's good, but the deferred pool is real: a typical multi-connector setup carries 70k+ tokens of schemas waiting to load piecemeal, plus tool names and server instructions paid up front. Connected-but-never-used connectors are pure liability.

cc-lean answers the question no other tool does statically and offline: which of my connectors have I never actually used? — by reading your own session history, not by launching servers or guessing.

Honest scope: Claude Code only feeds live usage to the statusline, so real-time monitoring from an external process is impossible. cc-lean is deliberately setup + static audit, not a live monitor. For live usage use the built-in /context and /usage; for cost reporting use ccusage.

cc-lean audit

Reads ~/.claude/projects/**/*.jsonl and reports:

  • MCP connectors — which servers you actually use (with call counts + last-used), and which are connected but never used, derived from real tool_use history.
  • CLAUDE.md size — global + project, flagged when over 200 lines (it loads every session start).
  • Guardrails — whether the statusline advisor is configured; memory footprint.
  • Posture score (0–100) + the top 3 highest-impact fixes.

See the screenshot above for the full framed report.

POSTURE   60/100   needs work
██████████████████░░░░░░░░░░░░

MCP CONNECTORS                               152 transcripts
────────────────────────────────────────────────────────────
● Atlassian            ▇▇▇▇▇▇   28×    today
● Figma                ▇·····   5×     19d ago
○ Gmail                never used  ~14 tools deferred
○ Slack                never used  ~2 tools deferred
...

TOP FIXES
① Disconnect 16 never-used connectors (…) — shrinks the deferred MCP pool. Run /mcp.

cc-lean init

Lays down the lean default setup, safely (existing files are backed up to *.bak, never silently clobbered):

  1. ~/.claude/statusline-advisor.sh — live context-%/cost gauge (green/yellow at 70%/red at 90%). Requires jq.
  2. A statusLine entry merged into ~/.claude/settings.json (other keys untouched).
  3. The /lean skill at ~/.claude/skills/lean/SKILL.md — on-demand consumption audit + lean working mode.
cc-lean init --dry-run   # preview without writing

Install as a Claude Code plugin

Prefer to manage it inside Claude Code? This repo is also a plugin marketplace, so you can install the /lean skill and a PreCompact nudge (reminds you to preserve state and prefer /clear at task boundaries) directly:

/plugin marketplace add ssthil/cc-lean
/plugin install cc-lean@ssthil

The plugin ships the /lean skill and the PreCompact hook. It can't set your statusLine (that's a user-only setting), so run the bundled /lean-setup command — or npx @ssthil/cc-lean init — to add the live context/cost gauge.

Requirements

  • Node ≥ 18 (zero runtime dependencies)
  • jq for the statusline (audit/init themselves don't need it)

License

MIT