生态系统
注意 — 为了避免臃肿和混乱,生态系统部分已在 Zod 4 发布后被彻底清除。如果你已更新库以兼容 Zod 4,请提交 PR 将其重新添加。
¥— 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.
越来越多的工具基于 Zod 构建或原生支持 Zod!如果你在 Zod 上构建了工具或库,请告诉我 在 Twitter 上 或 发起讨论。我会在下面添加它并在推特上发布。
¥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
-
修复 TypeScript 的盲点:运行时类型检查 由 @jherr 开发
¥Fixing TypeScript's Blindspot: Runtime Typechecking by @jherr
API 库
¥API Libraries
Name | Stars | Zod 4 support | Description |
---|---|---|---|
tRPC | ⭐️ ERR | ⭐️ | Build end-to-end typesafe APIs without GraphQL. |
GQLoom | ⭐️ ERR | ⭐️ | Weave GraphQL schema and resolvers using Zod. |
oRPC | ⭐️ ERR | ⭐️ | Typesafe APIs Made Simple |
表单集成
¥Form Integrations
Name | Stars | Zod 4 support | Description |
---|---|---|---|
@regle/schemas | ⭐️ ERR | ⭐️ | Headless form validation library for Vue.js. |
Zod 到 X
¥Zod to X
Name | Stars | Zod 4 support | Description |
---|
X 到 Zod
¥X to Zod
Name | Stars | Zod 4 support | Description |
---|---|---|---|
orval | ⭐️ ERR | ⭐️ | Generate Zod schemas from OpenAPI schemas |
kubb | ⭐️ ERR | ⭐️ | The ultimate toolkit for working with APIs. |
模拟库
¥Mocking Libraries
Name | Stars | Zod 4 support | Description |
---|---|---|---|
zod-schema-faker | ⭐️ ERR | ⭐️ | Generate mock data from zod schemas. Powered by @faker-js/faker and randexp.js. |
zocker | ⭐️ ERR | ⭐️ ✅ | Generates valid, semantically meaningful data for your Zod schemas. |
由 Zod 提供支持
¥Powered by Zod
Name | Stars | Zod 4 support | Description |
---|---|---|---|
zod-config | ⭐️ ERR | ⭐️ | Load configurations across multiple sources with flexible adapters, ensuring type safety with Zod. |
Composable Functions | ⭐️ ERR | ⭐️ | Types and functions to make composition easy and safe. |
Zod 实用程序
¥Zod Utilities
Name | Stars | Zod 4 support | Description |
---|