npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pauldeng/node-red-contrib-bullmq

v2.0.0

Published

BullMQ job queue nodes for Node-RED, backed by Redis or PostgreSQL

Readme

@pauldeng/node-red-contrib-bullmq

npm version npm downloads CI OpenSSF Scorecard License: MIT

Node-RED nodes for BullMQ job queues, backed by Redis or PostgreSQL.

This package targets BullMQ 6.3.1 and Node-RED 5. Version 2 is a breaking release: it uses BullMQ v6 node names, commands, and Job Scheduler inputs only.

Installation

To install - either use the manage palette option in the editor, or change to your Node-RED user directory.

cd ~/.node-red
npm install @pauldeng/node-red-contrib-bullmq

Repository: https://github.com/pauldeng/node-red-contrib-bullmq

Requirements

  • Node-RED 5.x
  • Node.js 22.9+
  • BullMQ 6.3.1
  • One backend per queue config: Redis, or PostgreSQL 13+ (14+ recommended) with the optional peer dependency pg installed

For the Redis backend:

  • Redis with maxmemory-policy=noeviction; evicting arbitrary BullMQ keys can corrupt queue behavior
  • Durable Redis persistence; for self-managed Redis, BullMQ recommends Append Only File (AOF) persistence

BullMQ stores job data in clear text, in either backend. Do not put secrets or other sensitive data in a job payload unless the sensitive fields are encrypted before the job is added.

Bull v4 Redis data is not automatically migrated. Drain, retire, or otherwise handle old Bull queues before upgrading the runtime dependency. Upgrading from a BullMQ v5 release of this package has its own steps; see docs/MIGRATION.md.

Nodes

  • bullmq-queue-server: shared BullMQ queue and backend connection config, for Redis or PostgreSQL.
  • bullmq cmd: message-driven producer and queue administration commands.
  • bullmq run: BullMQ Worker that emits jobs into a Node-RED flow and caps each job at 100 processing starts by default.
  • bullmq job: manual acknowledgement and active-job actions for manual bullmq run flows.
  • bullmq events: QueueEvents source node for global BullMQ events.
  • bullmq flow: FlowProducer node for parent/child job trees.

Backends

Each queue config node picks one backend. TLS serves both, with CA, client certificate, client key, server name, and certificate verification.

Redis

Supported deployment modes:

  • Standalone Redis
  • Redis Cluster
  • AWS MemoryDB, configured as Redis Cluster with TLS
  • Redis Sentinel

Authentication can use Redis ACL username/password. Cluster and MemoryDB prefixes must contain a hash tag, such as {bull}, to keep queue keys in one Redis Cluster slot for atomic operations.

Independent queues may use different hash tags to spread load. Prefixes used in one bullmq flow tree or bulk flow batch must contain the same hash tag; each worker must use the exact prefix assigned to its queue in that flow.

PostgreSQL

Host, port, database, username, password, plus a schema (bullmq by default), a connection pool size, and a migrations switch that creates and updates BullMQ's schema on connect. Install pg first (npm install pg); it is an optional peer dependency, and a missing install is reported once per config node on first use rather than at load.

There is no Cluster or Sentinel topology, and no key prefix — both are Redis concepts. Budget the server's max_connections across every pool, and note that PostgreSQL event rows are never trimmed. Full details, including what PostgreSQL does not have, are in docs/CONNECTIONS.md.

Job Schedulers

Use the native BullMQ v6 Job Scheduler shape:

msg.cmd = "upsertJobScheduler";
msg.schedulerId = "gateway-FCC23DFFFE0AA2A8";
msg.repeat = {
  pattern: "30 9,19,29,39,49,59 * * * *",
  tz: "UTC",
};
msg.template = {
  name: "default",
  data: { payload: "gateway-FCC23DFFFE0AA2A8" },
};
return msg;

Lookup and removal commands require the exact id in msg.schedulerId.

Commands

bullmq cmd reads msg.cmd; the default command is add.

Core supported command families include:

  • add jobs, add bulk jobs, get jobs, retry jobs, remove jobs
  • delayed jobs and delay promotion
  • priorities and priority counts
  • deduplication keys
  • BullMQ v6 Job Scheduler commands
  • pause, resume, drain, clean, and stopAndRemoveAllJobs
  • global concurrency and rate limits
  • job logs and Prometheus metrics export

See docs/COMMANDS.md.

Unsupported

| BullMQ feature | Reason | | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | Sandboxed processors | They bypass the Node-RED flow and downstream acknowledgement model. | | Custom JavaScript backoff strategies | Executable strategy code is not a safe Node-RED message contract. Use built-in fixed/exponential backoff. | | BullMQ Pro features | Pro groups, batches, and observables are not part of the open-source BullMQ dependency. | | Built-in dashboard | Use a dedicated queue UI; this package only provides Node-RED nodes. | | Arbitrary method proxying | Unrestricted method dispatch is hard to validate, document, secure, and test. | | Dynamic child creation | Declare dependencies up front with bullmq flow; processor-owned moveToWaitingChildren wiring is not exposed. | | Automatic Bull v4 Redis data migration | Bull and BullMQ do not provide a supported queue-data migration contract. |

Examples

Import any of these flows into Node-RED:

The examples do not contain secrets.

Development

npm install
npm test

Use docs/TESTING.md for Docker, Playwright, and MemoryDB test plans. Use docs/CHANGE_WORKFLOW.md before changing behavior.

More Docs