Back to gallery
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