@nexusts/queue
v0.9.7
Published
Background jobs (BullMQ / Cloudflare / memory)
Readme
@nexusts/queue
NexusTS — Bun-native fullstack framework
Description
Background jobs (BullMQ / Cloudflare / memory).
Three backends: BullMQ (Redis-backed, multi-pod), Cloudflare Queues (edge), in-memory (single-process dev). @OnQueueReady('worker') decorator wires handler methods to queue names.
Install
This module is part of the NexusTS monorepo. Each module is published as its own npm package under the @nexusts/ scope.
Most apps start with just the core:
bun add @nexusts/coreThen add this module only if you need it:
bun add @nexusts/queuePeer dependencies
bun add bullmq ioredisbullmq^5.79.0 — Required for the BullMQ backend. Skip if you only use the in-memory or Cloudflare backends.ioredis^5.11.1 — Required for the BullMQ backend's Redis connection. Skip if you only use the in-memory or Cloudflare backends.
Without them the module loads but its public methods throw a clear error pointing to this install command on first call.
Usage
import { /* public API */ } from "@nexusts/queue";See the user guide and the example app for a working demo.
License
MIT — see the root LICENSE.
