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-burn

v1.0.5

Published

Monitor Claude Code token usage, burn rate, and session attribution. Zero dependencies.

Readme

claude-burn

See which Claude Code sessions are eating your tokens and how fast.

Zero dependencies. Reads local JSONL files. Nothing leaves your machine.

claude-burn dashboard

Quick start

npx claude-burn

Opens a dashboard at http://localhost:8787 with auto-refresh.

To install globally:

npm install -g claude-burn
claude-burn

Features

  • Active session detection — see which sessions are running right now
  • Token breakdown — input, output, cache read, cache write per session
  • Burn rate — recent (last 3 min) and average (active time) tokens/min
  • Active vs idle time — excludes idle gaps from duration calculations
  • Subagent tracking — token usage per agent with model info on hover
  • Session share bar — proportional token distribution across sessions
  • API cost equivalent — what your usage would cost at API pricing (per model)
  • Timeline chart — cumulative token growth over time
  • Search and sort — filter sessions by title, sort by recent/tokens/burn rate
  • Keyboard shortcutsR refresh, J/K navigate, / search, 1-7 time filter
  • Auto-refresh — every 5s for 24h and under, manual for longer ranges

Options

claude-burn [options]

--port <n>        Server port (default: 8787)
--data-dir <path> Claude data directory (default: ~/.claude/projects)
--no-open         Don't auto-open browser
--version, -v     Show version
--help, -h        Show help

Keyboard shortcuts

| Key | Action | |-----|--------| | R | Refresh data | | J / K | Navigate sessions down / up | | / | Focus search | | Esc | Clear search | | 1 - 7 | Time filter (1h, 6h, 12h, 24h, 3d, 7d, 30d) |

How it works

Claude Code stores a .jsonl file for every session in ~/.claude/projects/. Each line contains timestamps, token usage, model info, and message content. This tool parses those files and displays the data in a local web dashboard.

Pricing is calculated per model: | Model | Input | Output | Cache read | Cache write | |-------|-------|--------|------------|-------------| | Opus 4.6 | $5/M | $25/M | $0.50/M | $6.25/M | | Sonnet 4.6 | $3/M | $15/M | $0.30/M | $3.75/M | | Haiku 4.5 | $1/M | $5/M | $0.10/M | $1.25/M |

Requirements

  • Node.js 18+
  • Claude Code (session data must exist in ~/.claude/projects/)

Privacy

All data stays on your machine. No analytics, no network calls, no telemetry. The server binds to 127.0.0.1 only.

License

MIT