Back to gallery
colinhacks/zod on GitHub — TypeScript-first schema validation with static type inference
colinhacks
Built bycolinhacks/

zod

TypeScript-first schema validation with static type inference

Stars
43.7k
Forks
2.2k
Watchers
0
Open issues
30
TypeScriptMIT main Updated 2 months ago~18 stars/day lifetime
Editor's take

TypeScript-first schema validation. ~35k stars. The de facto choice for input validation in TS apps. Works with every form library, every API framework, every ORM. If you are not using it yet, you should be.

Use this if

You are writing TypeScript and validating any input — forms, API requests, env vars, anything.

Skip if

You are not on TypeScript or you are deep in a Yup codebase that works fine.

Forms & ValidationFrameworks
Topics
typescriptschema-validationtype-inferenceruntime-validationstatic-types
Quick install
# Install via npm / pnpm / bun:
pnpm add zod
# or
npm install zod

Inferred from TypeScript · always double-check against the official README below.

Live data via GitHub REST API · Cached 30 min · Created 08 Mar 2020