Skip to content
JS
Comparison

@hey-api/openapi-ts vs zod-openapi

Documentation toolingPackage data 25 Sept 2026
@hey-api/openapi-tsv0.99.0, 22 Jun 2026

🌀 OpenAPI to TypeScript code generator. Production-grade SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.

$ npm install @hey-api/openapi-ts
zod-openapiv6.0.2, 31 Aug 2026

Convert Zod Schemas to OpenAPI v3.x documentation

$ npm install zod-openapi
Metric@hey-api/openapi-tszod-openapiDifference
Weekly downloads3,373,199993,987@hey-api/openapi-ts 3.4x higher
12-month download growth+473%+287%@hey-api/openapi-ts +186 pts
Gzip size---
Minified size---
Dependencies100@hey-api/openapi-ts 10 more
Unpacked size2.8 MB191 kBzod-openapi 15.0x smaller
Latest release0.99.0, 22 Jun 20266.0.2, 31 Aug 2026zod-openapi 2 months more recent
Releases, last 12 months678@hey-api/openapi-ts 59 more
First published22 Mar 202420 Mar 2023zod-openapi 12 months earlier
GitHub stars5,438646@hey-api/openapi-ts 8.4x higher
Open issues5187@hey-api/openapi-ts 511 more
Open pull requests1215@hey-api/openapi-ts 116 more
Contributors---
Commits, last 52 weeks2,99840@hey-api/openapi-ts 75.0x higher
TypeScript typesBundledBundledSame
Module formatESM onlyESM + CommonJSDiffers
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.

@hey-api/openapi-ts3.4m 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.

@hey-api/openapi-ts

Major versions
  1. 0.27.3722 Mar 2024
Last 5 releases
  1. 0.99.022 Jun 2026
  2. 0.98.28 Jun 2026
  3. 0.98.11 Jun 2026
  4. 0.98.01 Jun 2026
  5. 0.97.325 May 2026
271 releases in total, 67 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
@hey-api/openapi-ts

-

zod-openapi

-

@hey-api/openapi-ts

-

zod-openapi

-

  • Need no runtime dependencieszod-openapi (@hey-api/openapi-ts has 10, zod-openapi has 0)
  • Need both ESM and CommonJS entry pointszod-openapi (@hey-api/openapi-ts: ESM only; zod-openapi: ESM + CommonJS)
  • Need to load it with require()zod-openapi
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirement@hey-api/openapi-ts: >=22.18.0; 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.99.0 on 22 Jun 2026)
  • Higher weekly npm downloads@hey-api/openapi-ts (3.4m 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.