Hacker News new | past | comments | ask | show | jobs | submit | styfle's comments login

The article explains that they were using the old Vercel price and that the new price is much cheaper.

> On Feb 18, 2025, just a few days after we published this blog post, Vercel changed their image optimization pricing. With the new pricing we'd not have faced a huge bill.


Why use that over *.localhost which has been available since 1999 (introduced in RFC 2606)


From RFC 2606:

  The ".localhost" TLD has traditionally been statically defined in
  host DNS implementations as having an A record pointing to the
  loop back IP address and is reserved for such use
The RFC 8375 suggestion (*.home.arpa) allows for more than a single host in the domain. If not in name/feeling, but the strictest readings [and adherence] too.


Both offer a free plan but Package Phobia is sponsored meaning its on the paid plan but getting it for free.

Kinda like a skateboarder might be sponsored and get a skateboard for free even though others pay for the same item.

Package Phobia started out on the free plan but it turns out its quite popular, serving over 5 million requests per month. A cache miss (which is frequent given the cardinality of packages + versions), it can take 30 seconds to install a package and measure its size.

There's also a public API which tools like Socket use to check the size of every npm package.

https://x.com/styfle/status/1826296197566644497


The word "publish" is from "npm publish" and I don't think there is a better term to switch to.

https://docs.npmjs.com/cli/v8/commands/npm-publish

I like your idea about showing the information below the fold so I fixed it, thanks!

https://github.com/styfle/packagephobia/pull/1069


See the readme on github for a full comparison



If you find a bug, please report the issue on GitHub and I’ll take a look, thanks!


They are orthogonal tools.

Checkout the readme for a comparison against other tools.

https://github.com/styfle/packagephobia


Ah got it! Thanks for the README


It does apply to JS if you use a bundler that has “tree-shaking” also known as “dead code elimination”.


True, Python has a larger std lib, but Node.js has increased a lot in the last two years.

Although it’s not so much Python that’s influencing Node.js but more like Deno and Bun that try to include everything but the kitchen sink.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: