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

@greymoth/ccwrapped

v0.1.2

Published

Local-only Claude Code usage analytics + a shareable risograph 'Wrapped' card. Reads ~/.claude transcripts, sends nothing.

Readme

ccwrapped ✺

See your Claude Code usage — then share it. A local-only CLI that reads your ~/.claude transcripts: a clean usage breakdown in your terminal, plus a beautiful, risograph-style Wrapped card on demand — messages, est. value, top model/project, and how much prompt caching quietly saved you.

npm downloads license no network

No account. No servers. Nothing leaves your machine — and the card prints itself.

npm i -g @greymoth/ccwrapped
ccwrapped --wrapped       # → claude-code-wrapped.svg  (open in a browser, screenshot, share)
ccwrapped                 # last 30 days, by model (terminal)
ccwrapped --all           # lifetime
ccwrapped --by project    # where your tokens actually go

Why a card?

Because “I ran 12,480 messages through Claude Code this month” is a thing people want to show, not a number buried in a table. --wrapped writes a self-contained SVG (fonts embedded) — open it in any browser, screenshot, post it. Drop --anon and it hides your project names for a clean public share. Seasonal flex, built in: Claude Code Wrapped.

Pairs with ccusage: ccusage is the spreadsheet, ccwrapped is the poster. Same ~/.claude data, different job — numbers vs. a thing you share.

Two looks — pick your share

Add --v2 for the Build Fingerprint: your model mix as one two-ink risograph bar — which models actually did the work, not just a total. It turns the card from a stat readout into a signature.

ccwrapped --all --wrapped --v2     # → the Build Fingerprint card (example above)

In your terminal — the daily driver

ccwrapped prints a clean per-model breakdown: messages, tokens, est. cost, and what caching saved you.

Options

ccwrapped [period] [--by model|project|day] [--json] [--wrapped [file.svg]] [--anon] [--v2]
period:  --today | --week | --month (default) | --all | --days N
--v2 (--fingerprint):  the "Build Fingerprint" card — your model mix as a single 2-ink bar

How it works

Reads assistant lines in ~/.claude/projects/**/*.jsonl, deduplicates by message.id (streaming writes the same message several times), and prices tokens against a bundled per-model rate table (input / output / cache-read / cache-write 5m & 1h).

Honest about the numbers

  • Cost is an estimate (API-equivalent). On a Pro/Max plan it is not what you paid — it's the value you'd have spent at API rates.
  • Rates are a bundled snapshot of Anthropic pricing; 1M-context premiums and web-tool fees aren't modelled. Token cost dominates, so totals are close, not exact.
  • 100% local. No network calls (grep the source — there are none). Your transcripts never leave the machine.

License

MIT. Bundled fonts: Space Grotesk & JetBrains Mono (SIL Open Font License).


Built by greymoth. If your Wrapped surprised you, a ⭐ helps the next person find it.