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

240K
6.2B
19.2.0
MIT

The library for web and native user interfaces.

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

Version rolloutLast week

18.3.1
15M (34%)
19.2.0
5.9M (13%)
19.1.0
5.1M (11%)
18.2.0
5.1M (11%)
19.1.1
4.1M (09%)
7,808,36215 Sep8,050,41416 Sep8,242,37517 Sep7,925,74918 Sep7,139,17019 Sep2,624,39820 Sep2,601,70421 Sep7,570,79622 Sep7,753,95023 Sep7,995,48124 Sep8,117,73425 Sep7,273,00426 Sep2,785,33627 Sep2,840,11728 Sep8,031,68629 Sep8,380,86130 Sep8,319,26401 Oct7,860,02402 Oct7,071,08203 Oct2,859,56604 Oct2,747,27705 Oct7,959,80906 Oct8,451,06607 Oct8,279,71708 Oct8,255,37009 Oct7,601,04310 Oct2,901,82311 Oct2,815,91712 Oct7,407,20213 Oct8,297,85014 Oct195,968,147Last 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

52K
1.4B
3.5.22
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.22
1.5M (21%)
3.5.13
1.1M (16%)
2.7.16
785K (11%)
3.5.21
483K (07%)
3.5.18
413K (06%)
1,219,59615 Sep1,295,80716 Sep1,351,39217 Sep1,297,77218 Sep1,135,00819 Sep351,97620 Sep358,76321 Sep1,257,24322 Sep1,236,19723 Sep1,314,13324 Sep1,410,87925 Sep1,208,77126 Sep407,66227 Sep468,89028 Sep1,336,90829 Sep1,358,17530 Sep1,299,34401 Oct1,247,58502 Oct1,072,63603 Oct377,50604 Oct369,68205 Oct1,239,07606 Oct1,319,53907 Oct1,305,37208 Oct1,291,70909 Oct1,180,65510 Oct418,09811 Oct368,10312 Oct1,178,67313 Oct1,338,97314 Oct31,016,123Last 30 days

Avatar for GitHub account angularangular/angular

99K
1B
20.3.5
MIT

Deliver web apps with confidence 🚀

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

Version rolloutLast week

9.0.0
362K (09%)
20.3.4
253K (06%)
19.2.14
247K (06%)
18.2.13
245K (06%)
19.2.15
230K (06%)
768,07615 Sep799,48116 Sep804,49217 Sep790,67118 Sep685,23019 Sep142,07620 Sep156,09921 Sep758,06622 Sep792,45323 Sep788,22224 Sep806,64825 Sep695,63926 Sep157,30027 Sep159,83428 Sep769,67729 Sep809,75130 Sep771,68401 Oct695,81102 Oct651,36203 Oct142,87004 Oct150,92005 Oct771,56706 Oct806,20007 Oct796,53308 Oct784,04409 Oct707,14010 Oct152,04711 Oct146,40012 Oct722,08313 Oct803,06214 Oct17,985,438Last 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

5.39.11
239K (13%)
4.2.19
168K (09%)
4.2.20
152K (08%)
3.59.2
123K (07%)
5.34.9
102K (05%)
308,00315 Sep320,88316 Sep339,45717 Sep334,85818 Sep304,75119 Sep130,00420 Sep121,08621 Sep332,49722 Sep328,25023 Sep367,08324 Sep406,34825 Sep341,69426 Sep151,45627 Sep157,72628 Sep345,97329 Sep364,83530 Sep358,69201 Oct344,53202 Oct309,00903 Oct133,36704 Oct117,21405 Oct341,17006 Oct359,79707 Oct351,88608 Oct323,87309 Oct311,26010 Oct121,96911 Oct126,04612 Oct300,16613 Oct354,25014 Oct8,508,135Last 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