Skip to content
JS
Alternatives

@asteasolutions/zod-to-openapi alternatives

8 packages that do the same job as @asteasolutions/zod-to-openapi: zod-openapi, fastify-zod-openapi, @hey-api/spec-types, @hey-api/openapi-ts, oas-schema-walker, @apidevtools/openapi-schemas, openapi-schemas, oazapfts. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
@asteasolutions/zod-to-openapi
This package
3m+256%-12 months agoESM + CommonJSBundled-
zod-openapi994k+287%-024 days agoESM + CommonJSBundled-
fastify-zod-openapi54.1k+106%-42 months agoESM + CommonJSBundled-
@hey-api/spec-types2.3m--15 months agoESM onlyBundled-
@hey-api/openapi-ts3.4m+473%-103 months agoESM onlyBundled-
oas-schema-walker3m+56%-06 years agoCommonJSNone-
@apidevtools/openapi-schemas3.8m+49%-05 years agoCommonJSBundled-
openapi-schemas36.4k-34%-15 years agoCommonJSBundled-
oazapfts194.8k+36%-6-ESM + CommonJSBundled-

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Convert Zod Schemas to OpenAPI v3.x documentation

Compared with @asteasolutions/zod-to-openapi

  • 3.0x fewer weekly downloads (994k vs 3m)
  • 0 dependencies vs 1
  • Declares Node.js >=22.14.0 vs none declared
  • Last release 31 Aug 2026 vs 19 Jul 2026
  • 2.5x fewer GitHub stars (646 vs 1.6k)

Fastify plugin for zod-openapi

Compared with @asteasolutions/zod-to-openapi

  • 56x fewer weekly downloads (54.1k vs 3m)
  • 4 dependencies vs 1
  • Declares Node.js >=20 vs none declared
  • Last release 20 Jul 2026 vs 19 Jul 2026
  • 13x fewer GitHub stars (122 vs 1.6k)

📃 TypeScript definitions for OpenAPI and JSON Schema specifications with complete inline documentation.

Compared with @asteasolutions/zod-to-openapi

  • 1.3x fewer weekly downloads (2.3m vs 3m)
  • ESM only vs ESM + CommonJS
  • Last release 13 Apr 2026 vs 19 Jul 2026
  • 3.4x more GitHub stars (5.4k vs 1.6k)

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

Compared with @asteasolutions/zod-to-openapi

  • 1.1x more weekly downloads (3.4m vs 3m)
  • 10 dependencies vs 1
  • ESM only vs ESM + CommonJS
  • Declares Node.js >=22.18.0 vs none declared
  • Last release 22 Jun 2026 vs 19 Jul 2026
  • 3.4x more GitHub stars (5.4k vs 1.6k)

Library to walk OAS 3 schema objects and call a callback

Compared with @asteasolutions/zod-to-openapi

  • About the same weekly downloads (3m vs 3m)
  • 0 dependencies vs 1
  • CommonJS vs ESM + CommonJS
  • No types vs bundled types
  • Last release 31 Jul 2020 vs 19 Jul 2026
  • 2.2x fewer GitHub stars (747 vs 1.6k)

JSON Schemas for every version of the OpenAPI Specification

Compared with @asteasolutions/zod-to-openapi

  • 1.2x more weekly downloads (3.8m vs 3m)
  • 0 dependencies vs 1
  • CommonJS vs ESM + CommonJS
  • Declares Node.js >=10 vs none declared
  • Last release 1 May 2021 vs 19 Jul 2026
  • 36x fewer GitHub stars (45 vs 1.6k)

JSON Schemas for every version of the OpenAPI Specification

Compared with @asteasolutions/zod-to-openapi

  • 83x fewer weekly downloads (36.4k vs 3m)
  • CommonJS vs ESM + CommonJS
  • Declares Node.js >=10 vs none declared
  • Last release 1 May 2021 vs 19 Jul 2026
  • 36x fewer GitHub stars (45 vs 1.6k)

OpenApi TypeScript client generator

Compared with @asteasolutions/zod-to-openapi

  • 16x fewer weekly downloads (194.8k vs 3m)
  • 6 dependencies vs 1
  • Last release - vs 19 Jul 2026
  • 2.8x fewer GitHub stars (579 vs 1.6k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.