News for hackers. Stuff that matters.
Re:Modern Node.js Patterns by farkin88 on Sunday August 03, 2025 @05:13PM (#44779872)
I think that's the sweet spot. Native fetch performance with axios-style conveniences. Some libraries are moving in that direction, but nothing's really nailed it yet. The challenge is probably keeping it lightweight while still solving the evaluating 5 retry packages problem.
Re:Modern Node.js Patterns by crabmusket on Sunday August 03, 2025 @05:46PM (#44780111)
Is this what you're looking for? https://www.npmjs.com/package/ky

I haven't used it but the weekly download count seems robust.

Re:Modern Node.js Patterns by farkin88 on Sunday August 03, 2025 @06:15PM (#44780304)
Ky is definitely one of the libraries moving in that direction. Good adoption based on those download numbers, but I think the ecosystem is still a bit fragmented. You've got ky, ofetch, wretch, etc. all solving similar problems. But yeah, ky is probably the strongest contender right now, in my opinion.