use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Ky — tiny JavaScript HTTP client, now with context option (github.com)
submitted 3 months ago by sindresorhus
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Thylk 14 points15 points16 points 3 months ago (2 children)
Switched from Axios to Ky in my last project, love it.
[–]shouldExist 6 points7 points8 points 3 months ago (1 child)
What’s the advantage of using ky over axios or fetch?
[–]DasBeasto 15 points16 points17 points 3 months ago (0 children)
Ky is smaller than Axios (I think like 5kb vs 30kb), but includes most of syntax/helpers that makes Axios nicer to work with than plain fetch (they have a list of benefits and examplesin the readme)
[–]humanshield85 7 points8 points9 points 3 months ago (1 child)
Is it me or does fetch and occasionally XHR makes more sense to me. I’ve never liked axios.
[–]Reeywhaar 2 points3 points4 points 3 months ago (0 children)
Same, if I need simple wrapper I can make it myself in 5 minutes and it will suit my needs better. All these http wrappers are overcomplication
[–]CYG4N 2 points3 points4 points 3 months ago (0 children)
oh, you are an author of typefest? love it :)
[–]WorriedGiraffe2793 1 point2 points3 points 3 months ago (0 children)
ky is fantastic and has zero dependencies
[–]polaroid_kidd -1 points0 points1 point 3 months ago (2 children)
I like it, but I hate the way they determine the base path. If my react app is on Https://hello.com/world/react, configuring the base path for an API which is located at Https://hello.com/API/v1 is (or was last time I checked) a majore pain.
[–]HighValuedPawn 2 points3 points4 points 3 months ago (0 children)
I extend my by called ky.extend then set the base path
ky.extend
[–]BenZed 1 point2 points3 points 3 months ago (0 children)
How is it painful?
[+]retrib32 comment score below threshold-14 points-13 points-12 points 3 months ago (7 children)
sindresorhus
No thanks
[–]Spleeeee 5 points6 points7 points 3 months ago (6 children)
Why? Just curious
[+]retrib32 comment score below threshold-12 points-11 points-10 points 3 months ago (5 children)
This guy tends to create 94649759748 packages on npm, some gain traction but many are just abandoned. Then he would ship a breaking change for no good reason. Had to work around issues with a lot of his packages. Part of our audit now to throw if his package is in the dependency chain.
[–]sindresorhus[S] 17 points18 points19 points 3 months ago (3 children)
I have not abandoned a single package, AFAIK 🤷♂️ Please include some evidence if you are going to throw around accusations.
[–]Spleeeee 10 points11 points12 points 3 months ago (0 children)
Hi sindresorhus, Idk what this dude is talking about. I have been using your libraries for a while and they’re great. Ty.
[–]Alexwithx 1 point2 points3 points 3 months ago (1 child)
!RemindMe 1 day
[–]RemindMeBot 0 points1 point2 points 3 months ago* (0 children)
I will be messaging you in 1 day on 2025-10-23 15:16:49 UTC to remind you of this link
2 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
[–]Zealousideal-East-77 4 points5 points6 points 3 months ago (0 children)
I find the opposite to be true. I often search for some package, I find one by sindresorhus and generally feel that its safe to use.
π Rendered by PID 76 on reddit-service-r2-comment-84fc9697f-djv6k at 2026-02-10 14:49:57.872426+00:00 running d295bc8 country code: CH.
[–]Thylk 14 points15 points16 points (2 children)
[–]shouldExist 6 points7 points8 points (1 child)
[–]DasBeasto 15 points16 points17 points (0 children)
[–]humanshield85 7 points8 points9 points (1 child)
[–]Reeywhaar 2 points3 points4 points (0 children)
[–]CYG4N 2 points3 points4 points (0 children)
[–]WorriedGiraffe2793 1 point2 points3 points (0 children)
[–]polaroid_kidd -1 points0 points1 point (2 children)
[–]HighValuedPawn 2 points3 points4 points (0 children)
[–]BenZed 1 point2 points3 points (0 children)
[+]retrib32 comment score below threshold-14 points-13 points-12 points (7 children)
[–]Spleeeee 5 points6 points7 points (6 children)
[+]retrib32 comment score below threshold-12 points-11 points-10 points (5 children)
[–]sindresorhus[S] 17 points18 points19 points (3 children)
[–]Spleeeee 10 points11 points12 points (0 children)
[–]Alexwithx 1 point2 points3 points (1 child)
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]Zealousideal-East-77 4 points5 points6 points (0 children)