🌐
GitHub
github.com › turkerdev › fastify-type-provider-zod
GitHub - turkerdev/fastify-type-provider-zod · GitHub
Fastify dispatches serialization per content type — set the response Content-Type header in the handler to select which schema validates the response body: handler: (req, res) => { res.header('Content-Type', 'application/vnd.v1+json'); res.send([{ id: 1, name: 'item' }]); }, import { z } from 'zod/v4'; import type { FastifyPluginAsyncZod } from 'fastify-type-provider-zod'; const plugin: FastifyPluginAsyncZod = async function (fastify, _opts) { fastify.route({ method: 'GET', url: '/', // Define your schema schema: { querystring: z.object({ name: z.string().min(4), }), response: { 200: z.string(), }, }, handler: (req, res) => { res.send(req.query.name); }, }); };
Author   turkerdev
🌐
npm
npmjs.com › package › fastify-zod
fastify-zod - npm
August 17, 2023 - Zod integration with Fastify. Latest version: 1.4.0, last published: 3 years ago. Start using fastify-zod in your project by running `npm i fastify-zod`. There are 1 other projects in the npm registry using fastify-zod.
      » npm install fastify-zod
    
Published   Aug 17, 2023
Version   1.4.0
🌐
Fastify
fastify.dev › reference › type-providers
Fastify - Fast and Low Overhead Web Framework
Official Type Provider packages follow the @fastify/type-provider-{provider-name} naming convention. Several community providers are also available. The following inference packages are supported: json-schema-to-ts · typebox · zod · See also the Type Provider wrapper packages for each of the packages respectively: @fastify/type-provider-json-schema-to-ts ·
🌐
GitHub
github.com › elierotenberg › fastify-zod
GitHub - elierotenberg/fastify-zod: Zod integration with Fastify · GitHub
This library allows you to use zod as your primary source of truth for models with nice integration with fastify, fastify-swagger and OpenAPI typescript-fetch generator.
Starred by 222 users
Forked by 25 users
Languages   TypeScript 98.2% | JavaScript 1.8%
🌐
GitHub
github.com › samchungy › fastify-zod-openapi
GitHub - samchungy/fastify-zod-openapi: Fastify plugin for zod-openapi · GitHub
Fastify type provider, validation, serialization and @fastify/swagger support for zod-openapi.
Starred by 123 users
Forked by 16 users
Languages   TypeScript 99.5% | JavaScript 0.5%
🌐
Medium
medium.com › @tomas.gabrs › building-a-fastify-application-with-zod-validation-in-an-nx-monorepo-7c49ed6d77be
Building a Fastify Application with Zod Validation in an NX Monorepo | by Tomas Gabrs @ Tomio | Medium
September 24, 2024 - However, according to the Fastify documentation, we can leverage TypeScript generics to redefine the FastifyInstance type. By doing this, we can export the modified type and use it throughout our application, enabling our IDE to catch these type mismatches automatically. // libs/shared/zod-fastify/src/index.ts import { fastify, FastifyInstance, FastifyServerOptions, FastifyBaseLogger, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerDefault, } from 'fastify'; import { serializerCompiler, validatorCompiler, ZodTypeProvider, } from 'fastify-type-provider-zod'; export type ZodFast
🌐
npm
npmjs.com › package › @explita › fastify-zod
@explita/fastify-zod - npm
A Fastify plugin that provides seamless integration with Zod for request validation with custom check functions.
      » npm install @explita/fastify-zod
    
Published   Dec 17, 2025
Version   0.4.1
Author   explita
🌐
GitHub
github.com › explita › fastify-zod
GitHub - explita/fastify-zod · GitHub
A Fastify plugin that provides seamless integration with Zod for request validation with custom check functions.
Author   explita
🌐
npm
npmjs.com › package › fastify-type-provider-zod
fastify-type-provider-zod - npm
Zod Type Provider for Fastify@5. Latest version: 6.1.0, last published: 5 months ago. Start using fastify-type-provider-zod in your project by running `npm i fastify-type-provider-zod`. There are 115 other projects in the npm registry using fastify-type-provider-zod.
      » npm install fastify-type-provider-zod
    
Published   Oct 24, 2025
Version   6.1.0
Author   turkerd
Find elsewhere
🌐
GitHub
github.com › elierotenberg › fastify-zod › blob › master › README.md
fastify-zod/README.md at master · elierotenberg/fastify-zod
This library allows you to use zod as your primary source of truth for models with nice integration with fastify, fastify-swagger and OpenAPI typescript-fetch generator.
Author   elierotenberg
🌐
GitHub
github.com › fastify › fastify-type-provider-zod
GitHub - fastify/fastify-type-provider-zod: A Type Provider for Zod · GitHub
A Type Provider for Zod. Contribute to fastify/fastify-type-provider-zod development by creating an account on GitHub.
Author   fastify
🌐
npm
npmjs.com › package › fastify-zod-openapi
fastify-zod-openapi - npm
Fastify type provider, validation, serialization and @fastify/swagger support for zod-openapi.
      » npm install fastify-zod-openapi
    
Published   Mar 31, 2026
Version   5.6.1
🌐
GitHub
github.com › deboxlibrary › fastify-zod
GitHub - deboxlibrary/fastify-zod: Zod integration with Fastify · GitHub
This library allows you to use zod as your primary source of truth for models with nice integration with fastify, fastify-swagger and OpenAPI typescript-fetch generator.
Author   deboxlibrary
🌐
GitHub
github.com › Zagorodnyi › fastify-zod-schema
GitHub - Zagorodnyi/fastify-zod-schema: Fastify plugin that allows users to define request schemas using Zod, providing type safety and validation · GitHub
Fastify plugin that allows users to define request schemas using Zod, providing type safety and validation - Zagorodnyi/fastify-zod-schema
Author   Zagorodnyi
🌐
npm
npmjs.com › package › @bram-dc › fastify-type-provider-zod
@bram-dc/fastify-type-provider-zod - npm
January 25, 2026 - Zod Type Provider for Fastify@5. Latest version: 7.0.1, last published: a month ago. Start using @bram-dc/fastify-type-provider-zod in your project by running `npm i @bram-dc/fastify-type-provider-zod`. There are no other projects in the npm registry using @bram-dc/fastify-type-provider-zod.
      » npm install @bram-dc/fastify-type-provider-zod
    
Published   Jan 25, 2026
Version   7.0.1
Author   turkerd
🌐
GitHub
github.com › joe-king-sh › fastify-zod-swagger
GitHub - joe-king-sh/fastify-zod-swagger · GitHub
This is sample API that outputs OpenAPI specifications based on the validation schema defined by Zod. Check the example of Swagger-UI from here. https://joe-king-sh.github.io/fastify-zod-swagger/
Starred by 3 users
Forked by 4 users
Languages   TypeScript
🌐
Socket
socket.dev › npm › package › fastify-zod-schema
fastify-zod-schema - npm Package Security Analysis - Socket
A Fastify plugin that allows users to define request schemas using Zod, providing type safety and validation. Version: 2.0.3 was published by zagorodn...
🌐
CodeSandbox
codesandbox.io › examples › package › fastify-type-provider-zod
fastify-type-provider-zod examples - CodeSandbox
Use this online fastify-type-provider-zod playground to view and fork fastify-type-provider-zod example apps and templates on CodeSandbox.
🌐
CodeSandbox
codesandbox.io › examples › package › fastify-zod
fastify-zod examples - CodeSandbox
Use this online fastify-zod playground to view and fork fastify-zod example apps and templates on CodeSandbox.