Skip to content
JS
Comparison

zod-openapi vs openapi-typescript-codegen

Documentation toolingPackage data 25 Sept 2026
zod-openapiv6.0.2, 31 Aug 2026

Convert Zod Schemas to OpenAPI v3.x documentation

$ npm install zod-openapi
openapi-typescript-codegenv0.31.0, 20 Jun 2026

Library that generates Typescript clients based on the OpenAPI specification.

$ npm install openapi-typescript-codegen
Metriczod-openapiopenapi-typescript-codegenDifference
Weekly downloads993,987346,049zod-openapi 2.9x higher
12-month download growth+287%+54%zod-openapi +233 pts
Gzip size---
Minified size---
Dependencies05openapi-typescript-codegen 5 more
Unpacked size191 kB225 kBzod-openapi 18% smaller
Latest release6.0.2, 31 Aug 20260.31.0, 20 Jun 2026zod-openapi 2 months more recent
Releases, last 12 months82zod-openapi 6 more
First published20 Mar 202324 Nov 2019openapi-typescript-codegen 3.3 years earlier
GitHub stars6463,369openapi-typescript-codegen 5.2x higher
Open issues7169openapi-typescript-codegen 162 more
Open pull requests544openapi-typescript-codegen 39 more
Contributors---
Commits, last 52 weeks40423openapi-typescript-codegen 10.6x higher
TypeScript typesBundledBundledSame
Module formatESM + CommonJSCommonJSDiffers
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.

zod-openapi994k latest weekopenapi-typescript-codegen346k 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.

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-typescript-codegen

Major versions
  1. 0.0.124 Nov 2019
Last 5 releases
  1. 0.31.020 Jun 2026
  2. 0.30.022 Dec 2025
  3. 0.29.07 Apr 2024
  4. 0.28.019 Mar 2024
  5. 0.27.015 Jan 2024
99 releases in total, 2 in the last 12 months
zod-openapi

-

openapi-typescript-codegen

-

zod-openapi

-

openapi-typescript-codegen

-

  • Need no runtime dependencieszod-openapi (zod-openapi has 0, openapi-typescript-codegen has 5)
  • Need both ESM and CommonJS entry pointszod-openapi (zod-openapi: ESM + CommonJS; openapi-typescript-codegen: CommonJS)
  • Need to load it with require()Both
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementzod-openapi: >=22.14.0; openapi-typescript-codegen: none declared (engines field in package.json)
  • Need the more recent releasezod-openapi (6.0.2 on 31 Aug 2026 vs 0.31.0 on 20 Jun 2026)
  • Higher weekly npm downloadszod-openapi (994k vs 346k)

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.