cf-queue is a lightweight queue wrapper for NATS.io, facilitating a request-response pattern between clients and workers. The latest version is 0.0.21 (as of early 2023). Released via npm, the package is actively maintained by Codefresh. It simplifies building distributed job queues with progress reporting, using NATS as the message broker. Key differentiators include a simple API for creating queues, built-in progress support, and integration with Docker for easy deployment. However, it has low adoption and minimal documentation beyond the README.
npm install cf-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a queue, pushes a request as a client, and processes jobs as a worker.
Use CommonJS require() instead of ESM import.
Test progress behavior thoroughly before using in production.
Monitor the repository or consider alternatives like Bull or Bee-Queue.
npm install nats
Ensure your NATS server and client versions are compatible, and that progress is enabled on the queue.