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

npcboard

v2.2.0

Published

CLI tool to sync AI coding tool usage stats to NPC Board (Claude Code, Codex CLI, Cursor, Cline)

Readme

npcboard

CLI tool to sync your Claude Code usage stats to NPC Board - leaderboards, streaks, and analytics for Claude Code users.

Quick Start

npx npcboard init
npx npcboard sync

That's it. init walks you through setup and optionally enables auto-sync.

What It Does

NPC Board tracks your Claude Code usage across sessions: tokens used, models, tools, session duration, response times, and more. This CLI reads your local session files (~/.claude/projects/), aggregates the numbers, and uploads them to your NPC Board profile.

Your data powers leaderboards, streak tracking, achievement badges, and cost estimates on npcboard.dev.

Commands

npx npcboard init          # Interactive setup (token + auto-sync)
npx npcboard sync          # Sync usage data with progress
npx npcboard sync --quiet  # Minimal output (for auto-sync hook)
npx npcboard status        # Show config, last sync, pending sessions
npx npcboard privacy       # See exactly what data we collect
npx npcboard uninstall     # Remove hook and config
npx npcboard --version     # Print version

Auto-Sync

During init, you can enable auto-sync. This adds a SessionEnd hook to Claude's ~/.claude/settings.json that runs npx npcboard sync --quiet after every session. No cron jobs, no daemons - it just runs when your session ends.

To add it later:

npx npcboard init
# Choose "Y" when asked about auto-sync

To remove it:

npx npcboard uninstall

Privacy

We never collect your prompts, responses, code, file contents, file names, paths, API keys, secrets, or repository information.

We only collect aggregate numbers:

{
  "date": "2026-03-03",
  "tokens_input": 52340,
  "tokens_output": 18200,
  "sessions_count": 3,
  "tools_used": { "Bash": 12, "Read": 8, "Edit": 5 },
  "models_used": { "claude-sonnet-4": 2, "claude-opus-4": 1 },
  "metadata": {
    "messages_user": 12, "messages_assistant": 14,
    "api_errors": 0, "rate_limits": 0,
    "context_compactions": 1, "fast_mode_messages": 3,
    "web_searches": 2, "pr_count": 1
  }
}

This tool is fully open source. Read every line: cli/sync.ts

Reliability

  • Batched uploads - large syncs are chunked into batches of 50 sessions
  • Retry with backoff - network failures retry 3 times (1s, 2s, 4s)
  • Per-file tracking - each file's sync state is tracked individually, so a crash mid-sync doesn't lose progress
  • Offline detection - checks connectivity before syncing, skips gracefully if offline

Requirements

  • Node.js 18+
  • A NPC Board account and sync token

License

MIT