A health check framework for microservices built on the exframe stack. Version 1.9.0 supports liveness and readiness probes for Kubernetes, with custom health checks, timeout-based and user-controlled promotion of failing checks from readiness to liveness. It integrates automatically with exframe-service and exframe-rest to expose GET health endpoints. Requires Node >=14 and peer dependency exframe-logger 3.x. Differentiators include built-in promotable check types and tight exframe ecosystem integration.
npm install exframe-healthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Adds a custom MongoDB health check using async function, then retrieves and removes it.
Always wrap reject in an object: Promise.reject({ status: 503, message: '...' })Remove manual calls to health.check() and ensure exframe-rest is configured to auto-add routes.
If you relied on old default, explicitly set { checkType: 'Liveness' } when adding checks.Use `import health from 'exframe-health'` (default import) instead of `import { health }`.Ensure the promise always resolves or rejects with an object containing status and message.