Ecosystem
Note — To avoid bloat and confusion, the Ecosystem section has been wiped clean with the release of Zod 4. If you've updated your library to work with Zod 4, please submit a PR to add it back in.
There are a growing number of tools that are built atop or support Zod natively! If you've built a tool or library on top of Zod, let me know on Twitter or start a Discussion. I'll add it below and tweet it out.
Resources
- Total TypeScript Zod Tutorial by @mattpocockuk
- Fixing TypeScript's Blindspot: Runtime Typechecking by @jherr
API Libraries
Name | Stars | Description |
---|---|---|
tRPC | ⭐️ 36910 | Build end-to-end typesafe APIs without GraphQL. |
@zodios/core | ⭐️ 1786 | A typescript API client with runtime and compile time validation backed by axios and zod. |
@anatine/zod-nestjs | ⭐️ 727 | Helper methods for using Zod in a NestJS project. |
domain-functions | ⭐️ 698 | Decouple your business logic from your framework using composable functions. With first-class type inference from end to end powered by Zod schemas. |
express-zod-api | ⭐️ 698 | Build Express-based APIs with I/O schema validation and custom middlewares. |
zod-endpoints | ⭐️ 183 | Contract-first strictly typed endpoints with Zod. OpenAPI compatible. |
zhttp | ⭐️ 75 | An OpenAPI compatible, strictly typed http library with Zod input and response validation. |
zod-sockets | ⭐️ 73 | Zod-powered Socket.IO microframework with I/O validation and built-in AsyncAPI specs |
koa-zod-router | ⭐️ 65 | Create typesafe routes in Koa with I/O validation using Zod. |
GQLoom | ⭐️ 36 | Weave GraphQL schema and resolvers using Zod. |
tapiduck | ⭐️ 27 | End-to-end typesafe JSON APIs with Zod and Express; a bit like tRPC, but simpler. |
oas-tszod-gen | ⭐️ 4 | Client SDK code generator to convert OpenApi v3 specifications into TS endpoint caller functions with Zod types. |
Form Integrations
Name | Stars | Description |
---|---|---|
react-hook-form | ⭐️ 42841 | A first-party Zod resolver for React Hook Form. |
@vee-validate/zod | ⭐️ 11005 | Form library for Vue.js with Zod schema validation. |
sveltekit-superforms | ⭐️ 2464 | Supercharged form library for SvelteKit with Zod validation. |
conform | ⭐️ 2256 | A typesafe form validation library for progressive enhancement of HTML forms. Works with Remix and Next.js. |
@modular-forms/solid | ⭐️ 1135 | Modular form library for SolidJS that supports Zod for validation. |
zod-validation-error | ⭐️ 905 | Generate user-friendly error messages from ZodError instances. |
zod-i18n-map | ⭐️ 749 | Useful for translating Zod error messages. |
react-zorm | ⭐️ 734 | Standalone `<form>` generation and validation for React using Zod. |
houseform | ⭐️ 652 | A React form library that uses Zod for validation. |
zodix | ⭐️ 376 | Zod utilities for FormData and URLSearchParams in Remix loaders and actions. |
remix-params-helper | ⭐️ 248 | Simplify integration of Zod with standard URLSearchParams and FormData for Remix apps. |
zod-formik-adapter | ⭐️ 167 | A community-maintained Formik adapter for Zod. |
zod-form-renderer | ⭐️ 46 | Auto-infer form fields from zod schema and render them with react-hook-form with E2E type safety. |
antd-zod | ⭐️ 38 | Zod adapter for Ant Design form fields validation. |
frrm | ⭐️ 24 | Tiny 0.5kb Zod-based, HTML form abstraction that goes brr. |
formik-validator-zod | ⭐️ 23 | Formik-compliant validator library that simplifies using Zod with Formik. |
mobx-zod-form | ⭐️ 16 | Data-first form builder based on MobX & Zod. |
Zod to X
Name | Stars | Description |
---|---|---|
zod-to-openapi | ⭐️ 1170 | Generate full OpenAPI (Swagger) docs from Zod, including schemas, endpoints & parameters. |
zod-to-json-schema | ⭐️ 1062 | Convert your Zod schemas into JSON Schemas. |
@anatine/zod-openapi | ⭐️ 727 | Converts a Zod schema to an OpenAPI v3.x `SchemaObject`. |
fastify-type-provider-zod | ⭐️ 462 | Create Fastify type providers from Zod schemas. |
typeschema | ⭐️ 435 | Universal adapter for schema validation. |
zod-openapi | ⭐️ 390 | Create full OpenAPI v3.x documentation from Zod schemas. |
zod-to-ts | ⭐️ 375 | Generate TypeScript definitions from Zod schemas. |
zod-fast-check | ⭐️ 111 | Generate `fast-check` arbitraries from Zod schemas. |
zodex | ⭐️ 94 | (De)serialization for zod schemas |
nestjs-graphql-zod | ⭐️ 89 | Generates NestJS GraphQL model classes from Zod schemas. Provides GraphQL method decorators working with Zod schemas. |
fastify-zod-openapi | ⭐️ 77 | Fastify type provider, validation, serialization and @fastify/swagger support for Zod schemas. |
zod-dto | ⭐️ 53 | Generate Nest.js DTOs from a Zod schema. |
X to Zod
Name | Stars | Description |
---|---|---|
drizzle-zod | ⭐️ 27446 | Emit Zod schemas from your Drizzle schema. |
quicktype | ⭐️ 12879 | Convert JSON objects and JSON schemas into Zod schemas. |
Orval | ⭐️ 3806 | Generate Zod schemas from OpenAPI schemas |
ts-to-zod | ⭐️ 1377 | Convert TypeScript definitions into Zod schemas. |
Kubb | ⭐️ 1083 | Generate SDKs and Zod schemas from your OpenAPI schemas |
zod-prisma | ⭐️ 868 | Generate Zod schemas from your Prisma schema. |
zod-prisma-types | ⭐️ 764 | Create Zod types from your Prisma models. |
prisma-trpc-generator | ⭐️ 687 | Emit fully implemented tRPC routers and their validation schemas using Zod. |
prisma-zod-generator | ⭐️ 570 | Emit Zod schemas from your Prisma schema. |
json-schema-to-zod | ⭐️ 425 | Convert your JSON Schemas into Zod schemas. |
GraphQL schema gen | ⭐️ 336 | GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema. |
@sanity-typed/zod | ⭐️ 157 | Generate Zod Schemas from Sanity Schemas. |
Supervillain | ⭐️ 87 | Generate Zod schemas from your Go structs. |
json-to-zod | ⭐️ 67 | Convert JSON objects into Zod schemas. |
@runtyping/zod | ⭐️ 53 | Generate Zod from static types & JSON schema. |
java-to-zod | ⭐️ 19 | Convert POJOs to Zod schemas |
Mocking Libraries
Name | Stars | Description |
---|---|---|
@anatine/zod-mock | ⭐️ 727 | Generate mock data from a Zod schema. Powered by faker.js. |
zod-fixture | ⭐️ 128 | Use your zod schemas to automate the generation of non-relevant test fixtures in a deterministic way. |
zod-schema-faker | ⭐️ 47 | Generates mock data from Zod schemas. Powered by @faker-js/faker and randexp.js |
zod-mocking | ⭐️ 37 | Generate mock data from your Zod schemas. |
zocker | ⭐️ 31 | Generate plausible mock-data from your schemas. |
zodock | ⭐️ 14 | Generate mock data based on Zod schemas. |
Powered by Zod
Name | Stars | Description |
---|---|---|
slonik | ⭐️ 4701 | Node.js Postgres client with strong Zod integration. |
pastel | ⭐️ 2237 | Create CLI applications with react, zod, and ink. |
znv | ⭐️ 372 | Type-safe environment parsing and validation for Node.js with Zod schemas. |
soly | ⭐️ 91 | Create CLI applications with zod. |
zod-config | ⭐️ 83 | Load configurations across multiple sources with flexible adapters, ensuring type safety with Zod. |
zod-xlsx | ⭐️ 33 | A xlsx based resource validator using Zod schemas. |
freerstore | ⭐️ 25 | Firestore cost optimizer. |
schemql | ⭐️ 24 | Enhances your SQL workflow by combining raw SQL with targeted type safety and schema validation. |
unplugin-environment | ⭐️ 14 | A plugin for loading environment variables safely with schema validation, simple with virtual module, type-safe with intellisense, and better DX 🔥 🚀 👷. Powered by Zod. |
zod-struct | ⭐️ ERR | Create runtime-checked structs with Zod. |
Zod Utilities
Name | Stars | Description |
---|---|---|
zod_utilz | ⭐️ 192 | Framework agnostic utilities for Zod. |
zod-accelerator | ⭐️ 85 | Accelerates Zod's throughput up to ~100x. |
zod-playground | ⭐️ 71 | A tool for learning and testing Zod schema validation functionalities. |
zod-sandbox | ⭐️ 13 | Controlled environment for testing zod schemas. |
zod-dev | ⭐️ 12 | Conditionally disables Zod runtime parsing in production. |