@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:
minio >= 7.1.0 or >= 8.0.0.
Package entrypoints
@healthzkit/minio—minioAdapterand option types.@healthzkit/minio/minio—minioAdapteronly.
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
Passconfig as ClientOptions. The adapter lazily imports minio, creates a shared Client, and reuses it across checks.
Existing client
Passclient as an existing Client. The adapter reuses that instance across checks.
Check metadata
Successful checks include latency and any custommetadata hook output:
Wiring into createHealthKit
Treat the factory return value as adapter on a check (same as a hand-written { check() { ... } } object):
schedule on the check if you want cached readiness results instead of calling MinIO on every probe (see Scheduling).