Plugins maintained by the Fastify team are listed under Core while plugins maintained by the community are listed in the Community section.
@fastify/accepts
to have accepts in your request object.@fastify/accepts-serializer
to serialize to output according to theAccept
header.@fastify/any-schema
Save 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.@fastify/awilix
Dependency injection support for Fastify, based on awilix.@fastify/aws-lambda
allows you to easily build serverless web applications/services and RESTful APIs using Fastify on top of AWS Lambda and Amazon API Gateway.@fastify/basic-auth
Basic auth plugin for Fastify.@fastify/bearer-auth
Bearer auth plugin for Fastify.@fastify/caching
General server-side cache and ETag support.@fastify/circuit-breaker
A low overhead circuit breaker for your routes.@fastify/compress
Fastify compression utils.@fastify/cookie
Parse and set cookie headers.@fastify/cors
Enables the use of CORS in a Fastify application.@fastify/csrf-protection
A plugin for adding CSRF protection to Fastify.@fastify/diagnostics-channel
Plugin to deal withdiagnostics_channel
on Fastify@fastify/early-hints
Plugin to add HTTP 103 feature based on RFC 8297.@fastify/elasticsearch
Plugin to share the same ES client.@fastify/env
Load and check configuration.@fastify/etag
Automatically 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 function.@fastify/helmet
Important security headers for Fastify.@fastify/hotwire
Use the Hotwire pattern with Fastify.@fastify/http-proxy
Proxy 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 Fastify.@fastify/mongodb
Fastify MongoDB connection plugin, with which you can share the same MongoDB connection pool across every part of your server.@fastify/multipart
Multipart support for Fastify.@fastify/nextjs
React server-side rendering support for Fastify with Next.@fastify/oauth2
Wrap aroundsimple-oauth2
.@fastify/one-line-logger
Formats Fastify's logs into a nice one-line message.@fastify/postgres
Fastify 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.@fastify/redis
Fastify Redis connection plugin, with which you can share the same Redis connection across every part of your server.@fastify/reply-from
Plugin to forward the current HTTP request to another server.@fastify/request-context
Request-scoped storage, based on AsyncLocalStorage (with fallback to cls-hooked), providing functionality similar to thread-local storages.@fastify/response-validation
A simple plugin that enables response validation for Fastify.@fastify/routes
Plugin that provides aMap
of routes.@fastify/schedule
Plugin for scheduling periodic jobs, based on toad-scheduler.@fastify/secure-session
Create a secure stateless cookie session for Fastify.@fastify/sensible
Defaults 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.@fastify/soap-client
a SOAP client plugin for Fastify.@fastify/static
Plugin for serving static files as fast as possible.@fastify/swagger
Plugin for serving Swagger/OpenAPI documentation for Fastify, supporting dynamic generation.@fastify/throttle
Plugin for throttling the download speed of a request.@fastify/type-provider-json-schema-to-ts
Fastify type provider for json-schema-to-ts.@fastify/type-provider-typebox
Fastify type provider for Typebox.@fastify/under-pressure
Measure process load with automatic handling of "Service Unavailable" plugin for Fastify.@fastify/url-data
Decorate theRequest
object with a method to access raw URL components.@fastify/view
Templates rendering (ejs, pug, handlebars, marko) plugin support for Fastify.@fastify/vite
Integration with Vite, allows for serving SPA/MPA/SSR Vite applications.@fastify/websocket
WebSocket support for Fastify. Built upon ws.
@applicazza/fastify-nextjs
Alternate Fastify and Next.js integration.@blastorg/fastify-aws-dynamodb-cache
A plugin to help with caching API responses using AWS DynamoDB.@clerk/fastify
Add authentication and user management to your Fastify application with Clerk.@coobaha/typed-fastify
Strongly 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 onSIGINT
andSIGTERM
signals.@eropple/fastify-openapi3
Provides easy, developer-friendly OpenAPI 3.1 specs + doc explorer based on your routes.@ethicdevs/fastify-custom-session
A plugin lets you use session and decide only where to load/save from/to. Has great TypeScript support + built-in adapters for common ORMs/databases (Firebase, Prisma Client, Postgres (wip), InMemory) and you can easily make your own adapter!@ethicdevs/fastify-git-server
A plugin to easily create git server and make one/many Git repositories available for clone/fetch/push through the standardgit
(over http) commands.@fastify-userland/request-id
Fastify Request ID Plugin@fastify-userland/typeorm-query-runner
Fastify typeorm QueryRunner plugin@gquittet/graceful-server
Tiny (~5k), Fast, KISS, and dependency-free Node.JS library to make your Fastify API graceful.@h4ad/serverless-adapter
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.@immobiliarelabs/fastify-metrics
Minimalistic and opinionated plugin that collects usage/process metrics and dispatches to statsd.@immobiliarelabs/fastify-sentry
Sentry errors handler that just works! Install, add your DSN and you're good to go! A plugin to implement Lyra search engine on Fastify@joggr/fastify-prisma
A plugin for accessing an instantiated PrismaClient on your server.@mgcrea/fastify-graceful-exit
A plugin to close the server gracefully@mgcrea/fastify-request-logger
A plugin to enable compact request logging for Fastify@mgcrea/fastify-session
Session plugin for Fastify that supports both stateless and stateful sessions@mgcrea/fastify-session-redis-store
Redis store for @mgcrea/fastify-session using ioredis@mgcrea/fastify-session-sodium-crypto
Fast sodium-based crypto for @mgcrea/fastify-session@mgcrea/pino-pretty-compact
A custom compact pino-base prettifier@scalar/fastify-api-reference
Beautiful OpenAPI/Swagger API references for Fastify@trubavuong/fastify-seaweedfs
SeaweedFS for Fastifyapitally
Fastify plugin to integrate with Apitally, a simple API monitoring & API key management solution.apollo-server-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.electron-server
A plugin for using Fastify without the need of consuming a port on Electron apps.fast-water
A Fastify plugin for waterline. Decorates Fastify with waterline models.fastify-204
Fastify plugin that return 204 status on empty response.fastify-405
Fastify plugin that adds 405 HTTP status to your routesfastify-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 toamqplib
.fastify-amqp-async
Fastify AMQP plugin with a Promise-based API provided byamqplib-as-promised
.fastify-angular-universal
Angular server-side rendering support using@angular/platform-server
for Fastifyfastify-api-key
Fastify plugin to authenticate HTTP requests based on api key and signaturefastify-appwrite
Fastify Plugin for interacting with Appwrite server.fastify-at-mysql
Fastify MySQL plugin with auto SQL injection attack prevention.fastify-at-postgres
Fastify Postgres plugin with auto SQL injection attack prevention.fastify-auth0-verify
: Auth0 verification plugin for Fastify, internally uses fastify-jwt and jsonwebtoken.fastify-autocrud
Plugin to auto-generate CRUD routes as fast as possible.fastify-autoroutes
Plugin to scan and load routes based on filesystem path from a custom directory.fastify-aws-sns
Fastify plugin for AWS Simple Notification Service (AWS SNS) that coordinates and manages the delivery or sending of messages to subscribing endpoints or clients.fastify-aws-timestream
Fastify plugin for managing databases, tables, and querying and creating scheduled queries with AWS Timestream.fastify-axios
Plugin to send HTTP requests via axios.fastify-babel
Fastify plugin for development servers that require Babel transformations of JavaScript sources.fastify-bcrypt
A Bcrypt hash generator & checker.fastify-better-sqlite3
Plugin for better-sqlite3.fastify-blipp
Prints your routes to the console, so you definitely know which endpoints are available.fastify-bookshelf
Fastify plugin to add bookshelf.js ORM support.fastify-boom
Fastify plugin to add boom support.fastify-bree
Fastify plugin to add bree support.fastify-bugsnag
Fastify plugin to add support for Bugsnag error reporting.fastify-cacheman
Small and efficient cache provider for Node.JS with In-memory, File, Redis and MongoDB engines for Fastifyfastify-casbin
Casbin support for Fastify.fastify-casbin-rest
Casbin support for Fastify based on a RESTful model.fastify-casl
Fastify 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-cloudevents
Fastify plugin to generate and forward Fastify events in the Cloudevents format.fastify-cloudflare-turnstile
Fastify plugin for CloudFlare Turnstile.fastify-cloudinary
The Cloudinary Fastify SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.fastify-cockroachdb
Fastify plugin to connect to a CockroachDB PostgreSQL instance via the Sequelize ORM.fastify-constraints
Fastify plugin to add constraints to multiple routesfastify-couchdb
Fastify plugin to add CouchDB support via nano.fastify-crud-generator
A plugin to rapidly generate CRUD routes for any entity.fastify-custom-healthcheck
Fastify plugin to add health route in your server that asserts custom functions.fastify-decorators
Fastify plugin that provides the set of TypeScript decorators.fastify-delay-request
Fastify plugin that allows requests to be delayed whilst a task the response is dependent on is run, such as a resource intensive process.fastify-disablecache
Fastify plugin to disable client-side caching, inspired by nocache.fastify-dynamodb
AWS DynamoDB plugin for Fastify. It exposes AWS.DynamoDB.DocumentClient() object.fastify-dynareg
Dynamic plugin register for Fastify.fastify-envalid
Fastify plugin to integrate envalid in your Fastify project.fastify-error-page
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-event-bus
Event bus support for Fastify. Built upon js-event-bus.fastify-evervault
Fastify plugin for instantiating and encapsulating the Evervault client.fastify-explorer
Get control of your decorators across all the encapsulated contexts.fastify-favicon
Fastify plugin to serve default favicon.fastify-feature-flags
Fastify feature flags plugin with multiple providers support (e.g. env, config, unleash).fastify-file-routes
Get Next.js based file system routing into fastify.fastify-file-upload
Fastify plugin for uploading files.fastify-firebase
Fastify plugin for Firebase Admin SDK to Fastify so you can easily use Firebase Auth, Firestore, Cloud Storage, Cloud Messaging, and more.fastify-firebase-auth
Firebase Authentication for Fastify supporting all of the methods relating to the authentication API.fastify-formidable
Handy plugin to provide multipart support and fastify-swagger integration.fastify-gcloud-trace
Google Cloud Trace API Connector for Fastify.fastify-get-head
Small plugin to set a new HEAD route handler for each GET route previously registered in Fastify.fastify-get-only
Small plugin used to make fastify accept only GET requestsfastify-good-sessions
A good Fastify sessions plugin focused on speed.fastify-google-cloud-storage
Fastify plugin that exposes a GCP Cloud Storage client instance.fastify-graceful-shutdown
Shutdown Fastify gracefully and asynchronously.fastify-grant
Authentication/Authorization plugin for Fastify that supports 200+ OAuth Providers.fastify-guard
A Fastify plugin that protects endpoints by checking authenticated user roles and/or scopes.fastify-hashids
A Fastify plugin to encode/decode IDs using hashids.fastify-hasura
A Fastify plugin to have fun with Hasura.fastify-healthcheck
Fastify plugin to serve a health check route and a probe script.fastify-hemera
Fastify Hemera plugin, for writing reliable & fault-tolerant microservices with nats.io.fastify-http-client
Plugin to send HTTP(s) requests. Built upon urllib.fastify-http-context
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.fastify-http-errors-enhanced
An error handling plugin for Fastify that uses enhanced HTTP errors.fastify-http2https
Redirect HTTP requests to HTTPS, both using the same port number, or different response on HTTP and HTTPS.fastify-https-always
Lightweight, proxy-aware redirect plugin from HTTP to HTTPS.fastify-https-redirect
Fastify plugin for auto-redirect from HTTP to HTTPS.fastify-impressions
Fastify plugin to track impressions of all the routes.fastify-influxdb
Fastify InfluxDB plugin connecting to an InfluxDB instance via the Influx default package.fastify-ip
A plugin for Fastify that allows you to infer a request ID by a given set of custom Request headers.fastify-json-to-xml
Fastify plugin to serialize JSON responses into XML.fastify-jwt-authz
JWT user scope verifier.fastify-jwt-webapp
JWT authentication for Fastify-based web apps.fastify-kafkajs
Fastify plugin that adds support for KafkaJS - a modern Apache Kafka client library.fastify-keycloak-adapter
A keycloak adapter for a Fastify app.fastify-knexjs
Fastify plugin for supporting KnexJS Query Builder.fastify-knexjs-mock
Fastify Mock KnexJS for testing support.fastify-koa
Convert Koa middlewares into Fastify pluginsfastify-kubernetes
Fastify Kubernetes client plugin.fastify-language-parser
Fastify plugin to parse request language.fastify-lcache
Lightweight cache pluginfastify-list-routes
A simple plugin for Fastify to list all available routes.fastify-loader
Load routes from a directory and inject the Fastify instance in each file.fastify-log-controller
changes the log level of your Fastify server at runtime.fastify-lured
Plugin to load lua scripts with fastify-redis and lured. A plugin to implement Lyra search engine on Fastify.fastify-mailer
Plugin to initialize and encapsulate Nodemailer's transporters instances in Fastify.fastify-markdown
Plugin to markdown support.fastify-method-override
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-mongo-memory
Fastify MongoDB in Memory Plugin for testing support.fastify-mongodb-sanitizer
Fastify plugin that sanitizes client input to prevent potential MongoDB query injection attacks.fastify-mongoose-api
Fastify plugin to create REST API methods based on Mongoose MongoDB models.fastify-mongoose-driver
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.fastify-msgpack
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.fastify-next-auth
NextAuth.js plugin for Fastify.fastify-no-additional-properties
AddadditionalProperties: false
by default to your JSON Schemas.fastify-no-icon
Plugin to eliminate thrown errors for/favicon.ico
requests.fastify-normalize-request-reply
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.fastify-objectionjs
Plugin for the Fastify framework that provides integration with objectionjs ORM.fastify-objectionjs-classes
Plugin to cherry-pick classes from objectionjs ORM.fastify-opaque-apake
A Fastify plugin to implement the OPAQUE aPAKE protocol. Uses @squirrelchat/opaque-wasm-server.fastify-openapi-docs
A Fastify plugin that generates OpenAPI spec automatically.fastify-openapi-glue
Glue for OpenAPI specifications in Fastify, autogenerates routes based on an OpenAPI Specification.fastify-opentelemetry
A Fastify plugin that uses the OpenTelemetry API to provide request tracing.fastify-oracle
Attaches anoracledb
connection pool to a Fastify server instance.fastify-orama
fastify-orientdb
Fastify OrientDB connection plugin, with which you can share the OrientDB connection across every part of your server.fastify-osm
Fastify OSM plugin to run overpass queries by OpenStreetMap.fastify-peekaboo
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 node-polyglot.fastify-postgraphile
Plugin to integrate PostGraphile in a Fastify project.fastify-postgres-dot-js
Fastify PostgreSQL connection plugin that uses Postgres.js.fastify-prettier
A Fastify plugin that uses prettier under the hood to beautify outgoing responses and/or other things in the Fastify server.fastify-print-routes
A Fastify plugin that prints all available routes.fastify-protobufjs
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 qs.fastify-rabbitmq
Fastify RabbitMQ plugin that uses node-amqp-connection-manager plugin as a wrapper.fastify-racing
Fastify's plugin that adds support to handle an aborted request asynchronous.fastify-ravendb
RavenDB connection plugin. It exposes the sameDocumentStore
(or multiple ones) across the whole Fastify application.fastify-raw-body
Add therequest.rawBody
field.fastify-rbac
Fastify role-based access control plugin.fastify-recaptcha
Fastify plugin for recaptcha verification.fastify-redis-channels
A plugin for fast, reliable, and scalable channels implementation based on Redis streams.fastify-redis-session
Redis Session plugin for fastify.fastify-register-routes
Plugin to automatically load routes from a specified path and optionally limit loaded file names by a regular expression.fastify-response-caching
A Fastify plugin for caching the response.fastify-response-time
AddX-Response-Time
header at each request for Fastify, in milliseconds.fastify-resty
Fastify-based web framework with REST API routes auto-generation for TypeORM entities using DI and decorators.fastify-reverse-routes
Fastify reverse routes plugin, allows to defined named routes and build path using name and parameters.fastify-rob-config
Fastify Rob-Config integration.fastify-route-group
Convenient grouping and inheritance of routes.fastify-s3-buckets
Ensure the existence of defined S3 buckets on the application startup.fastify-schema-constraint
Choose the JSON schema to use based on request parameters.fastify-schema-to-typescript
Generate typescript types based on your JSON/YAML validation schemas so they are always in sync.fastify-sentry
Fastify plugin to add the Sentry SDK error handler to requests.fastify-sequelize
Fastify plugin work with Sequelize (adapter for NodeJS -> Sqlite, Mysql, Mssql, Postgres).fastify-server-session
A session plugin with support for arbitrary backing caches viafastify-caching
.fastify-shared-schema
Plugin for sharing schemas between different routes.fastify-slonik
Fastify Slonik plugin, with this you can use slonik in every part of your server.fastify-slow-down
A plugin to delay the response from the server.fastify-socket.io
a Socket.io plugin for Fastify.fastify-split-validator
Small plugin to allow you use multiple validators in one route based on each HTTP part of the request.fastify-sqlite
connects your application to a sqlite3 database.fastify-sse
to provide Server-Sent Events withreply.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.fastify-tls-keygen
Automatically generate a browser-compatible, trusted, self-signed, localhost-only, TLS certificate.fastify-tokenize
Tokenize plugin for Fastify that removes the pain of managing authentication tokens, with built-in integration forfastify-auth
.fastify-totp
A plugin to handle TOTP (e.g. for 2FA).fastify-twitch-ebs-tools
Useful functions for Twitch Extension Backend Services (EBS).fastify-type-provider-effect-schema
Fastify type provider for @effect/schema.fastify-type-provider-zod
Fastify type provider for zod.fastify-typeorm-plugin
Fastify plugin to work with TypeORM.fastify-user-agent
parses your request'suser-agent
header.fastify-uws
A Fastify plugin to use the web server uWebSockets.js.fastify-vhost
Proxy 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-vite
Vite plugin for Fastify with SSR data support.fastify-vue-plugin
Nuxt.js plugin for Fastify. Control the routes nuxt should use.fastify-wamp-router
Web Application Messaging Protocol router for Fastify.fastify-web-response
Enables returning web streams objectsResponse
andReadableStream
in routes.fastify-webpack-hmr
Webpack hot module reloading plugin for Fastify.fastify-webpack-hot
Webpack 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 uws.fastify-xml-body-parser
Parse XML payload / request body into JS / JSON object.fastify-xray
Fastify plugin for AWS XRay recording.http-wizard
Exports a typescript api client for your Fastify api and ensures fullstack type safety for your project.i18next-http-middleware
An i18next based i18n (internationalization) middleware to be used with Node.js web frameworks like Express or Fastify and also for Deno.k-fastify-gateway
API Gateway plugin for Fastify, a low footprint implementation that uses thefastify-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.openapi-validator-middleware
Swagger and OpenAPI 3.0 spec-based request validation middleware that supports Fastify.pubsub-http-handler
A Fastify plugin to easily create Google Cloud PubSub endpoints.sequelize-fastify
A simple and lightweight Sequelize plugin for Fastify.typeorm-fastify-plugin
A simple and updated Typeorm plugin for use with Fastify.
@fastify-userland/workflows
Reusable workflows for use in the Fastify pluginfast-maker
route configuration generator by directory structure.fastify-flux
Tool for building Fastify APIs using decorators and convert Typescript interface to JSON Schema.simple-tjscli
CLI tool to generate JSON Schema from TypeScript interfaces.