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

243K
6.9B
19.2.3
MIT

The library for web and native user interfaces.

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

Version rolloutLast week

19.2.3
25M (35%)
18.3.1
21M (29%)
18.2.0
5.3M (07%)
19.1.0
3.6M (05%)
17.0.2
3.1M (04%)
4,102,23327 Dec6,002,25328 Dec6,183,12329 Dec6,100,30630 Dec5,148,49731 Dec3,745,74001 Jan5,323,27302 Jan3,533,02803 Jan3,917,55904 Jan8,666,25705 Jan8,882,66706 Jan9,417,72707 Jan9,686,98508 Jan9,123,14409 Jan4,118,74210 Jan4,107,13011 Jan9,646,30712 Jan10,391,77013 Jan12,308,58814 Jan13,372,69615 Jan11,619,10216 Jan6,615,30117 Jan6,420,27218 Jan10,950,43119 Jan10,385,66220 Jan10,953,71621 Jan13,677,33122 Jan12,123,48323 Jan6,279,78124 Jan025 Jan232,803,104Last 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.27
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.27
1.2M (14%)
3.5.26
1M (12%)
3.5.13
907K (11%)
2.7.16
883K (11%)
3.5.22
480K (06%)
337,26327 Dec349,76928 Dec811,63929 Dec786,27630 Dec623,11931 Dec405,42401 Jan602,93402 Jan343,28203 Jan398,12104 Jan1,170,22805 Jan1,202,18906 Jan1,291,06007 Jan1,342,18308 Jan1,196,17309 Jan425,55710 Jan435,93111 Jan1,366,98612 Jan1,487,02913 Jan1,468,99314 Jan1,468,02615 Jan1,297,02516 Jan468,94617 Jan468,25918 Jan1,422,35219 Jan1,518,18620 Jan1,577,19521 Jan1,535,36222 Jan1,357,24223 Jan478,22624 Jan025 Jan27,634,975Last 30 days

Avatar for GitHub account angularangular/angular

100K
1.1B
21.1.1
MIT

Deliver web apps with confidence 🚀

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

Version rolloutLast week

9.0.0
335K (08%)
20.3.16
314K (07%)
19.2.18
280K (07%)
21.1.0
209K (05%)
17.3.12
189K (04%)
112,14727 Dec125,65828 Dec428,91929 Dec424,36630 Dec316,09831 Dec158,64201 Jan335,37202 Jan123,22403 Jan137,43004 Jan643,40005 Jan646,32006 Jan725,29807 Jan780,46208 Jan737,33009 Jan207,35210 Jan161,66911 Jan793,57412 Jan819,82713 Jan795,60214 Jan762,67215 Jan722,19216 Jan173,65917 Jan168,69618 Jan729,45119 Jan814,17820 Jan828,93021 Jan845,57922 Jan747,81423 Jan169,26724 Jan025 Jan14,435,128Last 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
212K (09%)
4.2.20
192K (08%)
5.47.1
159K (06%)
5.46.4
149K (06%)
4.2.19
130K (05%)
128,67727 Dec130,45228 Dec231,48229 Dec226,49030 Dec197,55031 Dec156,17701 Jan200,21302 Jan131,45603 Jan149,19204 Jan332,08705 Jan353,86106 Jan370,54207 Jan386,64008 Jan370,69209 Jan157,21310 Jan151,28011 Jan393,11612 Jan423,20313 Jan426,65514 Jan450,17815 Jan411,01916 Jan177,54517 Jan180,62118 Jan402,64919 Jan427,41520 Jan425,84221 Jan451,25822 Jan391,51123 Jan176,26124 Jan025 Jan8,411,277Last 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