swaggerz 0.2.2What's new

Typed API clients,compiled from yourOpenAPI spec.

Swagger 2.0 and OpenAPI 3.0 to 3.2 in, tree-shakeable TypeScript or JavaScript out. One function per operation, and the code is yours to read.

src/main.ts
import { getPetById } from './generated/api';

const pet = await getPetById({ petId: 10 });
// pet: Pet, typed from the specification
console.log(pet.name);
Terminal
  1. npx swaggerz generate
  2. Read openapi.yaml: 15 operations, 11 models
  3. Wrote 35 files to src/generated/api
  4. Runtime emitted, no dependency added

Everything the client needs. Nothing it doesn't.

Measured

bundled by an app that calls one operation
16.1kB
of a 1,000-operation client
to compile 10,000 operations
3.7s
into 16,011 files, in memory
public API descriptions compile
24/ 24
6,920 operations, no type errors

Measured for this build on 28 October 2026, Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz, Node.js 24.21.0, Linux (x64).How it is measured

Generate your first client in a minute.

Point it at a specification, run one command, import what you need.

Read the quick start npx swaggerz init
swaggerztyped API clients compiled from OpenAPICheck it out on Product Hunt(opens in a new tab)