Plugins
- There are 53 core plugins and 213 community plugins
- A core plugin is a plugin maintained by the fastify team, and we do our best to maintain them according to the Fastify Long Term Support policy
- We guarantee that every community plugin respects Fastify best practices (tests, etc) at the time they have been added to the list. We offer no guarantee on their maintenance
- Can't find the plugin you're looking for? No problem, you can learn how to do it!
Core Plugins
To haveaccepts in your request object.
To serialize to output according to the Accept
header.
Savemultiple schemas and decide which one to use to serialize the payload
Run multiple authfunctions in Fastify.
Require allplugins in a directory.
Dependencyinjection support for Fastify, based onawilix.
Allowsyou to easily build serverless web applications/services and RESTful APIsusing Fastify on top of AWS Lambda and Amazon API Gateway.
Basicauth plugin for Fastify.
Bearer auth plugin for Fastify.
Generalserver-side cache and ETag support.
A low overhead circuit breaker for your routes.
Fastifycompression utils.
Parse and setcookie headers.
Enables the use ofCORS in a Fastify application.
Aplugin for addingCSRF protection toFastify.
Plugin to deal with diagnostics_channel
on Fastify
Plugin to share the same ES client.
Load and checkconfiguration.
Automaticallygenerate ETags for HTTP responses.
Set and get flashmessages using the session.
Plugin toparse x-www-form-urlencoded bodies.
Makes functionalprogramming in Fastify more convenient. Adds support for Fastify routesreturning functional structures, such as Either, Task or plain parameterlessfunction.
Importantsecurity headers for Fastify.
Use theHotwire pattern with Fastify.
Proxyyour HTTP requests to another server, with hooks.
JWT utils forFastify, internally uses fast-jwt.
Plugin toshare a common LevelDB connection across Fastify.
Middleware engine forFastify.
FastifyMongoDB connection plugin, with which you can share the same MongoDBconnection pool across every part of your server.
Multipartsupport for Fastify.
Reactserver-side rendering support for Fastify withNext.
Wrap aroundsimple-oauth2
.
FormatsFastify's logs into a nice one-line message.
FastifyPostgreSQL connection plugin, with this you can share the same PostgreSQLconnection pool in every part of your server.
A lowoverhead rate limiter for your routes.
Fastify Redisconnection plugin, with which you can share the same Redis connection acrossevery part of your server.
Pluginto forward the current HTTP request to another server.
Request-scoped storage, based onAsyncLocalStorage(with fallback to cls-hooked),providing functionality similar to thread-local storages.
A simple plugin that enables response validation for Fastify.
Plugin thatprovides a Map
of routes.
Plugin forscheduling periodic jobs, based ontoad-scheduler.
Create a secure stateless cookie session for Fastify.
Defaultsfor Fastify that everyone can agree on. It adds some useful decorators such asHTTP errors and assertions, but also more request and reply methods.
A session plugin forFastify.
A SOAPclient plugin for Fastify.
Plugin forserving static files as fast as possible.
Plugin forserving Swagger/OpenAPI documentation for Fastify, supporting dynamicgeneration.
Fastifytype providerfor json-schema-to-ts.
Fastifytype providerfor Typebox.
Measureprocess load with automatic handling of "Service Unavailable" plugin forFastify.
Decoratethe Request
object with a method to access raw URL components.
Templatesrendering (ejs, pug, handlebars, marko) plugin support for Fastify.
WebSocketsupport for Fastify. Built upon ws.
Community Plugins
Alternate Fastify and Next.js integration.
Add authentication and user management to your Fastify application with Clerk.
Stronglytyped routes with a runtime validation using JSON schema generated from types.
A plugin forsampling process metrics.
A plugin toclose the server gracefully on SIGINT
and SIGTERM
signals.
Provideseasy, developer-friendly OpenAPI 3.1 specs + doc explorer based on your routes.
A plugin lets you use session and decide only where to load/save from/to. Hasgreat TypeScript support + built-in adapters for common ORMs/databases (Firebase,Prisma Client, Postgres (wip), InMemory) and you can easily make your own adapter!
A plugin to easily create git server and make one/many Git repositories availablefor clone/fetch/push through the standard git
(over http) commands.
Fastify Request ID Plugin
Fastify typeorm QueryRunner plugin
Tiny (~5k), Fast, KISS, and dependency-free Node.JS library to make yourFastify API graceful.
Run REST APIs and other web applications using your existing Node.jsapplication framework (Express, Koa, Hapi and Fastify), on top of AWS Lambda,Huawei and many other clouds.
Minimalistic and opinionated plugin that collects usage/process metrics anddispatches to statsd.
Sentry errors handler that just works! Install, add your DSN and you're goodto go!A plugin to implement Lyra search engineon Fastify
A plugin to close the server gracefully
A plugin to enable compact request logging for Fastify
Sessionplugin for Fastify that supports both stateless and stateful sessions
Redis store for @mgcrea/fastify-session using ioredis
Fast sodium-based crypto for @mgcrea/fastify-session
A custom compact pino-base prettifier
SeaweedFS for Fastify
Run an Apollo Server toserve GraphQL with Fastify.
Fastify ping responder forKubernetes Liveness and Readiness Probes.
Fastify middlewarefor CLS-based request ID generation. An out-of-the-box solution for addingrequest IDs into your logs.
A plugin forusing Fastify without the need of consuming a port on Electron apps.
A Fastify plugin forwaterline. Decorates Fastify with waterline models.
Fastify plugin thatreturn 204 status on empty response.
Fastify plugin that adds405 HTTP status to your routes
Fastify pluginthat automatically adds an Allow header to responses with routes. Also sends405 responses for routes that have a handler but not for the request's method.
Fastify AMQPconnection plugin, to use with RabbitMQ or another connector. Just a wrapperto amqplib
.
FastifyAMQP plugin with a Promise-based API provided byamqplib-as-promised
.
Angular server-side rendering support using@angular/platform-server
for Fastify
Fastifyplugin to authenticate HTTP requests based on api key and signature
FastifyPlugin for interacting with Appwrite server.
FastifyMySQL plugin with auto SQL injection attack prevention.
FastifyPostgres plugin with auto SQL injection attack prevention.
:Auth0 verification plugin for Fastify, internally usesfastify-jwt andjsonwebtoken.
Plugin to auto-generate CRUD routes as fast as possible.
Plugin to scan and load routes based on filesystem path from a customdirectory.
Fastify pluginfor AWS Simple Notification Service (AWS SNS) that coordinates and managesthe delivery or sending of messages to subscribing endpoints or clients.
Fastify plugin for managing databases, tables, and querying and creatingscheduled queries with AWS Timestream.
Plugin tosend HTTP requests via axios.
Fastify plugin fordevelopment servers that require Babel transformations of JavaScript sources.
A Bcrypt hashgenerator & checker.
Prints yourroutes to the console, so you definitely know which endpoints are available.
Fastifyplugin to add bookshelf.js ORM support.
Fastify pluginto add boom support.
Fastify pluginto add bree support.
Fastify pluginto add support for Bugsnag error reporting.
Casbin supportfor Fastify.
Casbin support for Fastify based on a RESTful model.
FastifyCASL plugin that supports ACL-likeprotection of endpoints via either a preSerialization & preHandler hook,sanitizing the inputs and outputs of your application based on user rights.
Fastify plugin to generate and forward Fastify events in the Cloudeventsformat.
The Cloudinary Fastify SDK allows you to quickly and easily integrate yourapplication with Cloudinary. Effortlessly optimize and transform your cloud'sassets.
Fastify plugin to connect to a CockroachDB PostgreSQL instance via theSequelize ORM.
Fastify plugin to add constraints to multiple routes
Fastifyplugin to add CouchDB support via nano.
A plugin to rapidly generate CRUD routes for any entity.
Fastify plugin to add health route in your server that asserts customfunctions.
Fastifyplugin that provides the set of TypeScript decorators.
Fastify plugin that allows requests to be delayed whilst a task the response isdependent on is run, such as a resource intensive process.
Fastify plugin to disable client-side caching, inspired bynocache.
AWS DynamoDBplugin for Fastify. It exposesAWS.DynamoDB.DocumentClient()object.
Dynamic pluginregister for Fastify.
Pluginto add HTTP 103 feature based on RFC8297
Fastifyplugin to integrate envalid in your Fastifyproject.
Fastifyplugin to print errors in structured HTML to the browser.
The easiestauthentication plugin for Fastify, with built-in support for Single sign-on(and great documentation).
Get control ofyour decorators across all the encapsulated contexts.
Fastify plugin to serve default favicon.
GetNext.js based file system routing into fastify.
Fastify plugin for uploading files.
Fastifyplugin for Firebase Admin SDKto Fastify so you can easily use Firebase Auth, Firestore, Cloud Storage,Cloud Messaging, and more.
Firebase Authentication for Fastify supporting all of the methods relating tothe authentication API.
Handy plugin to provide multipart support and fastify-swagger integration.
Google Cloud Trace APIConnector for Fastify.
Smallplugin to set a new HEAD route handler for each GET route previouslyregistered in Fastify.
Smallplugin used to make fastify accept only GET requests
Agood Fastify sessions plugin focused on speed.
Fastify plugin that exposes a GCP Cloud Storage client instance.
Shutdown Fastify gracefully and asynchronously.
Authentication/Authorization plugin for Fastify that supports 200+ OAuthProviders.
A Fastify pluginthat protects endpoints by checking authenticated user roles and/or scopes.
A Fastifyplugin to have fun with Hasura.
Fastify plugin to serve a health check route and a probe script.
Fastify Hemeraplugin, for writing reliable & fault-tolerant microservices withnats.io.
Pluginto send HTTP(s) requests. Built upon urllib.
Fastify plugin for "simulating" a thread of execution to allow for true HTTPcontext to take place per API call within the Fastify lifecycle of calls.
An error handling plugin for Fastify that uses enhanced HTTP errors.
RedirectHTTP requests to HTTPS, both using the same port number, or different responseon HTTP and HTTPS.
Lightweight, proxy-aware redirect plugin from HTTP to HTTPS.
Fastify plugin for auto-redirect from HTTP to HTTPS.
Fastify plugin to track impressions of all the routes.
FastifyInfluxDB plugin connecting to an InfluxDB instance via the Influx defaultpackage.
A pluginfor Fastify that allows you to infer a request ID by agiven set of custom Request headers.
Fastifyplugin to serialize JSON responses into XML.
JWTuser scope verifier.
JWTauthentication for Fastify-based web apps.
Fastify pluginthat adds support for KafkaJS - a modern Apache Kafka client library.
A keycloak adapter for a Fastify app.
Fastifyplugin for supporting KnexJS Query Builder.
Fastify Mock KnexJS for testing support.
Convert Koa middlewares into Fastify plugins
FastifyKubernetes client plugin.
Fastify plugin to parse request language.
Lightweight cache plugin
A simple plugin for Fastify to list all available routes.
Load routes froma directory and inject the Fastify instance in each file.
Changes the log level of your Fastify server at runtime.
Plugin to load luascripts with fastify-redis andlured.A plugin to implement Lyra search engineon Fastify.
Plugin toinitialize and encapsulate Nodemailer's transportersinstances in Fastify.
Pluginto markdown support.
Plugin for Fastify, which allows the use of HTTP verbs, such as DELETE, PATCH,HEAD, PUT, OPTIONS in case the client doesn't support them.
Plugin forexporting Prometheus metrics.
Plugin forminification and transformation of responses.
Fastify MongoDB in Memory Plugin for testing support.
Fastify plugin that sanitizes client input to preventpotential MongoDB query injection attacks.
Fastify plugin to create REST API methods based on Mongoose MongoDB models.
Fastify Mongoose plugin that connects to a MongoDB via the Mongoose pluginwith support for Models.
Plugin to sharemqtt client across Fastify.
Fastifyand MessagePack, together at last. Uses @msgpack/msgpack by default.
Multer is a pluginfor handling multipart/form-data, which is primarily used for uploading files.
Plugin to shareNATS client across Fastify.
NextAuth.js plugin for Fastify.
Add additionalProperties: false
by default to your JSON Schemas.
Plugin toeliminate thrown errors for /favicon.ico
requests.
Pluginto share nodemailer transporter across Fastify.
Plugin to normalize the request and reply to the Express version 4.x requestand response, which allows use of middleware, like swagger-stats, that wasoriginally written for Express.
Structure yourendpoints in a folder and load them dynamically with Fastify.
Vue server-siderendering support for Fastify with Nuxt.js Framework.
Generates OpenAPI 3.0+documentation from routes schemas for Fastify.
Plugin for the Fastify framework that provides integration with objectionjsORM.
Plugin to cherry-pick classes from objectionjs ORM.
A Fastify plugin that generates OpenAPI spec automatically.
Glue for OpenAPI specifications in Fastify, autogenerates routes based on anOpenAPI Specification.
A Fastify plugin that uses the OpenTelemetryAPI to providerequest tracing.
Attaches anoracledb
connection pool to aFastify server instance.
FastifyOrientDB connection plugin, with which you can share the OrientDB connectionacross every part of your server.
FastifyOSM plugin to run overpass queries by OpenStreetMap.
Fastify plugin for memoize responses by expressive settings.
A workerthread pool plugin using Piscina.
A plugin tohandle i18n usingnode-polyglot.
Plugin to integrate PostGraphile ina Fastify project.
FastifyPostgreSQL connection plugin that uses Postgres.js.
A Fastifyplugin that uses prettier under thehood to beautify outgoing responses and/or other things in the Fastify server.
A Fastify plugin that prints all available routes.
Fastify and protobufjs, together at last. Uses protobufjs by default.
This pluginutilizes qrcode to generate QR Code.
A plugin for Fastifythat adds support for parsing URL query parameters withqs.
Fastify'splugin that adds support to handle an aborted request asynchronous.
RavenDBconnection plugin. It exposes the same DocumentStore
(or multiple ones)across the whole Fastify application.
Add therequest.rawBody
field.
Fastify role-basedaccess control plugin.
Fastify plugin for recaptcha verification.
A plugin for fast, reliable, and scalable channels implementation based onRedis streams.
Redis Session plugin for fastify.
Plugin to automatically load routes from a specified path and optionally limitloaded file names by a regular expression.
A Fastify plugin for caching the response.
AddX-Response-Time
header at each request for Fastify, in milliseconds.
Fastify-basedweb framework with REST API routes auto-generation for TypeORM entities usingDI and decorators.
Fastify reverse routes plugin, allows to defined named routes and build pathusing name and parameters.
Fastify Rob-Config integration.
Convenient grouping and inheritance of routes.
Ensure the existence of defined S3 buckets on the application startup.
Choose the JSON schema to use based on request parameters.
Generate typescript types based on your JSON/YAML validation schemas so theyare always in sync.
Fastify pluginto add the Sentry SDK error handler to requests.
Fastifyplugin work with Sequelize (adapter for NodeJS -> Sqlite, Mysql, Mssql,Postgres).
A session plugin with support for arbitrary backing caches viafastify-caching
.
Pluginfor sharing schemas between different routes.
Fastify Slonikplugin, with this you can use slonik in every part of your server.
A pluginto delay the response from the server.
ASocket.io plugin for Fastify.
Small plugin to allow you use multiple validators in one route based on eachHTTP part of the request.
Connects yourapplication to a sqlite3 database.
To provide Server-SentEvents with reply.sse( … )
to Fastify.
To provideServer-Sent Events using Async Iterators (supports newer versions of Fastify).
A simpleplugin for setting up server side rendering with vite.
Plugin toinitialize and encapsulate StripeNode.js instances in Fastify.
Plugin toinitialize and encapsulate Supabaseinstances in Fastify.
Automatically generate a browser-compatible, trusted, self-signed,localhost-only, TLS certificate.
Tokenize plugin for Fastify thatremoves the pain of managing authentication tokens, with built-in integrationfor fastify-auth
.
A plugin to handleTOTP (e.g. for 2FA).
Useful functions for Twitch Extension Backend Services (EBS).
Fastifytype providerfor @effect/schema.
Fastifytype providerfor zod.
Fastify plugin to work with TypeORM.
Parses yourrequest's user-agent
header.
Proxysubdomain HTTP requests to another server (useful if you want to pointmultiple subdomains to the same IP address, while running different servers onthe same machine).
Vite plugin for Fastify with SSR data support.
Nuxt.js plugin for Fastify. Control the routes nuxtshould use.
WebApplication Messaging Protocol router for Fastify.
Enables returning web streams objects Response
and ReadableStream
in routes.
Webpack hot module reloading plugin for Fastify.
WebpackHot Module Replacement for Fastify.
WebSocket integration forFastify — with support for WebSocket lifecycle hooks instead of a singlehandler function. Built upon ws anduws.
Parse XML payload / request body into JS / JSON object.
Fastify pluginfor AWS XRay recording.
An i18next based i18n (internationalization)middleware to be used with Node.js web frameworks like Express or Fastify andalso for Deno.
APIGateway plugin for Fastify, a low footprint implementation that uses thefastify-reply-from
HTTP proxy library.
A fully-featured and performant GraphQLserver implementation for Fastify.
A fast and compact way to getall your network and process stats for your node application. Websocket,HTTP/S, and prometheus compatible!
OAS 3.x toFastify routes automation. Automatically generates route handlers with fastifyconfiguration and validation.
Swagger and OpenAPI 3.0 spec-based request validation middleware that supportsFastify.
A Fastifyplugin to easily create Google Cloud PubSub endpoints.
A simpleand lightweight Sequelize plugin for Fastify.
A simpleand updated Typeorm plugin for use with Fastify. #### Community Tools
Reusable workflows for use in the Fastify plugin
Route configurationgenerator by directory structure.
Tool for buildingFastify APIs using decorators and convert Typescript interface to JSON Schema.
CLI tool togenerate JSON Schema from TypeScript interfaces.