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

242K
6.6B
19.2.3
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 (30%)
19.2.1
8.2M (14%)
19.2.3
6.5M (11%)
18.2.0
5.6M (09%)
19.2.0
5.1M (08%)
3,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 Nov9,999,73625 Nov9,956,99126 Nov8,944,12827 Nov7,606,32928 Nov4,400,30829 Nov3,950,70530 Nov9,737,07401 Dec10,790,08402 Dec10,383,41603 Dec10,826,47904 Dec9,233,32505 Dec4,617,85506 Dec5,631,11207 Dec10,796,82208 Dec11,294,55209 Dec10,553,24910 Dec10,099,26411 Dec9,461,29812 Dec4,476,34413 Dec4,484,46714 Dec9,954,26515 Dec243,323,975Last 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.25
1.8M (23%)
3.5.13
1M (13%)
2.7.16
850K (11%)
3.5.22
647K (08%)
3.5.24
389K (05%)
407,35616 Nov1,317,78017 Nov1,401,00618 Nov1,450,77719 Nov1,368,43420 Nov1,210,88021 Nov424,79222 Nov425,06623 Nov1,390,89324 Nov1,458,71625 Nov1,449,80026 Nov1,278,92827 Nov1,127,80628 Nov451,94629 Nov422,05430 Nov1,464,30901 Dec1,592,26302 Dec1,528,97303 Dec1,512,82804 Dec1,294,76605 Dec619,35006 Dec810,46807 Dec1,441,38408 Dec1,563,24509 Dec1,506,77310 Dec1,455,99311 Dec1,214,41912 Dec416,06813 Dec451,67214 Dec1,405,63015 Dec33,864,375Last 30 days

Avatar for GitHub account angularangular/angular

100K
1B
21.0.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
370K (08%)
20.3.15
363K (08%)
19.2.17
256K (06%)
17.3.12
201K (04%)
18.2.13
158K (03%)
171,14016 Nov784,29517 Nov847,02918 Nov864,15519 Nov822,97620 Nov722,32021 Nov166,67922 Nov170,60523 Nov790,79024 Nov853,75025 Nov866,96426 Nov764,78127 Nov680,34328 Nov195,93429 Nov171,85530 Nov853,09301 Dec929,07602 Dec866,61803 Dec876,23604 Dec824,13905 Dec278,17706 Dec277,15207 Dec872,71108 Dec974,80809 Dec941,35410 Dec831,78911 Dec710,29712 Dec157,50213 Dec164,92114 Dec787,62415 Dec19,219,113Last 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
197K (09%)
5.45.8
178K (08%)
4.2.19
150K (07%)
4.2.2
130K (06%)
5.34.9
125K (06%)
141,06516 Nov337,90217 Nov378,17818 Nov390,45619 Nov376,73020 Nov334,52921 Nov145,58422 Nov142,88423 Nov355,77724 Nov375,05725 Nov365,72126 Nov307,07527 Nov270,73428 Nov152,21729 Nov136,02330 Nov374,26101 Dec435,51202 Dec394,20003 Dec382,57204 Dec351,43105 Dec168,49706 Dec155,94707 Dec383,79008 Dec399,91109 Dec389,46110 Dec379,87111 Dec352,60812 Dec142,37613 Dec146,98214 Dec376,72115 Dec9,044,072Last 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