Express middleware providing health and info endpoints for Cloud Foundry Apps Manager, inspired by Spring Boot Actuator. Current stable version is 1.8.0 (released May 2021), with maintenance-level updates addressing dependency vulnerabilities. Key differentiators: integrates natively with Cloud Foundry's Apps Manager UI, restricts endpoints to authenticated/authorized users, and works with the companion CLI to generate build info files. Compatible with Node 6+ (legacy engine requirement). Provides only health and info endpoints (no metrics, environment, or other Spring Boot actuator endpoints). Last release was over 3 years ago; no active development expected.
npm install express-cloudfoundry-actuator-middlewareNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up an Express app with the actuator middleware, enabling health and info endpoints for Cloud Foundry.
Place app.use(actuator()) before route definitions.
Use actuator({ health: true, info: true }) to explicitly enable endpoints.Run the CLI tool before deployment: npx cloudfoundry-actuator-cli build-info
Use Node 16 or lower, or consider using the '--openssl-legacy-provider' flag if needed.
Use const actuator = require('express-cloudfoundry-actuator-middleware'); then call app.use(actuator());Run npm install express-cloudfoundry-actuator-middleware --save in your project root.
Ensure you use app.use(actuator()) and not app.get('/', actuator()).