💎 Zod 4 is now stable!  Read the announcement.
Zod logo

Ecosystem

Edit this page

Note — The Ecosystem section focuses on libraries that support Zod 4. If your library supports Zod 4, please submit a PR to add it. For libraries that work with Zod 3, refer to v3.zod.dev.

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⭐️ 40516Build end-to-end typesafe APIs without GraphQL.
upfetch⭐️ 1406Advanced fetch client builder
nestjs-zod⭐️ 1107Integrate nestjs and zod. Create nestjs DTOs using zod, serialize with zod, and generate OpenAPI documentation from zod schemas
Express Zod API⭐️ 833Build Express-based API with I/O validation and middlewares, OpenAPI docs and type-safe client.
Zod Sockets⭐️ 116Socket.IO solution with I/O validation, an AsyncAPI generator, and a type-safe events map.
GQLoom⭐️ 102Weave GraphQL schema and resolvers using Zod.
Zod JSON-RPC⭐️ 22Type-safe JSON-RPC 2.0 client/server library using Zod.
oRPC⭐️ 7Typesafe APIs Made Simple
zodql⭐️ 2Use a single Zod schema as the source of truth for a GraphQL query, its inferred response type, and runtime validation.

Form Integrations

NameStarsDescription
Superforms⭐️ 2771Making SvelteKit forms a pleasure to use!
conform⭐️ 2573A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js.
zod-validation-error⭐️ 1022Generate user-friendly error messages from ZodError instances.
regle⭐️ 492Headless form validation library for Vue.js.
svelte-jsonschema-form⭐️ 168Svelte 5 library for creating forms based on JSON schema.
frrm⭐️ 32Tiny 0.5kb Zod-based, HTML form abstraction that goes brr.
react-f3⭐️ 11Components, hooks & utilities for creating and managing delightfully simple form experiences in React.
Attaform⭐️ 6Type-safe, Zod-first form library for Vue 3 and Nuxt.
zod-form-action⭐️ 1A tiny helper for wiring Zod validation into React's useActionState — typed field errors, zero boilerplate.

Zod to X

NameStarsDescription
prisma-zod-generator⭐️ 824Generate Zod schemas from Prisma schema with full ZodObject method support
zod-openapi⭐️ 636Use Zod Schemas to create OpenAPI v3.x documentation
convex-helpers⭐️ 487Use Zod to validate arguments and return values of Convex functions, and to create Convex database schemas
@traversable/zod⭐️ 159Build your own "Zod to x" library, or pick one of 25+ off-the-shelf transformers
zod2md⭐️ 148Generate Markdown docs from Zod schemas
fastify-zod-openapi⭐️ 123Fastify type provider, validation, serialization and @fastify/swagger support for Zod schemas
zod-mongo-schema⭐️ 11Convert Zod schemas to MongoDB-compatible JSON Schemas effortlessly
@nullix/zod-mongoose⭐️ 1Convert zod schemas into typesafe mongoose schemas with full transparent mongoose options and helpers

X to Zod

NameStarsDescription
orval⭐️ 6346Generate Zod schemas from OpenAPI schemas
Hey API⭐️ 5250OpenAPI to TypeScript codegen. Production-ready SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.
kubb⭐️ 1775The ultimate toolkit for working with APIs.
Prisma Zod Generator⭐️ 824Generates Zod schemas with input/result/pure variants, minimal/full/custom, selective emit/filtering, single/multi-file output, @zod rules, relation depth guards.
convex-helpers⭐️ 487Generate Zod schemas from Convex validators
DRZL⭐️ 107Drizzle ORM toolkit that can generate Zod validators from schema(s), plus typed services and strongly typed routers (oRPC/tRPC/etc).
valype⭐️ 70Typescript's type definition to runtime validator (including zod).
Hono Takibi⭐️ 53Hono Takibi is a code generator from OpenAPI to @hono/zod-openapi
tauri-typegen⭐️ 37tauri-typegen allows you to generate Zod schemas and validation hooks for the Rust @tauri-apps/tauri cross-platform application framework.

Mocking Libraries

NameStarsDescription
@traversable/zod-test⭐️ 159Random zod schema generator built for fuzz testing; includes generators for both valid and invalid data
zod-schema-faker⭐️ 114Generate mock data from zod schemas. Powered by @faker-js/faker and randexp.js.
zocker⭐️ 100Generates valid, semantically meaningful data for your Zod schemas.

Powered by Zod

NameStarsDescription
Composable Functions⭐️ 742Types and functions to make composition easy and safe.
zod-config⭐️ 139Load configurations across multiple sources with flexible adapters, ensuring type safety with Zod.
ArkEnv⭐️ 138Environment variable validation from editor to runtime, for Next.js, Nuxt, Node.js, Vite, Bun, and more.
zod-xlsx⭐️ 53A xlsx based resource validator using Zod schemas for data imports and more
Fn Sphere⭐️ 35A Zod-first toolkit for building powerful, type-safe filter experiences across web apps.
zodgres⭐️ 23Postgres.js + Zod: Database collections with static type inference and automatic migrations
validex⭐️ 2125 tree-shakeable validation rules for common fields (email, phone, password, etc.) with structured error codes, i18n, and framework adapters.
json-up⭐️ 16A fast, type-safe JSON migration tool with Zod schema validation.
bupkis⭐️ 8Uncommonly extensible assertions for the beautiful people
@chrock-studio/overload⭐️ 0A lightweight, type-safe runtime function overloading library that allows runtime dispatch based on argument types.

Zod Utilities

NameStarsDescription
zod-compiler⭐️ 741Compile Zod schemas into zero-overhead validation functions at build time. Works with Vite, webpack, esbuild, Rollup, etc.
zod-playground⭐️ 137Interactive playground for testing and exploring Zod and Zod mini schemas in real-time.
eslint-zod⭐️ 74ESLint plugins that add custom linting rules to enforce best practices when using Zod and/or Zod Mini.
zod-ir⭐️ 66Comprehensive validation for Iranian data structures (National Code, Bank Cards, Sheba, Crypto, etc) with smart metadata extraction (Bank Names, Logos). Zero dependencies.
eslint-plugin-import-zod⭐️ 53ESLint plugin to enforce namespace imports for Zod.
babel-plugin-zod-hoist⭐️ 40Babel plugin that optimizes Zod performance by hoisting schema definitions to the top of the file, avoiding repeated initialization overhead.
Zod AOT⭐️ 30Compile Zod schemas into zero-overhead validation functions at build time. 2-64x faster validation with no code changes.
Zod Compare⭐️ 13A utility library for recursively comparing Zod schemas.
oxlint-plugin-import-zod⭐️ 2Oxlint plugin to enforce namespace imports for Zod.
@chrock-studio/zod-utils⭐️ 0A collection of Zod utilities focusing on enhanced functionality (e.g. classless Rich Domain Models while maintaining pure data structures).

On this page