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

ccdiet

v0.1.0

Published

Put your Claude Code context on a diet — measure per-session config overhead and find the skills, MCP servers and agents you never use.

Readme

ccdiet 🥗

给你的 Claude Code 上下文减减肥。

ccusage 告诉你花了多少钱,ccdiet 告诉你浪费了多少。

Claude Code 每次启动会话,都会先把你的配置悄悄塞进上下文:CLAUDE.md、 memory 索引、每一个已安装 skill 和 agent 的名称+描述清单、MCP 工具 schema、SessionStart hook 的注入内容。装了几个月的东西越堆越多,你就在 每一个会话里为从没用过的东西付 token 税。

ccdiet 一条命令量出这笔税,并且交叉比对本地会话记录(transcripts),找出 死重:那些装了但从未被调用过的 skills、agents 和 MCP 服务器。

真机实测输出(262 MB 记录,扫描耗时 1.5 秒):

  Your Claude Code session starts ≈ 12.6k tokens heavy — before you type a word.

  Skill listings (133 skills)     ██████████████████     9.2k  measured
  ...

  DEAD WEIGHT · 最近 30 天 · 扫描 75 个会话
  133 个 skills 中有 111 个从未被调用  →  每个会话白付 7.5k tokens
  2 个 MCP 服务器零调用:chrome-devtools、pencil

  QUICK WINS
  1. 111 个从未使用的 skills [每会话 7.5k tokens] → 卸载或禁用
  3. .claude 里有 103.1 MB 备份垃圾 → 清理
  4. skill 'brainstorming' 重名(2 处)→ 保留一份

安装使用

npx ccdiet

npm 发布前也可以直接从 GitHub 运行:

npx github:wolfqing/ccdiet

需要 Node.js ≥ 18。零依赖、零配置、零网络请求、零遥测——只读本地文件。

常用参数

| 参数 | 说明 | |---|---| | --project <dir> | 要分析的项目目录(默认当前目录) | | --days <n> | 使用记录统计窗口,默认 30 天 | | --no-usage | 只做静态配置审计,跳过 transcripts 扫描 | | --json | 输出 JSON,方便脚本 / CI 使用 |

和内置 /context/doctor 有什么区别?

内置命令看的是当前会话ccdiet 是跨项目、跨会话、带真实使用数据 的审计:它知道过去 N 天你真正调用过什么,所以能告诉你什么可以安全删掉、 每一项每月花你多少钱。token 数为估算值(±20%),用于排序和量级判断。

License

MIT © wolfqing