colinhacks/zod
TypeScript-first schema validation with static type inference observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 99
- Release rhythm 70
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 2370
- days_rel: 121
- days_push: 7
- n_releases_24m: 115
Adoption not part of the score
43535 stars · 2147 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Zod is a TypeScript-first schema validation library for defining and validating data structures at runtime with static type inference. It has zero dependencies, a tiny 2kb core, works in Node.js and browsers, and includes built-in JSON Schema conversion.
Use cases
- validate untrusted API request bodies in TypeScript
- parse and type-check environment variables
- validate form input with type-safe schemas
- infer static TypeScript types from runtime schemas
- convert schemas to JSON Schema for OpenAPI docs
- validate data from external JSON sources
- build end-to-end typesafe APIs with tRPC
When to choose
- you use TypeScript and want runtime validation that stays in sync with static types
- you need a small, dependency-free validation library for Node or browsers
- you want JSON Schema generation or a rich validation ecosystem (tRPC, form libraries)
When to avoid
- your project is plain JavaScript without TypeScript and you don't need type inference
- you need extremely high-throughput validation where a compiled/AOT validator outperforms an interpreter
- you're locked to TypeScript versions older than 5.5
Facets
library · maturity stable
serialization type-system developer-tools web-development developer-tools apis browser bun cross-platform schema-validation runtime-validation static-type-inference -schema typescript-first form-validation env-validation nodejs deno typescript
6 sources
- readme: https://github.com/colinhacks/zod · fetched 2026-08-28 · 439c0c93c68f
- homepage: https://zod.dev · fetched 2026-08-29 · e9a1c0e76f78
- site_page: https://zod.dev?id=features · fetched 2026-08-29 · e9a1c0e76f78
- site_page: https://zod.dev?id=installation · fetched 2026-08-29 · e9a1c0e76f78
- site_page: https://zod.dev/v4/changelog · fetched 2026-08-29 · 4f5b99701b7e
- site_page: https://zod.dev/ecosystem?id=form-integrations · fetched 2026-08-29 · 47cbbe39f641
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| colinhacks/zod | main | 89 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem