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

@yibi/pd-ledger

v0.2.1

Published

本机 agent 交互台账:ccusage 采集 + session 对话投影 + SQLite 全文检索,附交互质量评审模块(pd-analyze)。npx 一次装好,并把用法 skill 装进 ~/.claude/skills 教会你的 agent。

Readme

@yibi/pd-ledger

本机 agent 交互台账:把 Claude Code / Codex 的使用记录(token、成本、session、对话内容)采集进本地 SQLite,支持全文检索与 session 回放。数据不出本机。

npx @yibi/pd-ledger

一条命令完成:脚本装到 ~/.pixel-distill/、用法 skill 装到 ~/.claude/skills/pd-ledger/、挂上每小时增量采集(launchd/cron)、立即首采。装完对你的 agent 说"查一下我的台账"即可。

  • 采集:ccusage 20.0.19(锁版本)+ Codex 元数据补口(cwd、父子拓扑、git、起止时间)
  • 投影:每个 session 提取成干净的 user/assistant 对话 markdown,grep 即可检索,FTS5 支持中文
  • 台账只增不删:官方 30 天清理源文件后,账目与对话投影仍在

模块:pd-analyze 交互质量评审

站在台账之上的行为质量评审(随包安装):按 rubric 对 session 抽样评分——开局质量、失败响应、证据要求、沉淀行为等维度,判定强制带证据引用(机械核验)与评分理由,失败类判定走双评并报告一致率。对 agent 说"做一次交互质量评审"即可。维度表在 ~/.pixel-distill/analysis/rubric-v0.2.md,可按自己的实践/课纲改写;测量协议不建议动。