Ky
HTTP client built on the Fetch API that adds retries, timeouts, hooks and errors for non-2xx responses.
Ky is an HTTP client for JavaScript built on the Fetch API. It adds method shortcuts, a JSON option, timeouts, retries, upload and download progress, a base URL option and hooks, and it can validate responses with Standard Schema validators. Unlike plain fetch, it treats non-2xx status codes as errors after redirects. Instances made with extend or create carry their own defaults.
The README names got and axios as projects Ky differs from, and it says Got is maintained by the same people as Ky.
Worth knowing
The README notes that Chromium-based browsers retry 408 responses at the network layer for keep-alive connections, so a request can be retried by both the browser and Ky.
Identity
- Status
- Active
- Maintainer
- Sindre Sorhus2
- Maintained by
- Individual
- First release
- 20186
Rendering and deploy
- Install with
- npm, cdn3
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/sindresorhus/ky - 2026-11-16: Maintainer, License, License model
raw.githubusercontent.com/sindresorhus/ky/v2.2.0/license - 2026-11-16: Categories, Runtime, Install with
github.com/sindresorhus/ky/blob/v2.2.0/readme.md - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/ky - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/ky - 2026-11-16: First release
api.github.com/repos/sindresorhus/ky/commits/v0.2.0 - 2026-11-16: Current major version, Last release
api.github.com/repos/sindresorhus/ky/releases - 2026-11-16: Contributors
api.github.com/repos/sindresorhus/ky/contributors?per_page=1