![]() ![]() Supervillain: Generate Zod schemas from your Go structs.zod-prisma: Generate Zod schemas from your Prisma schema.graphql-codegen-typescript-validation-schema: GraphQL Code Generator plugin to generate form validation schema from your GraphQL schema.json-to-zod: Convert JSON objects into Zod schemas.json-schema-to-zod: Convert your JSON Schemas into Zod schemas.Generate Zod from static types & JSON schema.ts-to-zod: Convert TypeScript definitions into Zod schemas.zod-openapi: Create full OpenAPI v3.x documentation from Zod Schemas.Provides GraphQL method decorators working with Zod schemas. nestjs-graphql-zod: Generates NestJS GraphQL model classes from Zod schemas. ![]() zod-to-openapi: Generate full OpenAPI (Swagger) docs from Zod, including schemas, endpoints & parameters.fastify-type-provider-zod: Create Fastify type providers from Zod schemas.zod-dto: Generate Nest.js DTOs from a Zod schema.zod-fast-check: Generate fast-check arbitraries from Zod schemas.Converts a Zod schema to an OpenAPI v3.x SchemaObject.zod-to-json-schema: Convert your Zod schemas into JSON Schemas.zod-to-ts: Generate TypeScript definitions from Zod schemas.mobx-zod-form: Data-first form builder based on MobX & Zod.sveltekit-superforms: Supercharged form library for SvelteKit with Zod validation.houseform: A React form library that uses Zod for validation.Modular form library for SolidJS that supports Zod for validation.zod-i18n-map: Useful for translating Zod error messages.formik-validator-zod: Formik-compliant validator library that simplifies using Zod with Formik.remix-params-helper: Simplify integration of Zod with standard URLSearchParams and FormData for Remix apps.zodix: Zod utilities for FormData and URLSearchParams in Remix loaders and actions.react-zorm: Standalone generation and validation for React using Zod.zod-formik-adapter: A community-maintained Formik adapter for Zod.zod-validation-error: Generate user-friendly error messages from ZodErrors.react-hook-form: A first-party Zod resolver for React Hook Form.koa-zod-router: Create typesafe routes in Koa with I/O validation using Zod.tapiduck: End-to-end typesafe JSON APIs with Zod and Express a bit like tRPC, but simpler.express-zod-api: Build Express-based APIs with I/O schema validation and custom middlewares.A typescript API client with runtime and compile time validation backed by axios and zod.With first-class type inference from end to end powered by Zod schemas. domain-functions: Decouple your business logic from your framework using composable functions.zod-endpoints: Contract-first strictly typed endpoints with Zod.Helper methods for using Zod in a NestJS project.tRPC: Build end-to-end typesafe APIs without GraphQL.Total TypeScript Zod Tutorial by Fixing TypeScript's Blindspot: Runtime Typechecking by libraries.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, tell me about it on Twitter or start a Discussion. Team/infrastructure and prevent secret leaks. If you built a paid product using Zod, consider one of the podium tiers. For individual developers, consider the Cup of Coffee tier. Sponsorship at any level is appreciated and encouraged. Works with plain JavaScript too! You don't need to use TypeScript.Functional approach: parse, don't validate.Immutable: methods (e.g.optional()) return a new instance.Works in Node.js and all modern browsers.It's easy to compose simpler types into complex data structures. With Zod, you declare a validator once and Zod will automatically infer the static TypeScript type. The goal is to eliminate duplicative type declarations. Zod is designed to be as developer-friendly as possible. I'm using the term "schema" to broadly refer to any data type, from a simple string to a complex nested object. Zod is a TypeScript-first schema declaration and validation library. pipe() to fix common issues with z.coerce. These docs have been translated into Chinese. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |