Skip to main content
The @healthzkit/minio package provides a HealthAdapter for the official minio JavaScript client. Each check calls listBuckets() and returns ok with metadata.latencyMs on success; transport or API errors return fail with the caught error. Install the adapter package and the peer client:
Peer: minio >= 7.1.0 or >= 8.0.0.

Package entrypoints

  • @healthzkit/minio — minioAdapter and option types.
  • @healthzkit/minio/minio — minioAdapter only.
Both resolve to the same factory. Use the subpath when you want a dedicated entry for bundlers.

Shared options

BaseMinioOptions: Pass either config or an existing client (not both).

minioAdapter

Each check runs client.listBuckets() and records round-trip latency in metadata.latencyMs.

Config

Pass config as ClientOptions. The adapter lazily imports minio, creates a shared Client, and reuses it across checks.

Existing client

Pass client as an existing Client. The adapter reuses that instance across checks.

Check metadata

Successful checks include latency and any custom metadata hook output:

Wiring into createHealthKit

Treat the factory return value as adapter on a check (same as a hand-written { check() { ... } } object):
Combine with schedule on the check if you want cached readiness results instead of calling MinIO on every probe (see Scheduling).