zod-openapiv6.0.2, 31 Aug 2026
Convert Zod Schemas to OpenAPI v3.x documentation
$ npm install zod-openapiopenapi-typescript-codegenv0.31.0, 20 Jun 2026
Library that generates Typescript clients based on the OpenAPI specification.
$ npm install openapi-typescript-codegen| Metric | zod-openapi | openapi-typescript-codegen | Difference |
|---|---|---|---|
| Weekly downloads | 993,987 | 346,049 | zod-openapi 2.9x higher |
| 12-month download growth | +287% | +54% | zod-openapi +233 pts |
| Gzip size | - | - | - |
| Minified size | - | - | - |
| Dependencies | 0 | 5 | openapi-typescript-codegen 5 more |
| Unpacked size | 191 kB | 225 kB | zod-openapi 18% smaller |
| Latest release | 6.0.2, 31 Aug 2026 | 0.31.0, 20 Jun 2026 | zod-openapi 2 months more recent |
| Releases, last 12 months | 8 | 2 | zod-openapi 6 more |
| First published | 20 Mar 2023 | 24 Nov 2019 | openapi-typescript-codegen 3.3 years earlier |
| GitHub stars | 646 | 3,369 | openapi-typescript-codegen 5.2x higher |
| Open issues | 7 | 169 | openapi-typescript-codegen 162 more |
| Open pull requests | 5 | 44 | openapi-typescript-codegen 39 more |
| Contributors | - | - | - |
| Commits, last 52 weeks | 40 | 423 | openapi-typescript-codegen 10.6x higher |
| TypeScript types | Bundled | Bundled | Same |
| Module format | ESM + CommonJS | CommonJS | Differs |
| Runtimes | - | - | - |
| License | MIT | MIT | Same |
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
zod-openapi
Major versions
- 0.1.014 Apr 2023
- 1.0.025 Apr 2023
- 2.0.030 Apr 2023
- 3.0.020 Sept 2024
- 4.0.010 Nov 2024
- 5.0.05 Jul 2025
- 6.0.014 Jun 2026
Last 5 releases
- 6.0.231 Aug 2026
- 6.0.113 Aug 2026
- 6.0.014 Jun 2026
- 5.4.65 Jan 2026
- 5.4.527 Nov 2025
87 releases in total, 8 in the last 12 months
openapi-typescript-codegen
Major versions
- 0.0.124 Nov 2019
Last 5 releases
- 0.31.020 Jun 2026
- 0.30.022 Dec 2025
- 0.29.07 Apr 2024
- 0.28.019 Mar 2024
- 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.
- @asteasolutions/zod-to-openapi vs zod-openapiNo search data
- @hey-api/openapi-ts vs zod-openapiNo search data
- zod-openapi vs openapi-client-axiosNo search data
- openapi-fetch vs zod-openapiNo search data
- zod-openapi vs @kubb/oasNo search data
- zod-openapi vs oazapftsNo search data
- openapi-types vs zod-openapiNo search data
- @hey-api/openapi-ts vs openapi-typescript-codegenNo search data
- openapi-typescript-codegen vs openapi-client-axiosNo search data
- openapi-fetch vs openapi-typescript-codegenNo search data
- openapi-typescript-codegen vs @kubb/oasNo search data
- typedoc vs openapi-typescript-codegenNo search data
- openapi-types vs openapi-typescript-codegenNo search data
zod-openapi: zod-openapi npm registry, zod-openapi npm downloads, zod-openapi GitHub. Data fetched 25 Sept 2026.
openapi-typescript-codegen: openapi-typescript-codegen npm registry, openapi-typescript-codegen npm downloads, openapi-typescript-codegen GitHub. Data fetched 25 Sept 2026.
Indexability: Indexed.