Skip to content
JS
Comparison

openapi-fetch vs zod-openapi

Documentation toolingPackage data 25 Sept 2026
openapi-fetchv0.17.0, 11 Feb 2026

Fast, type-safe fetch client for your OpenAPI schema. Only 6 kb (min). Works with React, Vue, Svelte, or vanilla JS.

$ npm install openapi-fetch
zod-openapiv6.0.2, 31 Aug 2026

Convert Zod Schemas to OpenAPI v3.x documentation

$ npm install zod-openapi
Metricopenapi-fetchzod-openapiDifference
Weekly downloads6,577,083993,987openapi-fetch 6.6x higher
12-month download growth+383%+287%openapi-fetch +96 pts
Gzip size---
Minified size---
Dependencies10openapi-fetch 1 more
Unpacked size223 kB191 kBzod-openapi 17% smaller
Latest release0.17.0, 11 Feb 20266.0.2, 31 Aug 2026zod-openapi 7 months more recent
Releases, last 12 months58zod-openapi 3 more
First published14 Mar 202320 Mar 2023openapi-fetch 7 days earlier
GitHub stars8,382646openapi-fetch 13.0x higher
Open issues2107openapi-fetch 203 more
Open pull requests805openapi-fetch 75 more
Contributors---
Commits, last 52 weeks21240openapi-fetch 5.3x higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSESM + CommonJSSame
Runtimes---
LicenseMITMITSame

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

openapi-fetch6.5m latest weekzod-openapi994k latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

openapi-fetch

Major versions
  1. 0.0.014 Mar 2023
Last 5 releases
  1. 0.17.011 Feb 2026
  2. 0.16.08 Feb 2026
  3. 0.15.28 Feb 2026
  4. 0.15.014 Oct 2025
  5. 0.14.12 Oct 2025
77 releases in total, 5 in the last 12 months

zod-openapi

Major versions
  1. 0.1.014 Apr 2023
  2. 1.0.025 Apr 2023
  3. 2.0.030 Apr 2023
  4. 3.0.020 Sept 2024
  5. 4.0.010 Nov 2024
  6. 5.0.05 Jul 2025
  7. 6.0.014 Jun 2026
Last 5 releases
  1. 6.0.231 Aug 2026
  2. 6.0.113 Aug 2026
  3. 6.0.014 Jun 2026
  4. 5.4.65 Jan 2026
  5. 5.4.527 Nov 2025
87 releases in total, 8 in the last 12 months
openapi-fetch

-

zod-openapi

-

openapi-fetch

-

zod-openapi

-

  • Need no runtime dependencieszod-openapi (openapi-fetch has 1, zod-openapi has 0)
  • Module formatBoth ESM + CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementopenapi-fetch: none declared; zod-openapi: >=22.14.0 (engines field in package.json)
  • Need the more recent releasezod-openapi (6.0.2 on 31 Aug 2026 vs 0.17.0 on 11 Feb 2026)
  • Higher weekly npm downloadsopenapi-fetch (6.6m vs 994k)

Each line is generated from the data above.

zod-openapi: zod-openapi npm registry, zod-openapi npm downloads, zod-openapi GitHub. Data fetched 25 Sept 2026.

Indexability: Indexed.