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

cc-leaderboard

v1.3.0

Published

CLI tool to submit Claude Code usage to the leaderboard

Readme

cc-leaderboard

CLI tool to submit your Claude Code usage to your team's leaderboard.

Configuration

First time setup: Your team likely has a dedicated leaderboard instance. Configure the CLI to point to your team's server:

npx cc-leaderboard config --api-url https://your-team-leaderboard.com

Don't know your team's URL? Ask your team lead or check your team's documentation.

If you run npx cc-leaderboard login without configuring first, the CLI will prompt you to enter your team's URL.

Quick Start

No installation required! Just use npx:

# Configure your team's leaderboard URL (first time only)
npx cc-leaderboard config --api-url https://your-team-leaderboard.com

# Authenticate with GitHub
npx cc-leaderboard login

# Submit today's usage
npx cc-leaderboard submit

# Import all historical usage data
npx cc-leaderboard submit --all

# Submit a specific date
npx cc-leaderboard submit --date 2024-01-15

# Check your configuration
npx cc-leaderboard status

Commands

login

Authenticate with the leaderboard via GitHub OAuth.

npx cc-leaderboard login

This will:

  1. Open your browser for GitHub authentication
  2. Generate an API key for your account
  3. Securely store the key in your system keychain

submit

Submit your Claude Code usage data to the leaderboard.

# Submit today's usage
npx cc-leaderboard submit

# Submit a specific date
npx cc-leaderboard submit --date 2024-01-15

# Import all historical usage data
npx cc-leaderboard submit --all

Options:

  • --date <YYYY-MM-DD> - Submit data for a specific date (defaults to today)
  • --all - Import all historical usage data from Claude Code

The --all flag is perfect for when you first join the leaderboard and want to import your complete history.

config

Configure your team's leaderboard URL and auto-submit settings.

# Set your team's leaderboard URL (required for first-time setup)
npx cc-leaderboard config --api-url https://your-team-leaderboard.com

# Configure auto-submit
npx cc-leaderboard config --auto-submit daily
npx cc-leaderboard config --auto-submit weekly
npx cc-leaderboard config --auto-submit off

Options:

  • --api-url <url> - Set the URL for your team's leaderboard server
  • --auto-submit <schedule> - Enable automatic daily/weekly submissions

status

View your current configuration and recent submissions.

npx cc-leaderboard status

How It Works

The CLI tool uses the ccusage package to read your Claude Code usage data from your local machine, then submits it to the leaderboard server.

Privacy: Your usage data never leaves your machine except when you explicitly run the submit command.

Requirements

  • Node.js 18 or higher
  • Claude Code installed and configured
  • GitHub account (for authentication)

Auto-Submit Setup

You can set up a cron job to automatically submit your usage:

macOS/Linux

# Open crontab editor
crontab -e

# Add this line to submit daily at 6 PM
0 18 * * * npx cc-leaderboard submit

Windows (Task Scheduler)

Create a task that runs:

npx cc-leaderboard submit

Support

  • Documentation: https://github.com/jsell-rh/cc-leaderboard
  • Issues: https://github.com/jsell-rh/cc-leaderboard/issues

License

MIT