PostgreSQL-native job queue for Node.js 18+, featuring transactional enqueue, familiar producer/worker API, and no external broker. Current stable version 1.0.3. Releases are ad-hoc via npm. Key differentiators: atomic enqueue within database transactions via Queue.inTransaction, full SQL visibility into queue state, and one less datastore to manage vs Redis-based queues like BullMQ.
npm install elephantmqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates migration, job enqueue, and basic worker processing with Pool connection.
Upgrade Node to v18 or later
Upgrade PostgreSQL to v14+
Use import syntax or dynamic import()
In production, run migrate separately and set skipMigrations: true in Queue/Worker options
Install 'pg' alongside elephantmq
Set concurrency option to desired parallelism
npm install pg
Use import syntax or dynamic import()
Ensure PostgreSQL is running and DATABASE_URL is correct