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)
@goodandco/nest-health
Health package based for NestJS app based on @nestjs/terminus package
@godaddy/terminus
[![Join Slack](https://img.shields.io/badge/Join%20us%20on-Slack-e01563.svg)](https://godaddy-oss.slack.com/) [![Build Status](https://github.com/godaddy/terminus/actions/workflows/cicd.yml/badge.svg)](https://github.com/godaddy/terminus/actions/workflows
@goopen/nestjs-ioredis-provider
Tiny NestJS provider for ioredis
Terminus module for Nest framework (node.js) 🤖
npm install @nestjs/terminus
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
679 Stars
3,537 Commits
99 Forks
8 Watching
34 Branches
43 Contributors
Updated on 24 Nov 2024
Minified
Minified + Gzipped
TypeScript (99.51%)
JavaScript (0.4%)
Shell (0.1%)
Cumulative downloads
Total Downloads
Last day
2.6%
167,607
Compared to previous day
Last week
3.7%
842,489
Compared to previous week
Last month
15.3%
3,469,777
Compared to previous month
Last year
27.1%
33,830,208
Compared to previous year
2
17
67
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:
1npm install 2 3# To rebuild the project, run 4npm run build
For unit testing run the following command:
1npm run test
For e2e testing, make sure you have docker installed
1docker-compose up -d 2npm run 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
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/21 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
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
Reason
26 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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