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

241K
6.4B
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
18M (34%)
19.2.0
12M (22%)
18.2.0
5.6M (10%)
19.1.0
4.7M (09%)
17.0.2
3.4M (06%)
8,725,49727 Oct8,813,60728 Oct8,652,90629 Oct9,958,71430 Oct7,583,57131 Oct3,156,26401 Nov3,109,12002 Nov8,234,31003 Nov8,872,49204 Nov8,933,71505 Nov9,048,16106 Nov8,004,60807 Nov3,439,56608 Nov3,541,80509 Nov8,635,72910 Nov8,324,25011 Nov9,096,06312 Nov9,010,51013 Nov8,286,90314 Nov3,342,87115 Nov3,501,05416 Nov8,776,29817 Nov9,445,03918 Nov9,881,02319 Nov9,408,53920 Nov8,396,33621 Nov3,733,75122 Nov3,855,43123 Nov9,128,70124 Nov025 Nov212,896,834Last 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.25
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.24
1.4M (18%)
3.5.13
1.1M (14%)
2.7.16
833K (11%)
3.5.22
800K (10%)
3.5.21
342K (04%)
1,328,16427 Oct1,335,27628 Oct1,315,10829 Oct1,329,82830 Oct1,133,23131 Oct416,16901 Nov363,66402 Nov1,252,23103 Nov1,336,11004 Nov1,346,28205 Nov1,391,54106 Nov1,225,64507 Nov434,92708 Nov434,26609 Nov1,329,78210 Nov1,256,80311 Nov1,376,57912 Nov1,350,31513 Nov1,195,58214 Nov407,32115 Nov407,35616 Nov1,317,78017 Nov1,401,00618 Nov1,450,77719 Nov1,368,43420 Nov1,210,88021 Nov424,79222 Nov425,06623 Nov1,390,89324 Nov025 Nov30,955,808Last 30 days

Avatar for GitHub account angularangular/angular

99K
1B
21.0.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
359K (08%)
19.2.15
341K (08%)
19.2.14
226K (05%)
17.3.12
209K (05%)
18.2.13
194K (04%)
781,74127 Oct820,84728 Oct809,97529 Oct820,49430 Oct704,00631 Oct163,93001 Nov151,45102 Nov764,76903 Nov826,03504 Nov817,69705 Nov824,98106 Nov737,53207 Nov177,59608 Nov175,61109 Nov757,78610 Nov728,25511 Nov818,62412 Nov825,00413 Nov746,72514 Nov167,11315 Nov171,14016 Nov784,29517 Nov847,02918 Nov864,15519 Nov822,97620 Nov722,32021 Nov166,67922 Nov170,60523 Nov790,79024 Nov025 Nov17,960,161Last 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.20
173K (08%)
5.43.14
152K (07%)
4.2.19
148K (07%)
3.59.2
138K (06%)
5.43.12
129K (06%)
344,78627 Oct352,14328 Oct331,55729 Oct335,62430 Oct312,62531 Oct138,13201 Nov122,61402 Nov325,98403 Nov352,33304 Nov349,65305 Nov375,04906 Nov339,81707 Nov149,87108 Nov143,18409 Nov358,43810 Nov343,82711 Nov360,35712 Nov365,91413 Nov324,23814 Nov140,17415 Nov141,06516 Nov337,90217 Nov378,17818 Nov390,45619 Nov376,73020 Nov334,52921 Nov145,58422 Nov142,88423 Nov355,77724 Nov025 Nov8,469,425Last 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