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

251k
0
19.3.1
MIT

The library for web and native user interfaces.

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

Version rolloutLast week

19.3.0
42m (22%)
18.3.1
37m (20%)
19.2.8
28m (15%)
19.2.4
14m (08%)
19.2.7
13m (07%)
0Sep 1531,906,111Sep 1630,619,248Sep 1729,080,404Sep 1819,810,626Sep 1920,163,928Sep 2031,742,252Sep 2132,581,348Sep 2233,986,584Sep 2334,324,639Sep 2431,340,287Sep 2519,359,340Sep 2619,823,159Sep 2736,221,968Sep 2836,674,300Sep 2936,617,950Sep 3038,105,740Oct 0133,663,009Oct 0221,661,485Oct 0321,478,058Oct 0435,446,968Oct 050Oct 0635,968,597Oct 0737,575,226Oct 0835,362,451Oct 0922,046,232Oct 1022,081,888Oct 1134,927,798Oct 120Oct 130Oct 14782,569,596Last 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

55k
0
3.5.44
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.43
4.9m (28%)
3.5.42
1.6m (09%)
3.5.41
1.3m (07%)
2.7.16
838k (05%)
3.5.40
801k (05%)
0Sep 153,026,886Sep 162,990,551Sep 172,714,674Sep 181,553,848Sep 191,722,244Sep 203,020,449Sep 213,158,351Sep 223,194,131Sep 233,147,579Sep 242,850,680Sep 251,364,331Sep 261,407,881Sep 273,398,358Sep 283,499,340Sep 293,599,504Sep 303,619,300Oct 013,099,461Oct 021,595,892Oct 031,585,615Oct 043,349,859Oct 050Oct 063,694,369Oct 073,741,455Oct 083,333,643Oct 091,755,547Oct 101,746,487Oct 113,372,286Oct 120Oct 130Oct 1471,542,721Last 30 days

Avatar for GitHub account angularangular/angular

101k
0
22.2.3
MIT

Deliver web apps with confidence 🚀

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

Version rolloutLast week

22.2.1
677k (11%)
21.2.25
461k (07%)
9.0.0
250k (04%)
22.2.2
201k (03%)
22.2.0
188k (03%)
0Sep 151,201,442Sep 161,197,146Sep 171,102,587Sep 18638,941Sep 19713,141Sep 201,304,094Sep 211,234,373Sep 221,259,078Sep 231,247,040Sep 241,120,305Sep 25409,317Sep 26404,706Sep 271,284,758Sep 281,327,826Sep 291,342,942Sep 301,363,835Oct 011,105,820Oct 02455,279Oct 03420,502Oct 041,292,747Oct 050Oct 061,389,680Oct 071,376,030Oct 081,263,071Oct 09465,468Oct 10462,019Oct 111,258,244Oct 120Oct 130Oct 1426,640,391Last 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.57.1
984k (14%)
5.57.2
757k (11%)
5.57.0
623k (09%)
5.34.9
617k (09%)
4.2.2
529k (08%)
0Sep 151,050,669Sep 161,036,649Sep 17978,640Sep 18595,363Sep 19556,589Sep 201,054,937Sep 211,140,402Sep 221,193,763Sep 231,166,880Sep 241,115,151Sep 25605,993Sep 26588,415Sep 271,203,502Sep 281,302,401Sep 291,342,898Sep 301,367,894Oct 011,219,758Oct 02666,778Oct 03621,547Oct 041,175,177Oct 050Oct 061,396,254Oct 071,389,298Oct 081,304,343Oct 09723,819Oct 10737,589Oct 111,260,629Oct 120Oct 130Oct 1426,795,338Last 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