About Middleware

Reusable Fastify middleware and hooks

Browse the snippets below to find the middleware implementation you need for your Fastify project.

All Middleware Snippets

How to Use

Install any snippet using the Hanma CLI:

npx hanma add  --framework fastify

For example, to install the first snippet:

npx hanma add fastify-jwt --framework fastify