Skip to main content

Installation

Choose the HTTP client binding that fits your needs:

Using Native Fetch

pnpm add @alt-stack/http-client-fetch zod

Using Ky

pnpm add @alt-stack/http-client-ky zod

Peer Dependencies

  • zod: ^4.0.0

Requirements

  1. A server built with @alt-stack/server-hono that exposes an OpenAPI spec
  2. Generated Request and Response types from the OpenAPI spec (see Server Integration)

Package Comparison

PackageDescriptionBest For
@alt-stack/http-client-fetchNative fetch APISimple use cases, browser/Node.js
@alt-stack/http-client-kyKy libraryAdvanced features like hooks, pre-configured instances