openapi-fetch

JSON →
library 0.17.0 ·javascript
verified Jun 7, 2026

Type-safe fetch client for OpenAPI schemas, version 0.17.0. Maintained actively on GitHub (openapi-ts/openapi-typescript) with frequent releases. Weighs 6 kB (minified) and has virtually zero runtime overhead. Differs from alternatives like axios or openapi-typescript-codegen by providing automatic type inference from generated TypeScript types, eliminating manual type assertions and reducing bundle size. Works with any framework or vanilla JS, and integrates with openapi-typescript for schema-to-TypeScript generation. Supports GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE methods. ESM-only; no CJS support.