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

coder-agentmeter

v0.1.0

Published

See where your coding-agent tokens go. One local command — Codex, Claude Code, Qwen Code, OpenCode & more. Zero upload.

Readme

coder-agentmeter

See where your coding-agent tokens go. One local command, no upload.

A unified, local dashboard for multiple coding agents — pick an agent in the header and see its own usage. Auto-detects whatever you have installed.

| Agent | Reads | Tokens | Reasoning | Cache | Est. cost | Rate limit | |---|---|---|---|---|---|---| | Codex | ~/.codex sessions | ✓ | ✓ | ✓ | — | ✓ | | Claude Code | ~/.claude/projects | ✓ | — | ✓ | ✓ | — | | Qwen Code | ~/.qwen/projects/**/chats | ✓ | ✓ | ✓ | — | — | | OpenCode | ~/.local/share/opencode/opencode.db (SQLite) | ✓ | ✓ | ✓ | ✓ | — | | Gemini CLI | ~/.gemini | detected (no per-turn token data) | — | — | — | — |

Run

npx coder-agentmeter

That's it — it opens a dashboard in your browser. Or from a clone:

npm install
npm start

The OpenCode adapter reads a SQLite store via Node's built-in node:sqlite, which needs Node 22.5+. Everything else works on Node 18+. OpenCode is loaded lazily, so older Node still runs fine for the other agents.

Options

coder-agentmeter --port 8080
coder-agentmeter --no-open
coder-agentmeter --codex-home ~/.codex

Per-agent homes can be overridden via env: CODEX_HOME, CLAUDE_HOME, QWEN_HOME, GEMINI_HOME.

Architecture

Each agent is an adapter in src/adapters/ exporting { id, label, mark, accent, capabilities, home, detect, parse }. Every adapter normalizes its raw logs into one shared schema and hands them to aggregate.buildResult(), which produces the daily/model/project/tool/weekday breakdowns and insights. The dashboard reads capabilities to show only the panels an agent supports (rate-limit for Codex, est. cost for Claude, reasoning for Codex/Qwen, …).

To add an agent, drop a new adapter module in src/adapters/, register it in src/adapters/index.js, and the UI picks it up automatically.

  • GET /api/sources — all known agents + whether their data is present
  • GET /api/data?source=<id> — normalized dashboard data for one agent
  • GET /api/refresh?source=<id> — re-parse one agent

Dashboard

  • Agent switcher — segmented control of detected agents; per-agent accent/branding.
  • KPI strip — total / cached tokens, sessions, and an adaptive third stat (reasoning, est. cost, or output depending on the agent).
  • Rate-limit panel (Codex) — live 5-hour and weekly window usage with reset countdowns.
  • Overview — daily stacked-token chart, model-share donut, top projects, weekday, tools (all hover-interactive).
  • Sessions — sortable, searchable, model-filterable table; click a row for a drilldown drawer.
  • Drilldown drawer — every prompt in a session, its turn-by-turn token chart, and tool usage.
  • Prompts — most expensive prompts across all sessions.
  • Insights — actionable findings (context pressure, reasoning share, tool-heavy sessions, marathon threads, est. spend, rate-limit pressure), each with a concrete "try this".
  • Share card — render a 1200×630 PNG of your stats locally (nothing is uploaded).
  • Light / dark themes (varna design tokens).

Notes

Token events expose usage (and, for Codex, rate-limit pressure), not a reliable per-token invoice. Costs shown for Claude Code are API-rate estimates, not your subscription bill. Reasoning tokens are reported as a subset of output tokens (total = input + output).