NPM download stats are down

François Best • 21 September 2023 • 2 min read

I noticed the problem on 2023-09-14, while I was working on my NPM package embed.

It looks like this, showing NPM download stats for the last 30 days:

Avatar for GitHub account facebookfacebook/react

244K
7.7B
19.2.4
MIT

The library for web and native user interfaces.

$ pnpm add react
$ yarn add react
$ npm install react

Version rolloutLast week

19.2.4
42M (36%)
18.3.1
36M (31%)
19.2.3
8.4M (07%)
18.2.0
6.7M (06%)
19.1.0
4.3M (04%)
13,491,90226 Feb12,164,29127 Feb6,829,62228 Feb9,014,57101 Mar15,154,75502 Mar13,812,07903 Mar15,558,44604 Mar14,240,35505 Mar13,554,43606 Mar9,026,04707 Mar8,398,71008 Mar15,164,07709 Mar16,252,64710 Mar15,374,51811 Mar16,057,58712 Mar15,243,17113 Mar9,237,66214 Mar7,813,14815 Mar17,281,41116 Mar18,185,84617 Mar18,326,32318 Mar16,674,68119 Mar14,885,84820 Mar10,066,73121 Mar9,621,10922 Mar17,035,53523 Mar19,126,49324 Mar21,034,76125 Mar20,983,18326 Mar19,271,65427 Mar428,881,599Last 30 days

After seeing the latest download stats zero-out, I thought it was a bug in my code, but a quick call to the NPM registry API confirmed there’s an issue across the whole registry:

$ curl -s https://api.npmjs.org/downloads/range/2023-09-12:2023-09-20/ | jq .
 
{
    "start": "2023-09-12",
    "end": "2023-09-20",
    "downloads": [
        {
            "downloads": 10511123926,
            "day": "2023-09-12"
        },
        {
            "downloads": 0,
            "day": "2023-09-13"
        },
        {
            "downloads": 0,
            "day": "2023-09-14"
        },
        {
            "downloads": 8912767625,
            "day": "2023-09-15"
        },
        {
            "downloads": 2444583811,
            "day": "2023-09-16"
        },
        {
            "downloads": 2260617731,
            "day": "2023-09-17"
        },
        {
            "downloads": 0,
            "day": "2023-09-18"
        },
        {
            "downloads": 0,
            "day": "2023-09-19"
        },
        {
            "downloads": 0,
            "day": "2023-09-20"
        }
    ]
}

And indeed, other popular packages show the same decline:

Avatar for GitHub account vuejsvuejs/core

53K
1.5B
3.5.31
MIT

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

$ pnpm add vue
$ yarn add vue
$ npm install vue

Version rolloutLast week

3.5.30
2M (18%)
2.7.16
1.1M (10%)
3.5.13
759K (07%)
3.5.31
655K (06%)
3.5.28
571K (05%)
1,700,28226 Feb1,496,81327 Feb627,20828 Feb643,56101 Mar1,726,04202 Mar1,795,93403 Mar1,826,74504 Mar1,864,30205 Mar1,768,03206 Mar881,87007 Mar830,51808 Mar1,940,08509 Mar2,065,51110 Mar1,967,81311 Mar2,001,85912 Mar1,736,74113 Mar689,14214 Mar678,11715 Mar1,950,23016 Mar2,025,98817 Mar1,979,75118 Mar1,879,05419 Mar1,613,76920 Mar676,37921 Mar702,54922 Mar1,894,61323 Mar1,891,28024 Mar1,978,86725 Mar1,989,11026 Mar1,744,12227 Mar46,566,287Last 30 days

Avatar for GitHub account angularangular/angular

100K
1.1B
21.2.6
MIT

Deliver web apps with confidence 🚀

$ pnpm add @angular/core
$ yarn add @angular/core
$ npm install @angular/core

Version rolloutLast week

9.0.0
378K (07%)
21.2.5
362K (07%)
20.3.18
295K (05%)
17.3.12
217K (04%)
19.2.20
209K (04%)
936,32226 Feb809,00927 Feb211,46528 Feb265,47301 Mar909,40102 Mar905,58003 Mar918,99204 Mar964,20205 Mar863,66806 Mar269,88407 Mar241,17508 Mar946,70009 Mar1,017,18310 Mar991,05311 Mar987,88612 Mar891,71713 Mar282,58314 Mar260,13815 Mar956,58716 Mar1,023,41517 Mar988,86318 Mar944,36319 Mar823,89920 Mar291,89921 Mar347,92522 Mar944,52323 Mar969,82824 Mar973,85325 Mar986,14526 Mar859,27527 Mar22,783,006Last 30 days

After a couple of days, it started to show on NPM’s own website:

NPM download stats for the react package, with a visible drop towards the end of the line

Reddit and Hacker News users were quick to react, with some hilarious comments:

Bun 1.0 is out, so everyone is switching to that.

You should use PNPM anyway.

Some folks were prompt to draw ominous conclusions:

Well, that confirms it, javascript and front end development is dead. I'll start looking for a new job.
drpossum | Hacker News

This proves React is dead, you should use Svelte now.

Someone who didn’t notice Svelte stats were also down:

Avatar for GitHub account sveltejssveltejs/svelte

web development for the rest of us

$ pnpm add svelte
$ yarn add svelte
$ npm install svelte

Version rolloutLast week

4.2.2
345K (09%)
5.55.0
322K (08%)
5.20.4
278K (07%)
4.2.20
275K (07%)
5.43.4
222K (06%)
499,61326 Feb470,14527 Feb271,37228 Feb272,89201 Mar516,03402 Mar554,78603 Mar597,56204 Mar598,35105 Mar614,30806 Mar395,64107 Mar364,50208 Mar697,38909 Mar721,39910 Mar665,57311 Mar676,32012 Mar610,67913 Mar323,84914 Mar274,25415 Mar624,99516 Mar647,64417 Mar668,77618 Mar650,60219 Mar656,26020 Mar384,48421 Mar359,64122 Mar662,69023 Mar624,10924 Mar669,37325 Mar659,86226 Mar636,11727 Mar16,369,222Last 30 days

Official response from NPM

I contacted NPM support on 2023-09-15, but didn’t get much of a useful response:

Yes, we also see the zero download count on different packages.

This issue remains under investigation.

We will let you know once we have an update.

Resolution

As of 2023-09-24, the problem seems to have been resolved. Stats are returning to normal, and previous zero values have been restored for all tested packages.


François Best

Freelance developer & founder