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.7B
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
10M (31%)
19.2.3
9.5M (28%)
18.2.0
2.8M (08%)
19.2.0
2.2M (06%)
19.1.0
2M (06%)
4,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 Dec10,678,98116 Dec10,291,32417 Dec9,869,98118 Dec8,484,63119 Dec4,027,95020 Dec3,863,51821 Dec7,832,25922 Dec7,405,31323 Dec5,627,59524 Dec3,835,36725 Dec4,336,40526 Dec4,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 Jan201,678,564Last 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.4B
3.5.26
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.26
943K (24%)
3.5.13
429K (11%)
2.7.16
393K (10%)
3.5.25
295K (07%)
3.5.22
247K (06%)
619,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 Dec1,526,38816 Dec1,451,77817 Dec1,393,81618 Dec1,183,11819 Dec446,07220 Dec395,77021 Dec1,118,29322 Dec1,073,03823 Dec797,02124 Dec508,25625 Dec570,43926 Dec337,26327 Dec349,76928 Dec811,63929 Dec786,27630 Dec623,11931 Dec405,42401 Jan602,93402 Jan343,28203 Jan398,12104 Jan26,006,818Last 30 days

Avatar for GitHub account angularangular/angular

100K
1B
21.0.6
MIT

Deliver web apps with confidence 🚀

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

Version rolloutLast week

20.3.15
182K (09%)
9.0.0
166K (09%)
21.0.6
138K (07%)
19.2.17
135K (07%)
17.3.12
88K (05%)
278,17706 Dec277,15207 Dec872,71108 Dec974,80809 Dec941,35410 Dec831,78911 Dec710,29712 Dec157,50213 Dec164,92114 Dec787,62415 Dec821,09616 Dec806,99017 Dec800,49318 Dec661,29519 Dec149,18420 Dec139,24121 Dec570,19722 Dec549,95923 Dec367,12524 Dec165,52025 Dec248,17426 Dec112,14727 Dec125,65828 Dec428,91929 Dec424,36630 Dec316,09831 Dec158,64201 Jan335,37202 Jan123,22403 Jan137,43004 Jan13,437,465Last 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.46.1
317K (24%)
4.2.20
102K (08%)
3.59.2
82K (06%)
4.2.2
81K (06%)
4.2.19
81K (06%)
168,49706 Dec155,94707 Dec383,79008 Dec399,91109 Dec389,46110 Dec379,87111 Dec352,60812 Dec142,37613 Dec146,98214 Dec376,72115 Dec405,86516 Dec379,94217 Dec367,30518 Dec322,66819 Dec140,29820 Dec129,25721 Dec288,62822 Dec282,88523 Dec210,64224 Dec135,89025 Dec156,98326 Dec128,67727 Dec130,45228 Dec231,48229 Dec226,49030 Dec197,55031 Dec156,17701 Jan200,21302 Jan131,45603 Jan149,19204 Jan7,268,216Last 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