Atlas Queue is a small library for running background jobs with retries, delays and clear failure reports.
What it does
You describe work as a named job with a payload. Atlas Queue stores it, hands it to a worker, retries it on failure and tells you when it has finally given up. There is no server to run: queues live in a single file or in any store that implements the adapter interface.
Why use it
It has no runtime dependencies and installs in under a second.
Every job has a visible state: waiting, active, done or failed.
Retries use exponential backoff by default, with jitter.
Who it is for
Teams that need dependable background work without adopting a full message broker. If you send fewer than a few thousand jobs a minute, this is probably enough.
Before you beginThe examples assume Node 20 or newer and an ES module project.
Getting started
Installation
Add the package and choose where queues are stored.
Requirements
Node 20 or newer. The default file store needs write access to a single directory.
Install the package
SHELL
npm install atlas-queue
Choose a store
The file store is the easiest way to begin. Pass a directory and Atlas Queue creates it on first use.