Gathering detailed insights and metrics for @nestjs/terminus
Gathering detailed insights and metrics for @nestjs/terminus
Gathering detailed insights and metrics for @nestjs/terminus
Gathering detailed insights and metrics for @nestjs/terminus
@nestjs-mod/terminus
Terminus integration provides readiness/liveness health checks for NestJS-mod (Wrapper for https://www.npmjs.com/package/@nestjs/terminus)
@anchan828/nest-bull-terminus
The terminus of [Bull](https://github.com/OptimalBits/bull) module for [Nest](https://github.com/nestjs/nest).
@anchan828/nest-bullmq-terminus
The terminus of [BullMQ](https://github.com/taskforcesh/bullmq) module for [Nest](https://github.com/nestjs/nest).
@goodandco/nest-health
Health package based for NestJS app based on @nestjs/terminus package
Terminus module for Nest framework (node.js) 🤖
npm install @nestjs/terminus
Typescript
Module System
Node Version
NPM Version
67.9
Supply Chain
82.9
Quality
80.1
Maintenance
100
Vulnerability
96.7
License
TypeScript (99.88%)
JavaScript (0.12%)
Total Downloads
100,654,634
Last Day
30,177
Last Week
966,036
Last Month
3,840,095
Last Year
40,271,606
MIT License
702 Stars
3,674 Commits
103 Forks
7 Watchers
25 Branches
43 Contributors
Updated on May 05, 2025
Minified
Minified + Gzipped
Latest Version
11.0.0
Package Id
@nestjs/terminus@11.0.0
Unpacked Size
288.81 kB
Size
63.60 kB
File Count
177
NPM Version
9.9.3
Node Version
20.18.2
Published on
Jan 25, 2025
Cumulative downloads
Total Downloads
Last Day
11.2%
30,177
Compared to previous day
Last Week
12.9%
966,036
Compared to previous week
Last Month
-9%
3,840,095
Compared to previous month
Last Year
35.2%
40,271,606
Compared to previous year
2
17
66
A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
This module contains integrated healthchecks for Nest.
@nestjs/terminus
integrates with a lot of cool technologies, such as typeorm
, grpc
, mongodb
, and many more!
In case you have missed a dependency, @nestjs/terminus
will throw an error and prompt you to install the required dependency.
So you will only install what is actually required!
1 2npm install --save @nestjs/terminus 3
TypeOrmModule
), in case you want to do Database Health Checks.1// app.module.ts 2 3@Module({ 4 controllers: [HealthController], 5 imports:[ 6 // Make sure TypeOrmModule is available in the module context 7 TypeOrmModule.forRoot({ ... }), 8 TerminusModule 9 ], 10}) 11export class HealthModule { } 12
HealthController
which executes your Health Check.1// health.controller.ts 2 3@Controller('health') 4export class HealthController { 5 constructor( 6 private health: HealthCheckService, 7 private db: TypeOrmHealthIndicator, 8 ) {} 9 10 @Get() 11 @HealthCheck() 12 readiness() { 13 return this.health.check([ 14 async () => this.db.pingCheck('database', { timeout: 300 }), 15 ]); 16 } 17}
If everything is set up correctly, you can access the healthcheck on http://localhost:3000/health
.
1{ 2 "status": "ok", 3 "info": { 4 "database": { 5 "status": "up" 6 } 7 }, 8 "details": { 9 "database": { 10 "status": "up" 11 } 12 } 13}
For more information, see docs. You can find more samples in the samples/ folder of this repository.
In order to get started, first read through our Contributing guidelines.
Setup the development environment by following these instructions:
1pnpm i 2pnpm dev
In order to test the library against a sample, simply go to a sample and run
pnpm start:dev
1cd sample/000-dogs-app 2pnpm start:dev
[!NOTE] Once the library is rebuilt, the
pnpm start:dev
within a sample needs to be restarted in order to pick up the changes.
For unit testing run the following command:
1pnpm test
For e2e testing, a Docker Compose stack is required. Make sure Docker is installed on your machine and run the following command.
1docker compose up -d 2pnpm test:e2e
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Nest is MIT licensed.
No vulnerabilities found.
Reason
30 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
8 existing vulnerabilities detected
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More