About Libraries
Server implementations and database services for NestJS applications
Browse the snippets below to find the libraries implementation you need for your NestJS project.
All Libraries Snippets
NestJS Express Server
Production-ready NestJS HTTP server with Express adapter
- Express adapter (familiar ecosystem)
- Swagger API documentation
- API versioning support
NestJS Fastify Server
Production-ready NestJS HTTP server with Fastify adapter
- Fastify adapter (higher performance)
- Swagger API documentation
- API versioning support
WebSocket Gateway
Real-time WebSocket gateway with Socket.io
- Socket.io integration
- Room management
- Broadcast functionality
GraphQL Module
Apollo GraphQL server with code-first approach
- Apollo Server integration
- Code-first schema generation
- Custom error formatting
Microservice Bootstrap
Configurable microservice with multiple transports
- Type-safe transport configuration
- TCP/Redis/RabbitMQ/NATS support
- Class-based MicroserviceServer setup
gRPC Server
gRPC server configuration with proto loading
- Proto file loading
- gRPC service options
- Example controller patterns
Prisma Service
Prisma client as injectable NestJS service
- Module lifecycle integration
- Health check method
- Transaction helper with retry
Drizzle Service
Drizzle ORM service with PostgreSQL
- PostgreSQL connection pool
- Transaction helper
- Raw SQL execution
Redis Service
Redis client with caching and pub/sub
- Cache-aside pattern
- Pub/Sub support
- Hash and list operations
Kafka Service
Apache Kafka client for event-driven architecture
- Producer with compression
- Consumer subscriptions
- Topic management
How to Use
Install any snippet using the Hanma CLI:
npx hanma add --framework nest
For example, to install the first snippet:
npx hanma add nest-express-server --framework nest