Skip to content

// ecosystem

Ecosystem

Fastify has an ever-growing ecosystem of 297 plugins. Core plugins are maintained by the Fastify team; community plugins extend it even further. Can't find what you need? Writing one is easy.

Allows you to easily build serverless web applications/services and RESTful APIs using Fastify on top of AWS Lambda and Amazon API Gateway.

Enables the use of CORS in a Fastify application.

Automatically generate ETags for HTTP responses.

Makes functional programming in Fastify more convenient. Adds support for Fastify routes returning functional structures, such as Either, Task or plain parameterless function.

Fastify MongoDB connection plugin, with which you can share the same MongoDB connection pool across every part of your server.

Use Passport strategies to authenticate requests and protect route.

Fastify PostgreSQL connection plugin, with this you can share the same PostgreSQL connection pool in every part of your server.

Fastify Redis connection plugin, with which you can share the same Redis connection across every part of your server.

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/sse

official

Plugin for Server-Sent Events (SSE) support in Fastify.

Plugin for serving static files as fast as possible.

Plugin for serving Swagger/OpenAPI documentation for Fastify, supporting dynamic generation.

Measure process load with automatic handling of "Service Unavailable" plugin for Fastify.

Decorate the Request object with a method to access raw URL components.

Templates rendering (ejs, pug, handlebars, marko) plugin support for Fastify.

Integration with Vite, allows for serving SPA/MPA/SSR Vite applications.

Development tools plugin for Fastify with live request dashboard, replay capabilities, and metrics tracking.

Add authentication and user management to your Fastify application with Clerk.

Strongly typed routes with a runtime validation using JSON schema generated from types.

Queue management plugin for glide-mq with REST API endpoints, SSE events, and in-memory testing mode. Powered by Valkey/Redis Streams.

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.

The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.

A Fastify plugin for rendering Svelte components with support for SSR (Server-Side Rendering), CSR (Client-Side Rendering), and SSR with hydration.

In-process file upload scanning for Fastify with MIME/magic-byte validation, ZIP bomb protection, size limits, and optional YARA.

Decorate the app/request with a StitchAPI seam — request-scoped principal, SSE streaming, error mapping, and a Pino-logger bridge.

apitally

community

Fastify plugin to integrate with Apitally, an API analytics, logging and monitoring tool.

arecibo

community

Fastify ping responder for Kubernetes Liveness and Readiness Probes.

cls-rtracer

community

Fastify middleware for CLS-based request ID generation. An out-of-the-box solution for adding request IDs into your logs.

A plugin for using Fastify without the need of consuming a port on Electron apps.

Fastify Plugin for Stoplight Elements API Documentation using openapi swagger json yml.

fast-water

community

A Fastify plugin for waterline. Decorates Fastify with waterline models.

fastify-204

community

Fastify plugin that return 204 status on empty response.

fastify-405

community

Fastify plugin that adds 405 HTTP status to your routes

fastify-allow

community

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

community

Fastify AMQP connection plugin, to use with RabbitMQ or another connector. Just a wrapper to amqplib.

Fastify plugin to authenticate HTTP requests based on API key and signature

Fastify MySQL plugin with auto SQL injection attack prevention.

Plugin to scan and load routes based on filesystem path from a custom directory.

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 plugin for managing databases, tables, and querying and creating scheduled queries with AWS Timestream.

fastify-babel

community

Fastify plugin for development servers that require Babel transformations of JavaScript sources.

fastify-blipp

community

Prints your routes to the console, so you definitely know which endpoints are available.

Small and efficient cache provider for Node.js with In-memory, File, Redis and MongoDB engines for Fastify

fastify-casl

community

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 plugin to generate and forward Fastify events in the Cloudevents format.

Fastify plugin to connect to a CockroachDB PostgreSQL instance via the Sequelize ORM.

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 plugin to print errors in structured HTML to the browser.

fastify-esso

community

The easiest authentication plugin for Fastify, with built-in support for Single sign-on (and great documentation).

Get control of your decorators across all the encapsulated contexts.

A typesafe TanStack Start / Next.JS-style router with JSON + Zod schema support.

Handy plugin to provide multipart support and fastify-swagger integration.

Small plugin to set a new HEAD route handler for each GET route previously registered in Fastify.

Small plugin used to make fastify accept only GET requests

fastify-grant

community

Authentication/Authorization plugin for Fastify that supports 200+ OAuth Providers.

fastify-guard

community

A Fastify plugin that protects endpoints by checking authenticated user roles and/or scopes.

Fastify Hemera plugin, for writing reliable & fault-tolerant microservices with nats.io.

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.

