colinhacks/zod
TypeScript-first schema validation with static type inference observed · 2026-10-10
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 83
- 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: 0
- age_days: 2418
- days_rel: 37
- days_push: 11
- n_releases_24m: 126
Adoption not part of the score
44076 stars · 2240 forks observed · 2026-10-10
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-28, confidence 0.98
Zod is a TypeScript‑first schema validation library that provides runtime validation with static type inference. It lets you define schemas and parse data safely, returning fully typed results.
Use cases
- validate user input in a TypeScript web application
- ensure API request payloads match a defined schema
- type‑safe parsing of JSON configuration files
- runtime validation of environment variables
- generate JSON Schema from TypeScript types for external tools
When to choose
- You need zero external dependencies and a tiny bundle size.
- You want static type inference that matches runtime validation.
- Your project is written in TypeScript or modern JavaScript and runs in Node.js or browsers.
- You prefer an immutable, chainable API for building schemas.
When to avoid
- You require a validation library with built‑in support for complex custom error codes or internationalization.
- Your codebase is not TypeScript and you cannot benefit from static type inference.
- You need deep integration with non‑JS ecosystems (e.g., Python, Java) without a JS bridge.
Facets
library · maturity active
parser form-handling serialization web-development backend data-science browser typescript-first zero-dependencies immutable-api static-type-inference tiny-bundle nodejs deno
6 sources
- readme: https://github.com/colinhacks/zod · fetched 2026-10-10 · 439c0c93c68f
- homepage: https://zod.dev · fetched 2026-09-14 · 91032fc85731
- site_page: https://zod.dev?id=features · fetched 2026-09-14 · 91032fc85731
- site_page: https://zod.dev?id=installation · fetched 2026-09-14 · 91032fc85731
- site_page: https://zod.dev/v4/changelog · fetched 2026-09-14 · ac622cca283e
- site_page: https://zod.dev/ecosystem?id=form-integrations · fetched 2026-09-14 · 091d5f3df09f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| colinhacks/zod | main | 94 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem