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-worq

v0.2.0

Published

Mountable BullMQ job-queue dashboard for Node.js (Fastify and Express)

Readme

node-worq

npm version npm downloads License

Mountable BullMQ job-queue dashboard for Node.js — a Sidekiq-style UI you embed in your Fastify or Express app. No separate process: one Redis connection, your queue names, live stats in the browser.

Features

  • Dashboard UI — queues, workers, scheduled & failed jobs, job detail, dark mode
  • Live updates — WebSocket with SSE fallback
  • REST API — same routes whether you use the UI or call it programmatically
  • Write actions (optional) — retry, delete, run scheduled jobs now, bulk ops
  • BullMQ adapter — reads the same Redis keys your workers use

Requirements

  • Node 20+
  • Redis (same instance as BullMQ)
  • Fastify 5 or Express 4/5 host app
  • BullMQ workers on the queues you configure

Install

npm install node-worq

Quick start

import Fastify from "fastify";
import { createDashboard, BullMQAdapter } from "node-worq";

const app = Fastify();

const adapter = new BullMQAdapter({
  connection: {
    host: process.env.REDIS_HOST ?? "127.0.0.1",
    port: Number(process.env.REDIS_PORT) || 6379,
    password: process.env.REDIS_PASSWORD, // omit if not used
  },
  queueNames: ["email", "reports"], // must match your BullMQ queue names
});

await app.register(createDashboard, {
  prefix: "/worq",
  adapter,
  title: "Worq",
  allowWrite: false, // set true to enable retry / delete / run-now in the UI
  basePath: "/worq", // must match prefix
});

await app.listen({ port: 3000 });

Open http://localhost:3000/worq.

Express

Install the peer dependency:

npm install node-worq express
import http from "node:http";
import express from "express";
import { createWorqRouter, BullMQAdapter } from "node-worq";

const adapter = new BullMQAdapter({
  connection: { host: "127.0.0.1", port: 6379 },
  queueNames: ["email"],
});

const { router, attachWebSocket } = createWorqRouter({
  adapter,
  basePath: "/worq",
  allowWrite: false,
});

const app = express();
app.use("/worq", router);

const server = http.createServer(app);
attachWebSocket(server); // required for live stat cards

server.listen(3000);

basePath must match the mount path (/worq). Call attachWebSocket(server) with the same HTTP server so /worq/ws/stats works.

Redis URL or TLS

// URL (password in the string)
connection: process.env.REDIS_URL!, // redis://:password@host:6379/0

// Or full ioredis options — username for Redis ACL, tls for managed Redis
connection: {
  host: "redis.example.com",
  port: 6379,
  password: process.env.REDIS_PASSWORD,
  username: process.env.REDIS_USERNAME,
  tls: {},
},

Use the same Redis settings as your BullMQ workers.

Configuration

| Option | Description | |--------|-------------| | prefix / mount path | URL path where the dashboard is mounted (e.g. /worq) | | basePath | Same as mount path — used for links, static assets, WebSocket, and HTMX | | adapter | BullMQAdapter instance | | title | Header title in the UI | | allowWrite | false by default; enable for retry/delete/enqueue actions |

REST API (programmatic)

import { createWorqClient } from "node-worq";

const client = createWorqClient({
  baseUrl: "https://api.example.com/worq",
});

const queues = await client.listQueues();
const stats = await client.getStats();
await client.retryJob("job-id");

Main routes: /api/queues, /api/jobs/:id, /api/failed, /api/scheduled, /api/stats, /api/bulk/retry, /ws/stats, /api/sse/stats.

Integration

| Framework | Export | Mount | |-----------|--------|-------| | Fastify 5 | createDashboard | app.register(createDashboard, { prefix, basePath, adapter, ... }) | | Express 4/5 | createWorqRouter | app.use("/worq", router) + attachWebSocket(server) |

Current limitations

  • BullMQ only — no Celery/RQ adapters
  • Search, metrics, cron — API and UI exist; BullMQ adapter returns minimal/empty data for now
  • Worker health — per-queue status is a best-effort placeholder (not full BullMQ worker registry)
  • Auth, audit, alerts — not included yet

Development (this repo)

git clone https://github.com/Harshit-1874/node-worq.git
cd node-worq
npm install
npm run dev          # Fastify — http://127.0.0.1:3333/worq
npm run dev:express  # Express — http://127.0.0.1:3334/worq
npm run seed         # sample jobs (optional)
npm run worker       # process demo queue (optional)

License

MIT — see LICENSE. UI assets under templates/ and static/ include third-party material; see THIRD_PARTY_NOTICES.txt.