Server Health Endpoint
JSON →The `server-health` library provides a standardized `/health` HTTP endpoint for various Node.js web frameworks, including Express, Fastify, Restify, Hapi, and vanilla HTTP servers. It offers vital service information such as overall status, uptime, package metadata (name, description, version, repository), environment details (nodeEnv, nodeVersion, pid, cwd), git commit information, and allows for pluggable custom connection checks (e.g., database, message queues). The current stable version is `7.0.0`, which primarily targets Node.js `v20.0.0` or higher, having dropped support for Node.js v18 and specific Restify versions on newer Node environments. The library focuses on providing a detailed, extensible health check solution without imposing a specific framework, making it highly adaptable. Key differentiators include server-side response filtering for specific data points and a comprehensive set of diagnostic data provided by default.
Traffic · last 30 days ↓25% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇮🇹 Italy