NPM crossed 1T monthly downloads in September

(jonchurch.com)

83 points | by jonchurch_ 21 hours ago

17 comments

  • agentbreakwatch 9 minutes ago
    We started monitoring our NPM package which got 300+ downloads the first day with almost 0 real users so this really points to the fact the 1T number is probably inflated
  • jonchurch_ 21 hours ago
    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

  • fathermarz 4 hours ago
    Thank you for the graph. This speaks to a new problem I believe we are facing which is the widening of the attack surface of supply chain attacks. Non-technical folks now make up a decent chunk of these downloads which don’t understand dependencies or the risks they include.
  • clement_b 18 hours ago
    Yes, pretty clear something changed this year.
    • cluckindan 8 hours ago
      Agents installing npm packages in their scratchpads
      • superfrank 7 hours ago
        Also increased number of ci builds and also git worktrees catching on
  • dzonga 19 hours ago
    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.
    • blahyawnblah 12 hours ago
      I didn't know that. Did they start it or purchase it?
      • etatester 11 hours ago
        Microsoft purchased GitHub in 2018, which purchased npm in 2020. In 6 years they still have zero integration with GitHub (other than provenance attestation) which is mind boggling.
    • tonymet 19 hours ago
      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

      • charcircuit 16 hours ago
        Assuming a generous size of 1 MiB per package, a total of 0.9 trillion packages, and without peering, paying for transit at a market rate of $0.08 / Mbps / mo that comes out to about $19418 for the last year.

        Given compression, most packages being small, and peering you can lower this cost by a lot.

        • gertop 9 hours ago
          Cogent is down to 0.05/mbps this year! But admittedly GitHub would need better peering then that.

          The cloud has really fried people's brain when it comes to bandwidth cost, they really don't know/remember that in the real world you pay for capacity (95th percentile, really) and not per byte...

        • tonymet 16 hours ago
          I’m asking Wikipedia for a refund
          • chihuahua 12 hours ago
            By GP's accurate calculation, running Wikipedia for a year costs just $314.15
        • badlibrarian 11 hours ago
          0.9 trillion downloads (not packages), 12 months in a year, the packages are already compressed, and... ugh.
      • sitzkrieg 14 hours ago
        we owe nothing to them. 2/3 are effectively paid services anyway so
    • pablopr3 19 hours ago
      [dead]
  • 0cf8612b2e1e 17 hours ago
    Is there such a thing as an open source plug and play package cache I can self host? Something that I could configure in under an hour that will mirror Python, Go, Docker, Debian, etc repos if one machine on my network makes an initial request? Or are the existing options so fiddly I would have to put in significant maintenance to keep it running?
    • edoceo 15 hours ago
      Yes! This one was posted here a few months ago, used it to replace my own home-brewed one.

      https://news.ycombinator.com/item?id=46909037

    • pan69 17 hours ago
      It might be that Artifactory by JFrog does what you need. We used at my previous $code place. It was usable, not sure how the open source version holds up against the enterprise version I familiar with. Maybe worth a try.

      https://jfrog.com/community/download-artifactory-oss/

      • cyberax 17 hours ago
        I worked on maintaining Artifactory for a large org. It was not at all a pleasant experience, especially with niche package managers like Conan.

        It's also freaking expensive.

    • binocularis 15 hours ago
      At my company we're using StableBuild
      • LinaLauneBaer 9 hours ago
        I think you are involved with StableBuild somehow. That company has only 10 followers on X and does not really mention who is behind it. The websites of the only two customers mentioned on your websites have the same design as the StableBuilds website. And your account only has 2 comments both advertising StableBuild… fishy
    • cyberax 17 hours ago
      I'm using https://www.repoflow.io/pricing#self-hosted for the homelab and I'm consdering buying it for our org.
  • th3iedkid 7 hours ago
    This is what a hockey stick growth looks like!!
  • _pdp_ 18 hours ago
    I keep saying this, but I do not think we can picture how much code we will write over the next decade.

    The amount is staggering, and we have only had coding agents that were even somewhat useful for about 13 months.

    • jonchurch_ 18 hours ago
      November 2026’s year over year growth for monthly npm downloads was 227%

      I just dont know how to interpret these numbers. I dont think we will ever know exactly WHY the numbers are surging. More CI runs, agent sandboxes, more code being written, labs doing training runs or RL on coding tasks, I assume all of these contribute but still the growth is astounding.

      I am of the opinion that the volume of code being written will continue to increase and these mind boggling milestones are a small preview of what the future has in store.

      • conductr 13 hours ago
        > I dont think we will ever know exactly WHY the numbers are surging

        Literally everyone has become a software engineer. People used to do the "learn to code" thing when they had the idea, for most the burden won and the idea stagnated, now every minor curiosity of an idea can be built and thrown away in a single session with no real hurdles/experience required.

        It reminds me of the pre-internet time. When you thought up something, had a question, some trivia, or just couldn't remember something you knew you knew... you either dug deep and researched it (offline; libraries, books, actual work), but likely you'd just racked your brain for a bit, maybe ask a friend or spouse to help jog your memory, and then ultimately you just shrugged it off. Then a week later it would randomly pop in your head. Even pre-iPhone, we'd do the same thing but the friction was smaller, you had to wait until you were at your computer/desk to look it up on early Google. We've all now been accustomed to just instant and constant information availability. Any time this scenario plays out, I have a near automatic reflex of reaching into my pocket to look up the answer. I can't be content with not knowing the thing I am trying to remember. I know the answer it usually just a few seconds away, practically zero effort.

        All to say, I when I think of a new idea for anything nowadays, I build it. I don't plan much, I just start building. It's akin to sketching out a website on a Post-it note, why do that when you can have a real design and working backend spun up in no time? I'd guess that most of the world has realized what superpower us developers had all along and they are all working on creating their "side projects" folders of dead ideas they built to scratch an itch but ultimately never launched or saw the light of day.

    • solyin 17 hours ago
      I have this short (fiction) story about "the Last Program" I should polish up and publish. While it would be foolish to say that's possible for eg music, because software decomposes into libraries so you can reuse bits of code elsewhere, it's a fun idea to explore.
  • rushabh5000 1 hour ago
    [dead]
  • tuckerpo 19 hours ago
    I gotta wonder what % of these are CI botch jobs that re-pull NPM for every commit on every branch.
    • coffeebeqn 19 hours ago
      And as some kind of a part of the tool chain on accident without the devs even realizing they use npm somewhere
    • fdsajfkldsfklds 18 hours ago
      I wonder sometimes, how much of the world's storage is taken up with node_modules and python venvs?
    • zamalek 19 hours ago
      I bet it's probably git workspaces.
    • motionlessveloc 19 hours ago
      > botch jobs

      <chef's kiss>

  • GenerocUsername 20 hours ago
    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
    • sumtechguy 19 hours ago
      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...

      • jamesfinlayson 14 hours ago
        I'm guilty of doing an install for each CI run, but I've done Artifactory/similar and dependency caching before and was bitten both times - where I work has been through at least three iterations of "product to mirror npm, Maven, NuGet etc" so I'm choosing not to be rug-pulled in the near future, and GitLab's dependency caching was actually slower than just downloading each time (CI time was getting close to 30 minutes so I wasn't prepared to slow it down any more).

        But yeah agreed, probably the Javascript library ecosystem being even further accelerated by AI.

      • Gigachad 15 hours ago
        A non trivial % of my day has become pressing the merge button on dependabot PRs. To the point I'm considering having them auto merge if they pass CI.
    • unglaublich 20 hours ago
      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.

      • 2muchcoffeeman 19 hours ago
        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.

        • unglaublich 1 hour ago
          It _is_ mutually exclusive. We have limited attention, focus, time and resources.

          So are you going to spend your day hardening your infra, or doing a ci optimization that cuts downloads by 100MB/day?

  • eterm 20 hours ago
    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.

    • unglaublich 20 hours ago
      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.
    • cityofdelusion 19 hours ago
      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.
    • krunck 19 hours ago
      The eco-terrorism is governments that actively fight against clean energy projects in favor of fossil fuels.
    • iekeb 19 hours ago
      We need the EU to put a tax on CI/CD tasks.
      • motionlessveloc 19 hours ago
        They could just mandate reusable containers, built so that the sidecar is attached with a little plastic strip.
      • scottyah 15 hours ago
        There better be a tax break for CI compute used on GDPR compliance work
  • k0morebi 20 hours ago
    Not something to be celebrated to be sure
    • Joel_Mckay 19 hours ago
      28k dependencies in the age of "AI" zero-day pattern-matching audits will not end well... =3
      • RestartKernel 11 hours ago
        On the other hand, it's now much easier to develop without the ergonomics of dependencies.
        • al_borland 11 hours ago
          In many cases there are a lot of needless dependencies that just create points of failure and unnecessary exposure to supply chain attacks.

          For example, why is there an npm package to uppercase a string?

          https://www.npmjs.com/package/text-upper-case

          Looking at the code and at the end of the day, all it’s doing is str.toUpperCase(). This is built-in functionality in JS.

          I can’t imagine a human ever using something like this, but with AI… I fully expect it. It’s getting 260k weekly downloads. Why???

          If 1 million monthly downloads are people making a string uppercase, I wonder how many of those trillion downloads are complete nonsense.

          • gertop 9 hours ago
            That particular package seems to be a part of https://www.npmjs.com/package/text-case which seems genuinely useful.

            The author likely split it in 20 packages to pad their resumé, which is still bad of course, but not as bad as you portrayed!

            • al_borland 2 hours ago
              Ironic, with this line at the top of their GitHub profile…

              “Big believer in quality over quantity. Maximization through minimization.”

  • signcheck 14 hours ago
    [dead]
  • visionwei 14 hours ago
    [dead]
  • tobi007-del 16 hours ago
    [dead]
  • verysmart 16 hours ago
    [dead]
    • sssilver 12 hours ago
      What is going to happen next year?
    • flanz_10 16 hours ago
      sw devs have enjoyed an insane job market and for the first time, you're being told "adapt or die" - something we've done to many other industries.

      llms are not going away. they're only getting better.

      sorry

      • Gigachad 15 hours ago
        No one even knows what adapt means at this point everywhere else you look has the same risk of disruption. Short of becoming a police officer or trades worker it's looking bad right now.
        • scottyah 15 hours ago
          One avenue to adaptation is being able to use the llms to produce more value for the business/customers than you would have previously. Software Engineering is going back to engineering, and only people who have staunchly stuck to being code technicians (learning how to do a few tasks and expecting to not have to learn/adapt) face any threat of job loss.
      • skeeter2020 12 hours ago
        >> and for the first time, you're being told "adapt or die"

        first time? new to this business?

      • verysmart 16 hours ago
        [flagged]