I threw this site together in April to track registry growth as most project’s download counts were surging. I wanted to know if it was a rising tide lifts all boats situation. At the time I thought wow eventually theyll cross 1 Trillion, and as of September, it happened.
The data is pulled from their official download counts API, which provides daily aggregate download counts for the whole registry
we all owe a lot to Microsoft, Github & NPM . it doesn't get mentioned often enough while people complain about outages. No other private enterprise (or non-profit) could manage those services and keep them "free" .
At retail rates, just the egress would be $20-35m / year. storage and compute would exceed that. npm alone is a $100m+ annual donation to the community
I semi-seriously think of this as a form of eco-terrorism.
I don't know how many nines of this activity is pure waste but it's got to be a lot.
We've designed systems where every time someone corrects a spelling mistake on a website, entire operating systems are ejected, clean images put in their place and all dependencies are re-downloaded and rebuilt.
Often multiple times as it goes through a "CI pipeline", with separate clean builds to prove the unit tests before merge, prove them again post-merge. Again to produce integration test environments, yet again to produce deployment images, etc.
It's held up as "best practice" and "reproducible builds" but it's a disgusting amount of waste.
Amdahl’s law. The percentage is far too low to matter in any way compared to virtually any other use of energy. The very act of existing is far more eco-terrorism. All those watts of energy doing nothing 8 hours a night.
I mean this is mostly an artifact of how sloppy CI is. Imagine how much energy and resources are wasted reinstalling packages 3 times in a ci pipeline or MR review pipeline
I always find this a funny argument. “X is much much much much much worse than Y. So don’t worry so much about Y!”
Solving problems is not mutually exclusive. And you solve problems in different parts of your life all the time without gathering all your problems first and making a priority list of every problem.
And different problems sometimes serve to highlight our blind spots. Here we have supposedly smart people, who can’t workout how to not download the same thing multiple times when only once would do. A problem in and of itself maybe.
having been tracking some of this stuff for my projects. it could also be the velocity some of the bigger packages move at. Up to date. 1 month later every item in your package.json needs to be updated. Then on top of that you might have a dozen or so direct items. Those will drag in several thousand items.
Now something like artifactory and your local npm cache should catch a lot of that but still...
I threw this site together in April to track registry growth as most project’s download counts were surging. I wanted to know if it was a rising tide lifts all boats situation. At the time I thought wow eventually theyll cross 1 Trillion, and as of September, it happened.
The data is pulled from their official download counts API, which provides daily aggregate download counts for the whole registry
Not something to be celebrated to be sure
28k dependencies in the age of "AI" zero-day pattern-matching audits will not end well... =3
the good thing microsoft owns npm if it was just a some other odd company - they would've crippled by all this traffic that came in late.
we all owe a lot to Microsoft, Github & NPM . it doesn't get mentioned often enough while people complain about outages. No other private enterprise (or non-profit) could manage those services and keep them "free" .
At retail rates, just the egress would be $20-35m / year. storage and compute would exceed that. npm alone is a $100m+ annual donation to the community
I gotta wonder what % of these are CI botch jobs that re-pull NPM for every commit on every branch.
> botch jobs
<chef's kiss>
And as some kind of a part of the tool chain on accident without the devs even realizing they use npm somewhere
I bet it's probably git workspaces.
I wonder sometimes, how much of the world's storage is taken up with node_modules and python venvs?
I semi-seriously think of this as a form of eco-terrorism.
I don't know how many nines of this activity is pure waste but it's got to be a lot.
We've designed systems where every time someone corrects a spelling mistake on a website, entire operating systems are ejected, clean images put in their place and all dependencies are re-downloaded and rebuilt.
Often multiple times as it goes through a "CI pipeline", with separate clean builds to prove the unit tests before merge, prove them again post-merge. Again to produce integration test environments, yet again to produce deployment images, etc.
It's held up as "best practice" and "reproducible builds" but it's a disgusting amount of waste.
It follows from its cost. If it costs $0.01 to rebuild your site for a spelling mistake (spin up new os images, etc) people do it.
We need the EU to put a tax on CI/CD tasks.
They could just mandate reusable containers, built so that the sidecar is attached with a little plastic strip.
The eco-terrorism is governments that actively fight against clean energy projects in favor of fossil fuels.
Amdahl’s law. The percentage is far too low to matter in any way compared to virtually any other use of energy. The very act of existing is far more eco-terrorism. All those watts of energy doing nothing 8 hours a night.
I mean this is mostly an artifact of how sloppy CI is. Imagine how much energy and resources are wasted reinstalling packages 3 times in a ci pipeline or MR review pipeline
It might be like... $0.10 a month or so, _wasted_!
In the meantime we up our suv's with $100/mo in gas and heat our houses with $200/mo of fuel.
The elephant in the room is not CI.
I always find this a funny argument. “X is much much much much much worse than Y. So don’t worry so much about Y!”
Solving problems is not mutually exclusive. And you solve problems in different parts of your life all the time without gathering all your problems first and making a priority list of every problem.
And different problems sometimes serve to highlight our blind spots. Here we have supposedly smart people, who can’t workout how to not download the same thing multiple times when only once would do. A problem in and of itself maybe.
having been tracking some of this stuff for my projects. it could also be the velocity some of the bigger packages move at. Up to date. 1 month later every item in your package.json needs to be updated. Then on top of that you might have a dozen or so direct items. Those will drag in several thousand items.
Now something like artifactory and your local npm cache should catch a lot of that but still...