qmetrics.net

Ky

Minimal Fetch-based HTTP client for JavaScript runtimes

Ky wraps the Fetch API with retries, timeouts, JSON helpers, and method shortcuts. It runs in modern browsers, Node.js, Bun, and Deno without dependencies.

Overview

Ky is a small HTTP client built on the standard Fetch API. It adds conveniences missing from raw fetch, including HTTP verb shortcuts, treating non-2xx responses as errors, and optional automatic retries for failed requests.

Callers can send JSON bodies with a dedicated option, set request timeouts, track upload and download progress, and combine a base URL with relative paths. Custom instances support shared defaults and request hooks.

Retry behavior is configurable with limits, backoff, jitter, and custom shouldRetry logic. The client works with TypeScript generics on JSON parsing and can validate JSON responses with Standard Schema validators such as Zod.

Compared with using fetch directly, Ky reduces boilerplate for common REST patterns while staying close to native fetch options and Response handling.

Key features

  • Fetch API wrapper with verb shortcuts
  • Automatic retry with backoff and jitter
  • JSON body and parsing helpers
  • Request timeout support
  • Upload and download progress
  • Custom instances and hooks
  • TypeScript-friendly JSON typing
  • Zero runtime dependencies

Use cases

  • REST calls in browser front ends
  • HTTP requests in Node or Deno
  • API clients with shared base URL
  • Validated JSON responses

Tags

Similar software

axios

Promise-based HTTP client for browser and Node.js

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

★ 109.5k⟳ 2 days agoMIT

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Hoppscotch

Web, desktop and CLI API development ecosystem

Hoppscotch lets developers send HTTP, WebSocket, GraphQL, and related API requests from a lightweight client. Collections, environments, teams, and sync help organize testing across devices.

★ 81k⟳ 5 days agoMIT
Open Source Alternative to:Postman

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

JSON Server

Zero-code mock REST API from JSON data files

JSON Server turns a JSON or JSON5 database file into a REST API for local prototyping. It supports filtering, sorting, pagination, embedding relations, and static assets.

★ 75.7k⟳ 8 months agoMIT