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

npm-popular-versions

v1.0.1

Published

Shows the most popular versions of an NPM package

Downloads

178

Readme

npm-popular-versions

npm npm npm Buy Me A Coffee

Shows the most popular versions of an NPM package

📦 Running

Run via CLI with your preferred package manager:

npx npm-popular-versions [package-name] <...options>

# or
pnpm dlx npm-popular-versions [package-name] <...options>

# or
yarn dlx npm-popular-versions [package-name] <...options>

# or
bunx npm-popular-versions [package-name] <...options>

⚙️ Options

You must provide a package name. Without any options this will print out a table of the 10 (max) most popular versions:

npx npm-popular-versions typescript

# Sample output:
Package: typescript
Top 10 versions (last week):
|------|---------|------------|
| #    | Version |  Downloads |
|------|---------|------------|
| 1    | 5.9.3   | 44,488,226 |
| 2    | 5.8.3   | 13,041,822 |
| 3    | 4.9.5   | 10,679,390 |
| 4    | 5.9.2   |  6,303,369 |
| 5    | 5.6.3   |  4,384,251 |
| 6    | 5.7.3   |  3,867,990 |
| 7    | 5.4.5   |  3,792,599 |
| 8    | 5.8.2   |  3,516,504 |
| 9    | 5.5.4   |  3,004,184 |
| 10   | 3.9.10  |  2,581,539 |
|------|---------|------------|

You can get minimalist output:

npx npm-popular-versions typescript --simple

# Sample output
Top 10 versions of typescript (last week):
5.9.3      44488226
5.8.3      13041822
4.9.5      10679390
5.9.2      6303369
5.6.3      4384251
5.7.3      3867990
5.4.5      3792599
5.8.2      3516504
5.5.4      3004184
3.9.10     2581539

Or as JSON:

npx npm-popular-versions typescript --json

# Sample output
{
    "package": "typescript",
    "topVersions": {
        "5.9.3": 44488226,
        "5.8.3": 13041822,
        "4.9.5": 10679390,
        "5.9.2": 6303369,
        "5.6.3": 4384251,
        "5.7.3": 3867990,
        "5.4.5": 3792599,
        "5.8.2": 3516504,
        "5.5.4": 3004184,
        "3.9.10": 2581539
    }
}

Change the version limit with -l or --limit:

npx npm-popular-versions typescript --limt 5

bunx npm-popular-versions typescript -l 1000

pnpm dlx npm-popular-versions typescript --limit 5000

Or output to a file with -o or --output (defaults to .json for --json and --txt otherwise):

yarn dlx npm-popular-versions firebase --json -o versions.txt # Written to versions.txt

pnpm dlx npm-popular-versions firebase --output ver # Written to ver.txt

bunx npm-popular-versions firebase -o fb-ver --simple -l 500 # Written to fb-ver.txt

npx npm-popular-versions @types/node -o t-n-o --json --limit 5 # Written to t-n-o.json

📝 Notes

Only package versions that have had at least 1 download over the last week can be fetched. A package with 7 versions with downloads and 50 without will only return 7 results with --limit 10 (default).

A package without any downloads will receive an error response as it cannot be differentiated from a package that doesn't exist.

Download counts on npm include all HTTP 200 responses (mirrors, bots, ci, etc), so take small values especially with a grain of salt. More info here

📜 Changelog

To view the release notes for each version, view the changelog:

  • On GitHub: Link
  • On npm: package page -> CHANGELOG.md
  • In the repository: CHANGELOG.md

Buy me a coffee if this package helped you!