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

comped

v0.1.5

Published

What your AI coding subscription would have cost at full API price, read from the session logs your tools already keep. Your logs never leave your machine.

Readme

comped

What your AI coding subscription would have cost at full API price, read from the session logs your tools already keep. Your logs never leave your machine.

npx comped

That is the whole thing. It reads the logs your AI coding tools already write, prices the last 30 days at the provider's public API rates, and prints a card with your comp score: how many times over your subscription paid for itself. Then it posts just that score to gotcomped.com and tells you your rank.

What it needs

Python 3.9 or newer on your PATH. Every Mac has it. comped is standard-library Python; this package has no node dependencies and no install script. bin/comped.js finds an interpreter and runs payload/comped.py. That is all it does.

What it reads, and what it sends

  • Reads: session logs under ~/.claude/projects, ~/.codex/sessions, ~/.pi/agent/sessions and ~/.local/share/opencode/storage. Nothing else.
  • Never reads: ~/.claude.json, ~/.codex/auth.json, or any credential, keychain or token file. Which AI you use is worked out from the model ids already in those logs. Your plan tier is never read from your account.
  • Sends: one thing, once, after the card is written: your score. The exact payload is saved to ~/comped/comped-rank.json before it goes, so you can read it. leaderboard=false sends nothing at all, and then the run makes no network call whatsoever.
  • Writes: only under ~/comped. Every path is listed in the report.

Options

Arguments are key=value, the same ones the rote Play takes:

npx comped handle=yourname            # your name on the board instead of anon-xxxx
npx comped plan=claude-pro-20         # the tier you actually pay for
npx comped leaderboard=false          # the card only, no network call at all
npx comped days_back=7                # a different window
npx comped --help                     # all fourteen

Try it on the sample logs that ship with it, before pointing it at your own:

npx comped claude_dir=resources/fixtures/claude codex_dir=resources/fixtures/codex leaderboard=false

Other ways to run it

  • No node: curl -fsSL https://gotcomped.com/comped.sh | sh
  • As an inspectable rote Play, with a consent screen listing every path it will touch: curl -fsSL https://gotcomped.com/run.sh | sh

Same code, same parameters, same card. Full docs at https://gotcomped.com/docs.html.

MIT licensed. Source: https://github.com/rajkaria/comped