Quick Start
npm install zodimport { z } from "zod";
const Schema = z.object({ name: z.string(), email: z.string().email() });
type T = z.infer<typeof Schema>;Overview
Zod is a TypeScript-first data validation library with 35,000+ GitHub stars. Define a schema once and get both type inference and runtime validation.
Source & Thanks
Created by Colin McDonnell. Licensed under MIT.
zod — stars 35,000+