Bang-queue is a simple FIFO job queue for Node.js backed by MongoDB. It provides basic features like job creation with delay and timeout, event-driven job processing, and explicit job completion/deletion. The current stable version is 1.3.29, released with low cadence. It distinguishes itself by minimal setup and reliance solely on MongoDB, with no external dependencies beyond the MongoDB driver. Suitable for small-scale workloads where a full-featured queue like Bull or Kue is overkill.
npm install bang-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, enqueues a job, listens for the job type, processes it, and deletes it from the queue.
Always call setCompleteJob(jobId, { delete: true }) after successful processing.Test delay behavior in your environment or avoid using delay.
Consider migrating to a more active queue library like Bull or Bee-Queue.
Use a single queue name per logical queue instance.
Use `import { Bang } from 'bang-queue'` or `const { Bang } = require('bang-queue')`Ensure URI includes auth source: `mongodb://user:pass@host:port/db?authSource=admin`
Register listeners before creating jobs; increase concurrency parameter in `.on('type', concurrency, ...)`Call `queue.setCompleteJob(job._id, { delete: true })` after successful processing.