Simple RabbitMQ wrapper for Node.js exposing queue functionality with connection management, routing key subscription, and configurable concurrency and retry. The current stable version is 1.4.0, with low release cadence. It provides a high-level abstraction over the amqplib library, supporting promises and automatic reconnection. Differentiators include a simple API for subscribing with routing patterns and built-in concurrency control, though it lacks modern ESM exports and TypeScript definitions.
npm install loke-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to RabbitMQ, creates a queue with concurrency limit, subscribes to a routing pattern, publishes a message, and stops after a timeout.
Switch to amqplib or a maintained wrapper.
Ensure RabbitMQ is running before creating a Connection.
Call connection.close() or connection.end() to fully clean up.
Create the queue manually in RabbitMQ or ensure 'assert' option is set.
Start RabbitMQ or verify the AMQP URL.
Ensure you obtained the queue via connection.queue() and not connection.publish().