About Libraries
Server implementations for Fastify applications
Browse the snippets below to find the libraries implementation you need for your Fastify project.
All Libraries Snippets
Fastify Server
Production-ready Fastify HTTP server with graceful shutdown
- Graceful shutdown on SIGTERM/SIGINT
- CORS and Helmet pre-configured
- Health, ready, and live endpoints for k8s
WebSocket Server
Real-time WebSocket server with connection management
- WebSocket integration with Fastify
- Client connection tracking
- Message type handling
GraphQL Server (Mercurius)
GraphQL API with Mercurius adapter
- Mercurius integration
- GraphQL subscriptions support
- GraphiQL playground in development
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-server --framework fastify