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.4B
19.2.4
MIT

The library for web and native user interfaces.

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

Version rolloutLast week

18.3.1
27M (29%)
19.2.4
23M (25%)
19.2.3
12M (13%)
18.2.0
7.3M (08%)
19.1.0
4M (04%)
13,766,10606 Feb7,479,02707 Feb5,910,02808 Feb11,795,17709 Feb12,671,90210 Feb12,214,73911 Feb12,027,14412 Feb10,942,09113 Feb6,703,06814 Feb8,035,91015 Feb10,343,04416 Feb13,219,84017 Feb14,257,48518 Feb15,881,30219 Feb16,453,40520 Feb9,517,24821 Feb9,818,29322 Feb15,903,14423 Feb14,584,57324 Feb14,099,27125 Feb13,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 Mar007 Mar349,443,254Last 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.29
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.29
2.1M (18%)
2.7.16
1.2M (10%)
3.5.13
1.1M (10%)
3.5.28
909K (08%)
3.5.27
608K (05%)
1,411,63006 Feb520,67307 Feb533,17308 Feb1,566,68209 Feb1,708,37010 Feb1,607,38611 Feb1,629,56212 Feb1,381,89513 Feb527,84014 Feb546,07915 Feb1,354,34316 Feb1,482,64517 Feb1,547,63818 Feb1,596,74919 Feb1,415,41720 Feb569,05421 Feb603,03022 Feb1,547,23923 Feb1,774,08324 Feb1,745,37725 Feb1,700,28226 Feb1,496,81327 Feb627,20828 Feb643,56101 Mar1,726,04202 Mar1,795,93403 Mar1,826,74504 Mar1,864,30205 Mar1,768,03206 Mar007 Mar38,517,784Last 30 days

Avatar for GitHub account angularangular/angular

100K
1.1B
21.2.1
MIT

Deliver web apps with confidence 🚀

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

Version rolloutLast week

21.2.0
404K (07%)
9.0.0
397K (07%)
20.3.16
294K (05%)
20.3.17
259K (05%)
17.3.12
247K (04%)
767,25706 Feb194,02707 Feb203,18208 Feb815,26309 Feb913,47110 Feb881,36211 Feb879,97212 Feb764,99813 Feb191,76214 Feb206,80215 Feb741,04016 Feb827,46017 Feb866,73018 Feb882,44519 Feb800,57520 Feb215,99021 Feb238,87122 Feb884,18923 Feb940,07224 Feb957,73525 Feb936,32226 Feb809,00927 Feb211,46528 Feb265,47301 Mar909,40102 Mar905,58003 Mar918,99204 Mar964,20205 Mar863,66806 Mar007 Mar19,957,315Last 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.53.6
321K (09%)
4.2.2
285K (08%)
5.53.7
249K (07%)
5.34.9
234K (06%)
4.2.20
211K (06%)
440,54206 Feb206,10007 Feb203,03908 Feb440,06409 Feb492,35810 Feb484,78711 Feb492,66112 Feb439,43413 Feb217,92614 Feb224,70115 Feb413,64516 Feb463,63717 Feb486,46218 Feb522,12619 Feb522,89320 Feb229,83121 Feb224,21822 Feb494,46023 Feb529,91624 Feb509,84925 Feb499,61326 Feb470,14527 Feb271,37228 Feb272,89201 Mar516,03402 Mar554,78603 Mar597,56204 Mar598,35105 Mar614,30806 Mar007 Mar12,433,712Last 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