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

@rehberodhano/claude-usage-companion-daemon

v0.2.1

Published

Optional local daemon for Claude Usage Companion — unlocks CLI attribution, session search, retention warnings, and Guardrails.

Readme

Claude Usage Companion — daemon

Optional, local-only companion daemon for the Claude Usage Companion browser extension (Chrome, Edge, Firefox). The extension is fully functional on its own — this package is only worth installing once the extension is, since it's what pairs with it to unlock everything below.

It reads your local Claude Code session logs (~/.claude/projects/**/*.jsonl) and config. It never talks to claude.ai, and claude.ai never talks to it. It's stateless and read-only except for two write paths you trigger yourself (Guardrails overrides, scoped to one gitignored file, and New Project scaffolding) — see the main repo for the full source and docs.

Install

Requires Node.js ≥20.

npm install -g @rehberodhano/claude-usage-companion-daemon
claude-usage-daemon install    # generates a token, registers a login-time service, starts it

No token to copy or paste: open the extension's options page and it pairs with the daemon automatically within about a minute (a Check now button forces this immediately).

If you later reinstall the extension or clear its data, run claude-usage-daemon install again — the daemon hands out its token only once, so a fresh extension otherwise can't pair.

install registers a background service so the daemon survives a reboot: a launchd agent on macOS, a systemd --user unit on Linux, or a Task Scheduler task on Windows. On Linux, also run loginctl enable-linger $USER so it survives logging out. To run it in the foreground instead, use claude-usage-daemon start.

Windows note: the Task Scheduler registration path is unit-tested (mocked command execution) but hasn't yet been verified end-to-end on a real Windows machine, unlike the macOS and Linux paths. If install doesn't work as expected there, please open an issue on the main repo — running claude-usage-daemon start in the foreground works regardless of platform.

What it unlocks

Once paired, the extension's dashboard gets:

  • CLI token attribution by project and model, plus a rough tokens-per-percent-of-weekly-limit estimate
  • Full-text session search with one-click resume
  • Retention warnings before Claude Code's 30-day log cleanup, with markdown export
  • Guardrails: view/override permission rules, hooks, skills, and CLAUDE.md for a project you pick
  • New Project scaffolding with automatic stack detection

See the main repo's README for the full feature reference.

Uninstall

| Platform | Command | | --- | --- | | macOS | launchctl unload ~/Library/LaunchAgents/com.headroom.claude-usage-daemon.plist && rm ~/Library/LaunchAgents/com.headroom.claude-usage-daemon.plist | | Linux | systemctl --user disable --now claude-usage-daemon.service | | Windows | schtasks /delete /tn ClaudeUsageDaemon /f |

The token file at ~/.config/claude-usage/token can be deleted afterward as well.

Statusline

This package also installs claude-usage-statusline, a self-contained script for Claude Code's statusLine hook. It prints session/weekly rate-limit windows (straight from Claude Code's own stdin payload — works without the daemon) plus today's CLI token total (daemon-sourced). Point statusLine in ~/.claude/settings.json at claude-usage-statusline, or pipe your existing statusline script's stdin through it and append its output as an additional segment.

Privacy & security

  • Nothing leaves your machine — no accounts, no cloud sync, no analytics.
  • Binds to 127.0.0.1 only, requires a bearer token on every route except /health, and rejects any http(s): page origin outright — only extension-scheme origins are accepted.
  • No conversation content is ever logged or read beyond structural fields (tool names, counts, timestamps).

Full privacy policy: https://rehberodhano.github.io/headroom/privacy.html

License

MIT — see LICENSE.