Official TypeScript/JavaScript client for KubeMQ (v3.0.1), a Kubernetes-native message broker. Provides gRPC-based access to all messaging patterns: Events (fire-and-forget), Events Store (persisted pub/sub), Queues (guaranteed delivery with ACK), Commands (request/reply), and Queries (request/reply with response). TypeScript-first with full type declarations, auto-retry, structured error handling, and built-in OpenTelemetry integration. Requires Node.js >=20.11.0 and a running KubeMQ server. Active development with monthly releases.
npm install kubemq-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a KubeMQ client, subscribing to events, and publishing a fire-and-forget event message.
Use await KubeMQClient.create({...}) instead of new KubeMQClient({...})Use async/await or .then() for all send/subscribe/receive calls
Import directly from 'kubemq-js'
Upgrade Node.js to version 20.11.0 or later
Pass string directly or manually encode to Uint8Array for binary data
Ensure KubeMQ is running at the configured address (default localhost:50000). Check KUBEMQ_ADDRESS env var.
Use await KubeMQClient.create({...}) instead of new KubeMQClient({...})Use import syntax, or set "type": "module" in package.json, or use dynamic import()
Run npm install kubemq-js and ensure tsconfig.json includes 'node' module resolution