A favicon of ky

ky

Make HTTP requests easily with this tiny, elegant client built on the Fetch API. Offers a simpler API, retries, timeouts, hooks, and improved JSON handling.

Visit ky

Ky is a tiny and elegant JavaScript HTTP client built on top of the native Fetch API. It works in modern browsers, Node.js, Bun, and Deno without requiring any dependencies. While fetch is powerful, Ky provides a more convenient and user-friendly interface, simplifying common HTTP request patterns.

Key benefits over using fetch directly include:

  • Simpler API and convenient method shortcuts (ky.post(), ky.get()).
  • Automatic error handling for non-2xx status codes.
  • Built-in request retries with configurable strategies.
  • Simplified JSON handling for request bodies and responses.
  • Native timeout support.
  • URL prefixing for setting base URLs.
  • Creation of custom instances with default configurations.
  • Lifecycle hooks for modifying requests and responses.
  • Improved TypeScript integration.
Share:
Featured tools:

Similar to ky:

Minimalist, flexible web framework for Node.js.
Full-stack Web FrameworksJavaScript & TypeScript
Build fast web applications and APIs with this minimal, flexible Node.js framework. Offers robust features and a large middleware ecosystem for extensibility.
Next-gen ORM for simplified, type-safe database access.
JavaScript & TypeScriptORMs
Interact with databases using a type-safe ORM for Node.js/TypeScript. Features automated migrations, intuitive schema, connection pooling, and caching.
Type-safe ORM for Node.js, TypeScript & Browser.
JavaScript & TypeScriptORMs
Query SQL databases in Node/TS with strong typing. Features Active Record style, no code gen, powerful filters, and secure browser access via Express plugin.
Modern ORM for TypeScript & Node.js SQL databases.
JavaScript & TypeScriptORMs
Manage database interactions in Node.js/TypeScript apps. Supports transactions, relations, eager/lazy loading, and multiple SQL databases like Postgres & MySQL.
ORM for TypeScript & JavaScript across platforms.
JavaScript & TypeScriptORMs
Build database-driven applications with TypeScript or JavaScript. Supports multiple SQL databases and runs across NodeJS, browser, mobile, and desktop platforms.
Flexible JavaScript ORM for Node.js database interactions.
JavaScript & TypeScriptORMs
Build Node.js applications with a flexible JavaScript ORM. Features promise/callback interfaces, transactions, eager loading, and relations for PostgreSQL, MySQL, SQLite3.
TypeScript ORM for Node.js: Data Mapper, UoW, SQL & NoSQL.
JavaScript & TypeScriptORMs
Build Node.js apps with a TypeScript ORM using Data Mapper and Unit of Work patterns. Supports SQL/NoSQL, offers schema tools, and automatic query batching.
A tiny, intuitive fetch wrapper for cleaner requests.
HTTP for JSJavaScript & TypeScript
Make fetch requests easily with an intuitive, tiny, immutable, and type-safe wrapper. Simplifies error handling, headers, and serialization.
Lightweight fetch wrapper with plugins and Axios-like API.
HTTP for JSJavaScript & TypeScript
Make HTTP requests using a lightweight fetch wrapper. Offers an Axios-like API, plugin support for caching, retries, throttling, and more. Works universally.

Command Menu