zod

Schema validator

A TypeScript-first schema validation library with automatic static type inference and compositional validation of complex data structures.

TypeScript-first schema validation with static type inference

GitHub

34k stars
62 watching
1k forks
Language: TypeScript
last commit: 9 days ago
Linked from 4 awesome lists

runtime-validationschema-validationstatic-typestype-inferencetypescript

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
chrishoermann/zod-prisma-types Generates Zod schemas from Prisma models with validation options 657
jacobweisenburger/zod_utilz Simplifies common tasks in Zod schema validation 164
robintail/express-zod-api A framework to simplify API development by providing input validation and schema-based middlewares. 635
sindresorhus/ow A validation library for JavaScript functions and variables. 3,811
jakefenley/koa-zod-router Builds typesafe routes with built-in input/output validation and middleware support for Koa applications. 57
fabien0102/ts-to-zod Tool to automatically generate Zod schemas from TypeScript types/interfaces. 1,227
robintail/zod-sockets A TypeScript library that provides a Socket.IO solution with I/O validation and the ability to generate AsyncAPI specification and a contract for consumers. 61
duplojs/zod-accelerator An optimization layer for Zod's schema validation function 50
causaly/zod-validation-error A utility library that wraps Zod validation errors in user-friendly readable messages. 812
flock-community/zod-endpoints Contract-first API endpoint definition and schema validation 172
schalkventer/zod-dev A tool that conditionally disables runtime validation in Zod while preserving type inference 7
soc221b/zod-schema-faker A tool for generating mock data from Zod schemas. 15
plumatic/schema A Clojure(Script) library for describing and validating data shapes with features like validation, coercion, and test generation. 2,409
fabian-hiller/valibot A schema library for validating and transforming structured data at runtime without dependencies or external libraries. 6,329
marilari88/zod-playground An interactive web application for testing and validating Zod schemas 51