About Libraries
Core libraries and service integrations
Browse the snippets below to find the libraries implementation you need for your Express.js project.
All Libraries Snippets
Express Server
Production-ready Express HTTP server with graceful shutdown
- Graceful shutdown on SIGTERM/SIGINT
- CORS and Helmet pre-configured
- Health check endpoint included
HTTP Server
Basic HTTP server with Express integration
- Native Node.js http.createServer
- Express app attachment
- Manual server control
Socket.io Server
Real-time WebSocket server with optional JWT auth
- Socket.io integration with Express
- Optional JWT authentication
- Room management helpers
Apollo GraphQL Server
Apollo Server 4 with Express integration
- Apollo Server 4 setup
- Express middleware integration
- Context for authentication
tRPC Server
End-to-end typesafe API with tRPC
- tRPC router with Express adapter
- Zod validation built-in
- Public and protected procedures
gRPC Server
High-performance RPC with Protocol Buffers
- gRPC server setup
- Proto file loading
- Service implementation pattern
How to Use
Install any snippet using the Hanma CLI:
npx hanma add --framework express
For example, to install the first snippet:
npx hanma add express-server