Theta MN Queue is a TypeScript-based queue system that supports multiple data sources (files, Redis, MongoDB via Mongoose) for persistence. Version 3.0.9 is the latest stable release, but the library is in active development and the API may change. It provides Queue and Document classes for enqueue/dequeue operations with commit-based persistence. Compared to alternatives like Bull or Bee Queue, it offers simpler setup with multi-source support but lacks advanced features like rate limiting or delayed jobs. The package ships TypeScript types and is ESM-only.
npm install theta-mn-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: creating a queue, creating a document, enqueuing it, and committing persistence.
Pin to exact version and monitor changelog before upgrading.
Use import statements instead of require().
Set THETA_QUEUE_DATA_SOURCE (e.g., 'redis', 'mongo') and corresponding connection details before queue operations.
Always await queue.getNextIndex() when assigning an id.
Call await queue.commit() after all operations.
Use: const index = await queue.getNextIndex();
Use import { Queue } from 'theta-mn-queue' instead of require().Ensure you import Queue correctly: import { Queue } from 'theta-mn-queue'.No dependency data recorded yet.