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

node-red-contrib-qrusty

v0.20.9

Published

Node-RED nodes for the Qrusty priority queue server

Readme

node-red-contrib-qrusty

Node-RED custom nodes for the Qrusty priority queue server.

Wraps the qrusty-client Node.js client in fully-typed, HTML-templated Node-RED nodes so you can drag-and-drop queue operations into your flows instead of hand-rolling function nodes.

Install

From the Node-RED palette manager, search for node-red-contrib-qrusty and install. Or from the command line in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-qrusty

Requires Node.js 18 or newer and Node-RED 3.0 or newer.

Nodes

One config node plus 17 action nodes. All action nodes reference a shared qrusty-server config node so you only enter the host/port once per environment.

Config node

| Node | Purpose | | --------------- | ----------------------------------------------------------------------------------------------- | | qrusty-server | Holds host, port, and useHttps for a Qrusty server. Computes baseUrl = http(s)://host:port. |

Message operations

| Node | HTTP endpoint | Purpose | | ------------------- | ------------------------- | -------------------------------------- | | qrusty-publish | POST /publish | Publish msg.payload to a queue. | | qrusty-consume | POST /consume/:queue | Pop one message (or null). | | qrusty-ack | POST /ack/:queue/:id | Acknowledge a message. | | qrusty-nack | POST /nack/:queue/:id | Negatively acknowledge (retry or DLQ). | | qrusty-ack-batch | POST /ack-batch/:queue | Ack many ids in one request. | | qrusty-nack-batch | POST /nack-batch/:queue | Nack many ids in one request. |

Queue management

| Node | HTTP endpoint | Purpose | | --------------------- | ----------------------------- | ------------------------------------------------ | | qrusty-create-queue | POST /create-queue | Create a queue with ordering / duplicate policy. | | qrusty-update-queue | POST /update-queue | Rename or toggle duplicate protection. | | qrusty-delete-queue | DELETE /delete-queue/:queue | Delete a queue and its messages. | | qrusty-purge-queue | POST /purge-queue/:queue | Empty a queue without deleting it. | | qrusty-purge-all | POST /purge-all | Empty every queue. | | qrusty-delete-all | POST /delete-all | Delete every queue. |

Observability

| Node | HTTP endpoint | Purpose | | ---------------------- | ---------------------------- | -------------------------------- | | qrusty-stats | GET /stats | Aggregate stats for every queue. | | qrusty-queue-stats | GET /queue-stats/:queue | Detailed stats for one queue. | | qrusty-queue-metrics | GET /queues/:queue/metrics | Per-second time-series metrics. | | qrusty-list-queues | GET /queues | Names of all existing queues. | | qrusty-health | GET /health | Server health check. |

Config-vs-msg fallback

Every action node supports two ways of supplying its parameters:

  1. In the editor panel — values set on the node itself (e.g. a hard-coded queue field) take precedence.
  2. At runtime via the incoming msg — leave the field blank on the node and supply msg.queue, msg.priority, etc.

This lets you build generic flows (msg.queue decided upstream) or explicit flows (queue pinned in the editor), or a mix of both.

Error handling

  • A green status dot with "ok" means the HTTP call succeeded.
  • A blue dot with "requesting" shows the call is in flight.
  • A red ring with "HTTP 4xx" / "HTTP 5xx" / "no server config" means the node failed; the error is forwarded via done(err) so a downstream catch node will pick it up.

Example flow

[
  {
    "id": "srv",
    "type": "qrusty-server",
    "name": "dev",
    "host": "localhost",
    "port": "6784",
    "useHttps": false
  },
  {
    "id": "inject",
    "type": "inject",
    "payload": "hello from node-red",
    "payloadType": "str",
    "wires": [["pub"]]
  },
  {
    "id": "pub",
    "type": "qrusty-publish",
    "name": "",
    "server": "srv",
    "queue": "orders",
    "priority": "10",
    "wires": [[]]
  }
]

Development

cd integrations/node-red
npm install
npm test            # runs mocha against node-red-node-test-helper

The test suite in test/ uses the official node-red-node-test-helper to load every node into a real Node-RED runtime and exercise it end-to-end against a mocked HTTP server.

Versioning

This package tracks the Qrusty server version. When the server bumps (e.g. 0.19.x), this package is bumped in lockstep and its qrusty-client dependency is pinned to the matching major.minor.