fabien0102/ts-to-zod
Generate zod schemas from typescript types/interfaces observed · 2026-08-28
Health v2 · maintenance only
80/100
- Activity 90
- Release rhythm 56
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 9.5
- age_days: 1983
- days_rel: 292
- days_push: 65
- n_releases_24m: 9
Adoption not part of the score
1635 stars · 96 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ts-to-zod is a CLI tool that generates Zod validation schemas from TypeScript types and interfaces. It verifies that generated schemas are type-compatible with the originals and supports JSDoc tags for extra validators.
Use cases
- generate zod schemas from typescript types
- validate api responses at runtime with schemas derived from types
- convert typescript interfaces to zod
- keep zod schemas in sync with typescript types
- add runtime validation to a typescript codebase
- generate schemas for untrusted api data
When to choose
- you already use TypeScript types and want matching Zod schemas without writing them by hand
- you want guaranteed type compatibility between your types and generated schemas
- you want a simple CLI that fits into a build script or CI pipeline
When to avoid
- you don't use TypeScript or Zod
- you need schemas for OpenAPI/JSON Schema rather than Zod
- you need a library API for in-process generation rather than a CLI
Facets
cli-tool · maturity active
form-handling type-system cli developer-tools developer-tools apis backend cli cross-platform zod schema-generation runtime-validation typescript-to-zod code-generator code-generation typescript nodejs
2 sources
- readme: https://github.com/fabien0102/ts-to-zod · fetched 2026-08-28 · 11915f44bb2b
- registry_npm: https://registry.npmjs.org/ts-to-zod · fetched 2026-08-29 · 67ce745bdde2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fabien0102/ts-to-zod | main | 80 |
For agents
markdown · JSON · MCP: product_card(name="fabien0102/ts-to-zod")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem