sindresorhus /ky
🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
★ 17,161⑂ 547👁 59⑃ 336● 454▤ 98
-2
日增长
+15
周增长
+40
月增长
17,161
stars
547
forks
59
watchers
336
prs
454
issues
98
releases
Discussions
#884Limit response size to prevent OOM issues1 comments · 2026-09-11#872Add new type of request (QUERY)2 comments · 2026-07-05#865Performance improvements with TC39 proposals JSON.parseBinary and ArrayBuffer.prototype.detach2 comments · 2026-05-06#860What is the best way to handle TypeScript typing for proxy settings in Bun?2 comments · 2026-04-15#795How to actually see errors in Ky?1 comments · 2025-11-26#788How to set a custom type for context in v1.13?1 comments · 2025-10-31#776retry based on response content2 comments · 2025-10-23#766Will the request headers be overwritten?1 comments · 2025-10-15
Latest release
v2.2.0 v2.2.0 2026-10-09[!NOTE]
In init hooks, options.headers now has lowercase names. Read and delete headers with lowercase names, for example delete options.headers.authorization.
Improvements
- Add maxResponseSize option 0d59458
- Limits the response body size in bytes, counted after decompression. Exceeding it throws the new ResponseSizeError.
- Let beforeRetry hooks change options for the next attempts (885) 242c327
- Return {options: {...}} to change onUploadProgress, onDownloadProgress, timeout, fetch, or throwHttpErrors. For example, retry a failed upload without upload progress.
- Respect