ky
🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
About this project
Ky is a tiny and elegant HTTP client based on the Fetch API Ky targets modern browsers, Node.js, Bun, and Deno. It's just a tiny package with no dependencies. Benefits over plain fetch — Simpler API — Method shortcuts (ky.post()) — Treats non-2xx status codes as errors (after redirects) — Retries failed requests — JSON option — Timeout support — Upload and download progress — Base URL option — Instances with custom defaults — Hooks — Response validation with Standard Schema (Zod, Valibot, etc.) — TypeScript niceties (e.g., .json() supports generics and defaults to unknown, not any) Install [!NOTE] This readme is for the next version of Ky. For the current version, click…
Technologies
Project health
GitHub
Reviews
Built by
Maintain sindresorhus/ky? Claiming verifies admin access through your GitHub account and gives you control of this listing.