@radzor/health-check
Health check endpoint with dependency monitoring. Register dependencies (databases, APIs, caches), run periodic checks, and expose a unified health report. Zero dependencies.
v0.1.0typescriptpythonServerhealthmonitoringuptimedependencyreadinesslivenessby Radzor
Install
View source on GitHub →$npx radzor@latest add health-check
⚠ Constraints: Each dependency check is wrapped in a timeout — a check that takes longer than `timeout` ms is considered failed. The checker function must return a Promise<boolean>. The auto-check interval timer is unref'd and won't keep the process alive.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| intervalMs | number | 30000 | Interval in ms between automatic health checks. |
| timeout | number | 5000 | Timeout in ms for each individual dependency check. |
| historySize | number | 100 | Number of historical check results to retain per dependency. |
intervalMsnumber
Interval in ms between automatic health checks.
default: 30000
timeoutnumber
Timeout in ms for each individual dependency check.
default: 5000
historySizenumber