View as Json

Health Check Endpoint

Health check endpoints for monitoring the health and availability of node.js applications.

Installation Guide

npx servercn-cli@latest add health-check

Usage

Send a GET request to the health check endpoint: http://localhost:3000/api/health

Response:

{
  "success": true,
  "statusCode": 200,
  "status": "healthy",
  "service": "nextjs-api",
  "version": "0.1.0",
  "message": "Service is up and running",
  "timestamp": "2026-08-06T11:03:02.549Z"
}

File & Folder Structure

Loading files...

Installation

npx servercn-cli@latest add health-check

Contributed by