Overview of @catbee/utils/server features
The @catbee/utils/server package is an enterprise-grade Express server builder designed for secure, reliable, and observable APIs. Key built-in capabilities include:
- Security: CORS, Helmet security headers, rate limiting, request timeouts, and body size limits.
- Monitoring: Request logging, Prometheus metrics (via prom-client), custom health checks, and request tracing (Request ID).
- Performance: Gzip/deflate compression and static file serving with cache control.
- Reliability: Graceful shutdown (signal handling/connection draining) and global error/404 handlers.
- Developer Experience: OpenAPI documentation via @scalar/express-api-reference, microservice mode (service name/version headers), and a fluent configuration builder.