Zod logo

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

API Libraries

NameStarsDescription
tRPC⭐️ 36910Build end-to-end typesafe APIs without GraphQL.
@zodios/core⭐️ 1786A typescript API client with runtime and compile time validation backed by axios and zod.
@anatine/zod-nestjs⭐️ 727Helper methods for using Zod in a NestJS project.
domain-functions⭐️ 698Decouple 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⭐️ 698Build Express-based APIs with I/O schema validation and custom middlewares.
zod-endpoints⭐️ 183Contract-first strictly typed endpoints with Zod. OpenAPI compatible.
zhttp⭐️ 75An OpenAPI compatible, strictly typed http library with Zod input and response validation.
zod-sockets⭐️ 73Zod-powered Socket.IO microframework with I/O validation and built-in AsyncAPI specs
koa-zod-router⭐️ 65Create typesafe routes in Koa with I/O validation using Zod.
GQLoom⭐️ 36Weave GraphQL schema and resolvers using Zod.
tapiduck⭐️ 27End-to-end typesafe JSON APIs with Zod and Express; a bit like tRPC, but simpler.
oas-tszod-gen⭐️ 4Client SDK code generator to convert OpenApi v3 specifications into TS endpoint caller functions with Zod types.

Form Integrations

NameStarsDescription
react-hook-form⭐️ 42841A first-party Zod resolver for React Hook Form.
@vee-validate/zod⭐️ 11005Form library for Vue.js with Zod schema validation.
sveltekit-superforms⭐️ 2464Supercharged form library for SvelteKit with Zod validation.
conform⭐️ 2256A typesafe form validation library for progressive enhancement of HTML forms. Works with Remix and Next.js.
@modular-forms/solid⭐️ 1135Modular form library for SolidJS that supports Zod for validation.
zod-validation-error⭐️ 905Generate user-friendly error messages from ZodError instances.
zod-i18n-map⭐️ 749Useful for translating Zod error messages.
react-zorm⭐️ 734Standalone `<form>` generation and validation for React using Zod.
houseform⭐️ 652A React form library that uses Zod for validation.
zodix⭐️ 376Zod utilities for FormData and URLSearchParams in Remix loaders and actions.
remix-params-helper⭐️ 248Simplify integration of Zod with standard URLSearchParams and FormData for Remix apps.
zod-formik-adapter⭐️ 167A community-maintained Formik adapter for Zod.
zod-form-renderer⭐️ 46Auto-infer form fields from zod schema and render them with react-hook-form with E2E type safety.
antd-zod⭐️ 38Zod adapter for Ant Design form fields validation.
frrm⭐️ 24Tiny 0.5kb Zod-based, HTML form abstraction that goes brr.
formik-validator-zod⭐️ 23Formik-compliant validator library that simplifies using Zod with Formik.
mobx-zod-form⭐️ 16Data-first form builder based on MobX & Zod.

Zod to X

NameStarsDescription
zod-to-openapi⭐️ 1170Generate full OpenAPI (Swagger) docs from Zod, including schemas, endpoints & parameters.
zod-to-json-schema⭐️ 1062Convert your Zod schemas into JSON Schemas.
@anatine/zod-openapi⭐️ 727Converts a Zod schema to an OpenAPI v3.x `SchemaObject`.
fastify-type-provider-zod⭐️ 462Create Fastify type providers from Zod schemas.
typeschema⭐️ 435Universal adapter for schema validation.
zod-openapi⭐️ 390Create full OpenAPI v3.x documentation from Zod schemas.
zod-to-ts⭐️ 375Generate TypeScript definitions from Zod schemas.
zod-fast-check⭐️ 111Generate `fast-check` arbitraries from Zod schemas.
zodex⭐️ 94(De)serialization for zod schemas
nestjs-graphql-zod⭐️ 89Generates NestJS GraphQL model classes from Zod schemas. Provides GraphQL method decorators working with Zod schemas.
fastify-zod-openapi⭐️ 77Fastify type provider, validation, serialization and @fastify/swagger support for Zod schemas.
zod-dto⭐️ 53Generate Nest.js DTOs from a Zod schema.

X to Zod

NameStarsDescription
drizzle-zod⭐️ 27446Emit Zod schemas from your Drizzle schema.
quicktype⭐️ 12879Convert JSON objects and JSON schemas into Zod schemas.
Orval⭐️ 3806Generate Zod schemas from OpenAPI schemas
ts-to-zod⭐️ 1377Convert TypeScript definitions into Zod schemas.
Kubb⭐️ 1083Generate SDKs and Zod schemas from your OpenAPI schemas
zod-prisma⭐️ 868Generate Zod schemas from your Prisma schema.
zod-prisma-types⭐️ 764Create Zod types from your Prisma models.
prisma-trpc-generator⭐️ 687Emit fully implemented tRPC routers and their validation schemas using Zod.
prisma-zod-generator⭐️ 570Emit Zod schemas from your Prisma schema.
json-schema-to-zod⭐️ 425Convert your JSON Schemas into Zod schemas.
GraphQL schema gen⭐️ 336GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema.
@sanity-typed/zod⭐️ 157Generate Zod Schemas from Sanity Schemas.
Supervillain⭐️ 87Generate Zod schemas from your Go structs.
json-to-zod⭐️ 67Convert JSON objects into Zod schemas.
@runtyping/zod⭐️ 53Generate Zod from static types & JSON schema.
java-to-zod⭐️ 19Convert POJOs to Zod schemas

Mocking Libraries

NameStarsDescription
@anatine/zod-mock⭐️ 727Generate mock data from a Zod schema. Powered by faker.js.
zod-fixture⭐️ 128Use your zod schemas to automate the generation of non-relevant test fixtures in a deterministic way.
zod-schema-faker⭐️ 47Generates mock data from Zod schemas. Powered by @faker-js/faker and randexp.js
zod-mocking⭐️ 37Generate mock data from your Zod schemas.
zocker⭐️ 31Generate plausible mock-data from your schemas.
zodock⭐️ 14Generate mock data based on Zod schemas.

Powered by Zod

NameStarsDescription
slonik⭐️ 4701Node.js Postgres client with strong Zod integration.
pastel⭐️ 2237Create CLI applications with react, zod, and ink.
znv⭐️ 372Type-safe environment parsing and validation for Node.js with Zod schemas.
soly⭐️ 91Create CLI applications with zod.
zod-config⭐️ 83Load configurations across multiple sources with flexible adapters, ensuring type safety with Zod.
zod-xlsx⭐️ 33A xlsx based resource validator using Zod schemas.
freerstore⭐️ 25Firestore cost optimizer.
schemql⭐️ 24Enhances your SQL workflow by combining raw SQL with targeted type safety and schema validation.
unplugin-environment⭐️ 14A 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⭐️ ERRCreate runtime-checked structs with Zod.

Zod Utilities

NameStarsDescription
zod_utilz⭐️ 192Framework agnostic utilities for Zod.
zod-accelerator⭐️ 85Accelerates Zod's throughput up to ~100x.
zod-playground⭐️ 71A tool for learning and testing Zod schema validation functionalities.
zod-sandbox⭐️ 13Controlled environment for testing zod schemas.
zod-dev⭐️ 12Conditionally disables Zod runtime parsing in production.

On this page