A document-based messaging queue for MongoDB (v4.7+), PostgreSQL (v8.7+), and other databases via a custom driver interface. Current stable version is 0.5.7. Released as an alternative to BullMQ and Agenda, DocMQ prioritizes database abstraction, timezone-aware scheduling, and in-memory development mode over raw performance. It supports concurrency, job repetition, scheduling, persistence, and queue-level hooks. Suitable when persistence and scheduling across timezones are critical, but not for high-throughput FIFO scenarios. Releases are infrequent; the package ships TypeScript types and is ESM-only.
npm install docmqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a DocMQ instance with in-memory driver, registers a handler, schedules a delayed job, and waits for the result.
Ensure your project is configured for ESM (type: 'module' in package.json) or use dynamic import() if necessary.
Install mongodb@^4.7.0 as a dependency.
Install pg@^8.7.3 as a dependency.
Switch to MongoDriver or PostgresDriver for production.
Use import { DocMQ } from 'docmq'.Use import syntax or switch to ESM mode in your project.
Use import { DocMQ } from 'docmq' instead of import DocMQ from 'docmq'.Install mongodb@^4.7.0.