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

claude-janitor

v0.3.0

Published

Sweep your ~/.claude/skills graveyard. Scans installed skills, MCP servers, and sub-agents, cross-references your session logs, and shows what is actually used.

Readme

npx claude-janitor

▶ watch the full MP4 · static screenshot

  • Evidence-based. Reads your session logs (~/.claude/projects/) for invocation counts and last-used dates — so you see what you actually use, not what you installed.
  • Reversible by default. sweep moves dust to an archive with a manifest; restore puts it back. purge is opt-in and requires --yes.
  • Plugin-aware. Skills owned by a plugin are off-limits — Janitor won't desync your plugin manager, and points you at /plugin uninstall <name> instead.

Local-only. Reads files in ~/.claude. The only thing it writes is ~/.claude/janitor/archive/ (when you sweep). No network calls. No telemetry. Zero runtime dependencies.

Commands

janitor                    scan and print report (default, read-only)
janitor sweep              archive dust skills + remove dust MCP entries
janitor restore [id]       restore the most recent (or named) archive
janitor archives           list past sweeps
janitor purge [id]         delete archive(s) — requires --yes
janitor --json             machine-readable scan output

Add --yes to skip confirmation prompts (useful in scripts).

Why

Skills install in seconds. Plugins install in bulk. Six months in, your ~/.claude/skills/ is a museum of things you tried once. Janitor reads your session logs to tell you what you actually use — and gives you one command to clean up the rest, reversibly.

On the author's own install: 97 skills installed, 3 used in the last 30 days. Yours is probably similar.

How it classifies

  • USED — invoked in the last 30 days
  • DUST — user-installed, sweepable — never invoked, older than the 14-day grace period, lives in ~/.claude/skills/. Safe to sweep.
  • PLUGIN DUST — never invoked, but owned by a plugin. Janitor will not touch these (the plugin manager would re-install them); it shows the /plugin uninstall <name> command instead.
  • NEW — installed less than 14 days ago. Grace period.

For symlinked skills, install age is computed from the symlink's own birthtime, not the target file — so re-linking doesn't reset the grace period.

FAQ

Will it delete my stuff? No. janitor sweep moves dust skills to ~/.claude/janitor/archive/<timestamp>/ and removes dust MCP entries from config (stashing the original key + a .bak of the full config in that same archive). janitor restore puts everything back. janitor purge is opt-in and requires --yes.

Why won't it sweep plugin skills? Plugin skills live in the plugin cache, owned by Claude Code's plugin manager. Sweeping them would desync installed_plugins.json and they'd come back on the next plugin update. Use /plugin uninstall <name> for those.

What about MCP servers? The report shows which MCP servers are installed, invoked, or orphaned. It reads MCP config from every source: ~/.claude.json (user-level + project-scoped), ~/.claude/settings.json, project-root .mcp.json files, skill-bundled mcp.json, and plugin-bundled plugin.json declarations. UUID-named connectors (Supabase, Gmail, Calendar, Vercel, Stripe, Drive) are fingerprinted by their method calls and labeled. Runtime-registered servers (Claude_Preview, Claude_in_Chrome, the session MCP) are detected and listed separately — they're not user-configurable, so they're not cleanup candidates. Servers that failed auth (per mcp-needs-auth-cache.json) are flagged ⚠ needs-auth. janitor sweep removes dust MCP entries from ~/.claude.json and ~/.claude/settings.json — the entry's JSON is stashed in the archive manifest with a .bak of the full pre-edit config, and janitor restore re-inserts the key. Project-scoped and skill-bundled MCPs are intentionally left untouched by sweep (different lifecycles).

Does it work with Claude.ai or Claude Desktop? No — Janitor reads Claude Code's local files (~/.claude/) and session logs (~/.claude/projects/). Claude.ai and the desktop apps don't expose equivalent local state.

--json mode? janitor --json emits the full scan as JSON for dashboards, CI checks, or downstream tooling.

Install

npx claude-janitor              # one-shot
npm install -g claude-janitor   # persistent

Requires Node 18+. Works on macOS and Linux. Not yet tested on Windows.

Contributing

Issues and PRs welcome. The code is ~1,600 lines of zero-dependency Node split into single-purpose modules under src/scan-skills, scan-mcp, parse-logs, resolve-mcp, report, sweep. Tests live in test/ and run with node --test test/*.test.js.

License

MIT © Dor Amir