npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zola_do/health

v0.2.18

Published

NestJS health checks (Terminus) aligned with @zola_do TypeORM, RabbitMQ, and storage env patterns

Readme

@zola_do/health

NestJS readiness/liveness helpers built on @nestjs/terminus, aligned with @zola_do env conventions (TypeORM, RabbitMQ audit, MinIO, Seaweed/S3).

Install

pnpm add @zola_do/health @nestjs/terminus

Optional peers (enable related checks only when installed and configured):

  • @nestjs/typeorm, typeorm — database ping
  • @nestjs/microservices, amqplib — RabbitMQ ping when RMQ_URL is set

Usage

import { ZolaHealthModule } from '@zola_do/health';

@Module({
  imports: [
    TypeOrmModule.forRoot(/* ... */),
    ZolaHealthModule.forRoot({
      path: 'health',
      typeorm: true,
      rabbitmq: true,
      minio: true,
      seaweed: true,
      http: [{ name: 'docs', url: 'https://example.com/status' }],
    }),
  ],
})
export class AppModule {}
  • path: controller route (default healthGET /health).
  • typeorm: true (key database), a custom string key, or false to skip.
  • rabbitmq: uses RMQ_URL and Terminus microservice ping (requires optional peers above).
  • minio: GET http(s)://MINIO_ENDPOINT:MINIO_PORT/minio/health/live from MINIO_* env vars.
  • seaweed: GET AWS_ENDPOINT (prefixes https:// if missing); treats HTTP ≥ 500 as down.
  • http: extra { name, url } GET checks via fetch.

If @nestjs/terminus is not installed, the module registers a minimal GET /health JSON body (mode: 'minimal') so imports stay safe.

Split liveness and readiness (Kubernetes)

ZolaHealthModule.forRoot({
  splitLivenessReadiness: true,
  livenessPath: 'live',   // default
  readinessPath: 'ready', // default
  typeorm: true,
  rabbitmq: true,
})

| Probe | Path (default) | Checks | | ----- | -------------- | ------ | | Liveness | GET /live | Process up (heap memory) | | Readiness | GET /ready | Full dependency indicators (typeorm, rabbitmq, etc.) |

# kubernetes deployment excerpt
livenessProbe:
  httpGet:
    path: /live
    port: 3000
readinessProbe:
  httpGet:
    path: /ready
    port: 3000

When splitLivenessReadiness is false (default), a single GET /health runs all configured checks.

Global JWT guard

Use @ZolaHealthPublic() on custom health routes, or rely on the built-in controller: it sets the same allowAnonymous metadata key as @AllowAnonymous() from @zola_do/authorization.

Environment variables

| Check | Variables | | -------- | ---------------------------------------------------- | | TypeORM | Same as your app / @zola_do/typeorm (DATABASE_*) | | RabbitMQ | RMQ_URL | | MinIO | MINIO_ENDPOINT, MINIO_PORT, MINIO_USESSL | | Seaweed | AWS_ENDPOINT |

Optional OpenTelemetry trace IDs

import { getActiveTraceIds } from '@zola_do/health/optional/otel';

Requires optional peer @opentelemetry/api. Returns active traceId / spanId when an OTel SDK is installed in the app. See docs/OBSERVABILITY.md.

License

ISC

Diagnostics Roadmap

Diagnostics will be added inside this existing package rather than as a separate package. The target is an opt-in endpoint that reports package versions, optional peer availability, and redacted config status for support/debugging.

Enable it with:

ZolaHealthModule.forRoot({
  path: 'health',
  diagnostics: true,
});

This registers GET /health/diagnostics and returns redacted status only: enabled checks, optional peer availability, package versions when discoverable, and config presence status. It never returns secret values.

See docs/DIAGNOSTICS.md for the response shape and safety rules.