Plugins maintained by the Fastify team are listed under Core while
plugins maintained by the community are listed in the Community
@fastify/accepts to have
accepts in your request object.
to serialize to output according to
multiple schemas and decide which one to use to serialize the payload
@fastify/auth Run multiple auth
functions in Fastify.
@fastify/autoload Require all
plugins in a directory.
injection support for Fastify, based on
you to easily build serverless web applications/services and RESTful APIs
using Fastify on top of AWS Lambda and Amazon API Gateway.
auth plugin for Fastify.
Bearer auth plugin for Fastify.
server-side cache and ETag support.
A low overhead circuit breaker for your routes.
@fastify/cookie Parse and set
@fastify/cors Enables the use of
CORS in a Fastify application.
plugin for adding
CSRF protection to
Plugin to deal with
diagnostics_channel on Fastify
Plugin to share the same ES client.
@fastify/env Load and check
generate ETags for HTTP responses.
@fastify/flash Set and get flash
messages using the session.
@fastify/formbody Plugin to
parse x-www-form-urlencoded bodies.
@fastify/funky Makes functional
programming in Fastify more convenient. Adds support for Fastify routes
returning functional structures, such as Either, Task or plain parameterless
security headers for Fastify.
@fastify/hotwire Use the
Hotwire pattern with Fastify.
your HTTP requests to another server, with hooks.
@fastify/jwt JWT utils for
Fastify, internally uses fast-jwt.
@fastify/leveldb Plugin to
share a common LevelDB connection across Fastify.
@fastify/middie Middleware engine for
MongoDB connection plugin, with which you can share the same MongoDB
connection pool across every part of your server.
support for Fastify.
@fastify/oauth2 Wrap around
PostgreSQL connection plugin, with this you can share the same PostgreSQL
connection pool in every part of your server.
@fastify/rate-limit A low
overhead rate limiter for your routes.
Request-scoped storage, based on
(with fallback to cls-hooked),
providing functionality similar to thread-local storages.
A simple plugin that enables response validation for Fastify.
server-side rendering support for Fastify with
@fastify/redis Fastify Redis
connection plugin, with which you can share the same Redis connection across
every part of your server.
to forward the current HTTP request to another server.
@fastify/routes Plugin that
Map of routes.
@fastify/schedule Plugin for
scheduling periodic jobs, based on
for Fastify that everyone can agree on. It adds some useful decorators such as
HTTP errors and assertions, but also more request and reply methods.
@fastify/session a session plugin for
@fastify/static Plugin for
serving static files as fast as possible.
@fastify/swagger Plugin for
serving Swagger/OpenAPI documentation for Fastify, supporting dynamic
process load with automatic handling of "Service Unavailable" plugin for
Request object with a method to access raw URL components.
rendering (ejs, pug, handlebars, marko) plugin support for Fastify.
support for Fastify. Built upon ws.
Alternate Fastify and Next.js integration.
typed routes with a runtime validation using JSON schema generated from types.
@dnlup/fastify-doc A plugin for
sampling process metrics.
@dnlup/fastify-traps A plugin to
close the server gracefully on
easy, developer-friendly OpenAPI 3.1 specs + doc explorer based on your routes.
Tiny (~5k), Fast, KISS, and dependency-free Node.JS library to make your
Fastify API graceful.
Run REST APIs and other web applications using your existing Node.js
application 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 and
dispatches to statsd.
Sentry errors handler that just works! Install, add your DSN and you're good
A plugin to close the server gracefully
A plugin to enable compact request logging for Fastify
plugin 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 to
serve GraphQL with Fastify.
arecibo Fastify ping responder for
Kubernetes Liveness and Readiness Probes.
cls-rtracer Fastify middleware
for CLS-based request ID generation. An out-of-the-box solution for adding
request IDs into your logs.
fast-water A Fastify plugin for
waterline. Decorates Fastify with waterline models.
fastify-405 Fastify plugin that adds
405 HTTP status to your routes
fastify-allow Fastify plugin
that automatically adds an Allow header to responses with routes. Also sends
405 responses for routes that have a handler but not for the request's method.
fastify-amqp Fastify AMQP
connection plugin, to use with RabbitMQ or another connector. Just a wrapper
AMQP plugin with a Promise-based API provided by
Angular server-side rendering support using
plugin to authenticate HTTP requests based on api key and signature
Plugin for interacting with Appwrite server.
Auth0 verification plugin for Fastify, internally uses
Plugin to auto-generate CRUD routes as fast as possible.
Plugin to scan and load routes based on filesystem path from a custom
fastify-axios Plugin to
send HTTP requests via axios.
fastify-babel Fastify plugin for
fastify-bcrypt A Bcrypt hash
generator & checker.
fastify-blipp Prints your
routes to the console, so you definitely know which endpoints are available.
plugin to add bookshelf.js ORM support.
fastify-boom Fastify plugin
to add boom support.
fastify-bree Fastify plugin
to add bree support.
fastify-casbin Casbin support
Casbin support for Fastify based on a RESTful model.
CASL plugin that supports ACL-like
protection 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 Cloudevents
Fastify plugin to connect to a CockroachDB PostgreSQL instance via the
plugin to add CouchDB support via nano.
plugin to rapidly generate CRUD routes for any entity.
Fastify plugin to add health route in your server that asserts custom
plugin that provides the set of TypeScript decorators.
Fastify plugin to disable client-side caching, inspired by
fastify-dynamodb AWS DynamoDB
plugin for Fastify. It exposes
fastify-dynareg Dynamic plugin
register for Fastify.
to add HTTP 103 feature based on RFC
plugin to integrate envalid in your Fastify
plugin to print errors in structured HTML to the browser.
fastify-esso The easiest
authentication plugin for Fastify, with built-in support for Single sign-on
(and great documentation).
fastify-explorer Get control of
your decorators across all the encapsulated contexts.
Fastify plugin to serve default favicon.
Fastify feature flags plugin with multiple providers support (e.g. env,
Next.js based file system routing into fastify.
Fastify plugin for uploading files.
plugin for Firebase Admin SDK
to 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 to
the authentication API.
Handy plugin to provide multipart support and fastify-swagger integration.
fastify-gcloud-traceGoogle Cloud Trace API
Connector for Fastify.
plugin to set a new HEAD route handler for each GET route previously
registered in Fastify.
plugin used to make fastify accept only GET requests
good 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+ OAuth
fastify-guard A Fastify plugin
that protects endpoints by checking authenticated user roles and/or scopes.
fastify-hasura A Fastify
plugin to have fun with Hasura.
Fastify plugin to serve a health check route and a probe script.
fastify-hemera Fastify Hemera
plugin, for writing reliable & fault-tolerant microservices with
to send HTTP(s) requests. Built upon urllib.
Fastify plugin for "simulating" a thread of execution to allow for true HTTP
context to take place per API call within the Fastify lifecycle of calls.
An error handling plugin for Fastify that uses enhanced HTTP errors.
HTTP requests to HTTPS, both using the same port number, or different response
on HTTP and HTTPS.
Fastify plugin for auto-redirect from HTTP to HTTPS.
Fastify plugin to track impressions of all the routes.
InfluxDB plugin connecting to an InfluxDB instance via the Influx default
user scope verifier.
authentication for Fastify-based web apps.
fastify-kafkajs Fastify plugin
that adds support for KafkaJS - a modern Apache Kafka client library.
plugin for support KnexJS Query Builder.
Fastify Mock KnexJS for testing support.
Kubernetes client plugin.
Fastify plugin to parse request language.
Lightweight cache plugin
fastify-loader Load routes from
a directory and inject the Fastify instance in each file.
fastify-lured Plugin to load lua
scripts with fastify-redis and
fastify-mailer Plugin to
initialize and encapsulate Nodemailer's transporters
instances in Fastify.
to 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.
fastify-metrics Plugin for
exporting Prometheus metrics.
fastify-minify Plugin for
minification and transformation of responses.
Fastify MongoDB in Memory Plugin for testing support.
Fastify plugin that sanitizes client input to prevent
potential 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 plugin
with support for Models.
fastify-mqtt Plugin to share
mqtt client across Fastify.
and MessagePack, together at last. Uses @msgpack/msgpack by default.
fastify-multer Multer is a plugin
for handling multipart/form-data, which is primarily used for uploading files.
fastify-nats Plugin to share
NATS client across Fastify.
NextAuth.js plugin for Fastify.
additionalProperties: false by default to your JSON Schemas.
fastify-no-icon Plugin to
eliminate thrown errors for
to share nodemailer transporter across Fastify.
Plugin to normalize the request and reply to the Express version 4.x request
and response, which allows use of middleware, like swagger-stats, that was
originally written for Express.
fastify-now Structure your
endpoints in a folder and load them dynamically with Fastify.
fastify-nuxtjs Vue server-side
rendering support for Fastify with Nuxt.js Framework.
fastify-oas Generates OpenAPI 3.0+
documentation from routes schemas for Fastify.
Plugin for the Fastify framework that provides integration with objectionjs
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 an
A Fastify plugin that uses the OpenTelemetry
API to provide
fastify-oracle Attaches an
oracledb connection pool to a
Fastify server instance.
OrientDB connection plugin, with which you can share the OrientDB connection
across every part of your server.
Fastify plugin for memoize responses by expressive settings.
fastify-piscina A worker
thread pool plugin using Piscina.
fastify-polyglot A plugin to
handle i18n using
Plugin to integrate PostGraphile in
a Fastify project.
fastify-prettier A Fastify
plugin that uses prettier under the
hood 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.
fastify-qrcode This plugin
utilizes qrcode to generate QR Code.
fastify-qs A plugin for Fastify
that adds support for parsing URL query parameters with
plugin that adds support to handle an aborted request asynchronous.
fastify-raw-body Add the
fastify-rbac Fastify role-based
access control plugin.
Fastify plugin for recaptcha verification.
A plugin for fast, reliable, and scalable channels implementation based on
Plugin to automatically load routes from a specified path and optionally limit
loaded file names by a regular expression.
A Fastify plugin for caching the response.
X-Response-Time header at each request for Fastify, in milliseconds.
web framework with REST API routes auto-generation for TypeORM entities using
DI and decorators.
Fastify reverse routes plugin, allows to defined named routes and build path
using name and parameters.
Fastify Rob-Config integration.
Convenient grouping and inheritance of routes
Choose the JSON schema to use based on request parameters.
Generate typescript types based on your JSON/YAML validation schemas so they
are always in sync.
Create a secure stateless cookie session for Fastify.
fastify-sentry Fastify plugin
to add the Sentry SDK error handler to requests.
plugin work with Sequelize (adapter for NodeJS -> Sqlite, Mysql, Mssql,
A session plugin with support for arbitrary backing caches via
fastify-slonik Fastify Slonik
plugin, with this you can use slonik in every part of your server.
fastify-soap-client a SOAP
client plugin for Fastify.
Socket.io plugin for Fastify.
Small plugin to allow you use multiple validators in one route based on each
HTTP part of the request.
fastify-sse to provide Server-Sent
reply.sse( … ) to Fastify.
fastify-sse-v2 to provide
Server-Sent Events using Async Iterators (supports newer versions of Fastify).
fastify-ssr-vite A simple
plugin for setting up server side rendering with vite.
fastify-stripe Plugin to
initialize and encapsulate Stripe
Node.js instances in Fastify.
fastify-supabase Plugin to
initialize and encapsulate Supabase
instances in Fastify.
Automatically generate a browser-compatible, trusted, self-signed,
localhost-only, TLS certificate.
fastify-tokenizeTokenize plugin for Fastify that
removes the pain of managing authentication tokens, with built-in integration
fastify-totp A plugin to handle
TOTP (e.g. for 2FA).
Useful functions for Twitch Extension Backend Services (EBS).
Fastify plugin to work with TypeORM.
subdomain HTTP requests to another server (useful if you want to point
multiple subdomains to the same IP address, while running different servers on
the same machine).
fastify-viteVite plugin for Fastify with SSR data support.
fastify-vue-pluginNuxt.js plugin for Fastify. Control the routes nuxt
Application Messaging Protocol router for Fastify.
Webpack hot module reloading plugin for Fastify.
Hot Module Replacement for Fastify.
fastify-ws WebSocket integration for
Fastify — with support for WebSocket lifecycle hooks instead of a single
handler function. Built upon ws and
Parse XML payload / request body into JS / JSON object.
fastify-xray Fastify plugin
for AWS XRay recording.
An i18next based i18n (internationalization)
middleware to be used with Node.js web frameworks like Express or Fastify and
also for Deno.
Gateway plugin for Fastify, a low footprint implementation that uses the
fastify-reply-from HTTP proxy library.
mercurius A fully-featured and performant GraphQL
server implementation for Fastify.
nstats A fast and compact way to get
all your network and process stats for your node application. Websocket,
HTTP/S, and prometheus compatible!
oas-fastify OAS 3.x to
Fastify routes automation. Automatically generates route handlers with fastify
configuration and validation.
Swagger and OpenAPI 3.0 spec-based request validation middleware that supports
sequelize-fastify A simple
and lightweight Sequelize plugin for Fastify.
typeorm-fastify-plugin A simple
and updated Typeorm plugin for use with Fastify.
fast-maker route configuration
generator by directory structure.
simple-tjscli CLI tool to
generate JSON Schema from TypeScript interfaces.