Runtime type validation with TypeScript inference — schemas, parsing, transforms, and form validation.
Five passes over the same idea, each from a different angle. Do them in order, or jump to whichever you need.
Zod provides runtime type checking that infers TypeScript types from schemas. Define a schema once, get both runtime validation and static types. Features: composable schemas, transforms, refinements, error formatting, and integration with React Hook Form, tRPC, and API validation.