Typed HTTP status exceptions which are automatically converted into Fastify responses.

Redirect HTTP requests to HTTPS, both using the same port number, or different response on HTTP and HTTPS.

fastify-i18n

community

Internationalization plugin for Fastify. Built upon node-polyglot.

Fastify InfluxDB plugin connecting to an InfluxDB instance via the Influx default package.

fastify-ip

community

A plugin for Fastify that allows you to infer a request ID by a given set of custom Request headers.

Fastify plugin that adds support for KafkaJS - a modern Apache Kafka client library.

fastify-koa

community

Convert Koa middlewares into Fastify plugins

Fastify plugin for supporting Kysely type-safe query builder.

fastify-lm

community

Use OpenAI, Claude, Google, Deepseek, and others LMs with one Fastify plugin.

Load routes from a directory and inject the Fastify instance in each file.

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 for minification and transformation of responses.

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 and MessagePack, together at last. Uses @msgpack/msgpack by default.

Multer is a plugin for handling multipart/form-data, which is primarily used for uploading files.

Plugin to eliminate thrown errors for /favicon.ico requests.

fastify-now

community

Structure your endpoints in a folder and load them dynamically with Fastify.

Vue server-side rendering support for Fastify with Nuxt.js Framework.

fastify-oas

community

Generates OpenAPI 3.0+ documentation from routes schemas for Fastify.

Glue for OpenAPI specifications in Fastify, autogenerates routes based on an OpenAPI Specification.

fastify-osm

community

Fastify OSM plugin to run overpass queries by OpenStreetMap.

Fastify plugin to override decorators, plugins and hooks for testing purposes

Fastify plugin for memoize responses by expressive settings.

Route-level permission middleware for Fastify supports custom permission checks.

A Fastify plugin that uses prettier under the hood to beautify outgoing responses and/or other things in the Fastify server.

Fastify and protobufjs, together at last. Uses protobufjs by default.

fastify-qs

community

A plugin for Fastify that adds support for parsing URL query parameters with qs.

Fastify's plugin that adds support to handle an aborted request asynchronous.

RavenDB connection plugin. It exposes the same DocumentStore (or multiple ones) across the whole Fastify application.

fastify-rbac

community

Fastify role-based access control plugin.

A plugin for fast, reliable, and scalable channels implementation based on Redis streams.

Plugin to automatically load routes from a specified path and optionally limit loaded file names by a regular expression.

fastify-resty

community

Fastify-based 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.

A Fastify plugin that enables you to create route configurations that can be applied to multiple routes.

Ensure the existence of defined S3 buckets on the application startup.

Fastify plugin to add the Sentry SDK error handler to requests.

Fastify plugin work with Sequelize (adapter for Node.js -> Sqlite, Mysql, Mssql, Postgres).

A session plugin with support for arbitrary backing caches via fastify-caching.

A Fastify plugin for sending emails via AWS SES using AWS SDK v3.

Small plugin to allow you use multiple validators in one route based on each HTTP part of the request.

Connects your application to a sqlite3 database.

Connects your application to a SQLite database with full Typescript support.

fastify-sse

community

To provide Server-Sent Events with reply.sse( … ) to Fastify.

A simple plugin for setting up server side rendering with vite.

Automatically generate a browser-compatible, trusted, self-signed, localhost-only, TLS certificate.

fastify-totp

community

A plugin to handle TOTP (e.g. for 2FA).

fastify-vhost

community

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).

Enables returning web streams objects Response and ReadableStream in routes.

fastify-ws

community

WebSocket integration for Fastify — with support for WebSocket lifecycle hooks instead of a single handler function. Built upon ws and uws.

http-wizard

community

Exports a typescript API client for your Fastify API and ensures fullstack type safety for your project.

An i18next based i18n (internationalization) middleware to be used with Node.js web frameworks like Express or Fastify and also for Deno.

API Gateway plugin for Fastify, a low footprint implementation that uses the fastify-reply-from HTTP proxy library.

mercurius

community

A fully-featured and performant GraphQL server implementation for Fastify.

nstats

community

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

community

OAS 3.x to Fastify routes automation. Automatically generates route handlers with fastify configuration and validation.

fast-maker

community

Route configuration generator by directory structure.

fastify-flux

community

Tool for building Fastify APIs using decorators and convert Typescript interface to JSON Schema.

jeasx

community

A flexible server-rendering framework built on Fastify that leverages asynchronous JSX to simplify web development.

simple-tjscli

community

CLI tool to generate JSON Schema from TypeScript interfaces.