asteasolutions/zod-to-openapi
A library that generates OpenAPI (Swagger) docs from Zod schemas observed · 2026-10-08
Health v2 · maintenance only
94/100
- Activity 97
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 15
- age_days: 1650
- days_rel: 93
- days_push: 18
- n_releases_24m: 18
Adoption not part of the score
1629 stars · 105 forks observed · 2026-10-08
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A TypeScript library that generates OpenAPI (Swagger) documentation directly from Zod schemas, eliminating duplication between validation code and API docs. It provides a registry and generator for defining routes, webhooks, and reusable schema components from a single source of truth.
Use cases
- generate openapi spec from zod schemas
- keep swagger docs in sync with api validation
- document express or hono api endpoints automatically
- convert zod types to openapi 3.0 schema
- generate swagger yaml as part of the build
- define api routes and webhooks with zod
- avoid duplicating schema definitions for docs and validation
When to choose
- you already use zod for validation and want docs from the same schemas
- you want a single source of truth for API schemas and documentation
- you need OpenAPI 3.0/3.1 output generated at build time or runtime
When to avoid
- your API is not written in TypeScript or does not use zod
- you need docs generated from code annotations or framework decorators instead
- you rely on zod v3 and need actively maintained support
Facets
library · maturity active
api-documentation serialization developer-tools apis web-development backend developer-tools documentation cross-platform zod openapi swagger schema-generation api-docs typescript nodejs
1 source
- readme: https://github.com/asteasolutions/zod-to-openapi · fetched 2026-10-08 · 4c05c204bda7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| asteasolutions/zod-to-openapi | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="asteasolutions/zod-to-openapi")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem