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

repochart

v0.0.8

Published

GitHub repository analytics · in your terminal

Readme

RepoChart

RepoChart Cover

GitHub repository analytics — right from your terminal.

npx repochart compare openclaw/openclaw vercel/next.js
npx repochart vercel/next.js --overview
npx repochart vercel/next.js --chart stars
npx repochart vercel/next.js --chart commits
npx repochart vercel/next.js --chart contributors
npx repochart vercel/next.js --chart languages

repochart compare demo

Prerequisites

Requires the GitHub CLI to be installed and authenticated:

brew install gh   # macOS
gh auth login

Install

npm install -g repochart

Or run without installing:

npx repochart openclaw/openclaw --overview

Usage

repochart <owner/repo> [options]
repochart compare <repo1> <repo2>

Arguments:
  <repo>              Repository in owner/repo format (e.g., vercel/next.js)

Options:
  --chart <type>      Chart type: stars | commits | contributors | languages  (default: stars)
  --overview          Show all stats at once: stars, commits, contributors, languages
  --all               Fetch all pages (may be slow for large repos)
  -v, --version       Output the version number
  -h, --help          Display help

Commands

| Command / Flag | Description | |----------------|-------------| | --chart stars | Cumulative star growth sparkline | | --chart commits | Weekly commit activity (last 52 weeks) | | --chart contributors | Top 15 contributors by commits | | --chart languages | Language breakdown with bar chart | | --overview | All four charts in one command | | compare <repo1> <repo2> | Side-by-side comparison of two repos |

Compare two repos side by side

npx repochart compare vercel/next.js facebook/react

Fetches all stats for both repos in parallel and renders them side by side in the terminal, split by a divider:

vercel/next.js                            │  facebook/react
──────────────────────────────────────────┼──────────────────────────────────────────

⭐ Stars                                  │  ⭐ Stars
  138.2k total stars                      │    243.6k total stars
  ▁▁▂▃▄▅▆▇████████████████████████████   │    ▁▁▁▂▃▄▅▆▇███████████████████████████
  Since  Oct 25, 2016                     │    Since  May 29, 2013

──────────────────────────────────────────┼──────────────────────────────────────────

📊 Commits  last 52 weeks                 │  📊 Commits  last 52 weeks
  6,108 commits                           │    1,440 commits
  ▁▂▃▄▅▆▇████████████████████████████    │    ▁▁▂▂▃▃▄▄▅▅▆▆▇▇████████████████████
  Peak  175  Avg  117                     │    Peak  83  Avg  29

──────────────────────────────────────────┼──────────────────────────────────────────

👥 Contributors  429 total                │  👥 Contributors  411 total
   1  ijjk              ████████████  3,267  │     1  sebmarkbage  ████████████  1,939
   2  timneutkens       ████████░░░░  2,723  │     2  zpao         ████████░░░░  1,728
   3  sokra             ███████░░░░░  2,382  │     3  gaearon      ███████░░░░░  1,682
  ...                                    │    ...

──────────────────────────────────────────┼──────────────────────────────────────────

🌐 Languages                              │  🌐 Languages
  JavaScript  ████████████████░░░  55.2%  │    JavaScript  ████████████████░░░  68.1%
  TypeScript  ██████░░░░░░░░░░░░░  29.9%  │    TypeScript  █████░░░░░░░░░░░░░░  29.2%
  Rust        ████░░░░░░░░░░░░░░░  13.6%  │    HTML        █░░░░░░░░░░░░░░░░░░   1.4%

The winner in total stars and total commits is highlighted in green.

Overview — all stats at once

npx repochart vercel/next.js --overview

Fetches stars, commits, contributors, and languages in parallel and renders all four charts sequentially in your terminal.

Authentication

RepoChart uses the GitHub CLI (gh) for all API calls — no tokens to manage. Just run gh auth login once and you're set. Authenticated requests get 5,000 req/hour vs 60 for unauthenticated.

Examples

# No install needed — run directly with npx
npx repochart vercel/next.js --overview
npx repochart compare vercel/next.js facebook/react
npx repochart compare microsoft/vscode neovim/neovim
repochart vercel/next.js --chart commits
repochart microsoft/vscode --chart languages

Development

pnpm install
pnpm build        # compile TypeScript → dist/
pnpm test         # run vitest

License

MIT

Changelog

See CHANGELOG.md for release history.


Built with commandcode by @arre_ankit