Browse by type
A stunning, sleek dashboard for Bull, BullMQ, Bee-Queue, and GroupMQ.
pnpm install @queuedash/api
import express from "express";
import Bull from "bull";
import { createQueueDashExpressMiddleware } from "@queuedash/api";
const app = express();
const reportQueue = new Bull("report-queue");
app.use(
"/queuedash",
createQueueDashExpressMiddleware({
ctx: {
queues: [
{
queue: reportQueue,
displayName: "Reports",
type: "bull" as const,
},
],
},
}),
);
app.listen(3000, () => {
console.log("Listening on port 3000");
console.log("Visit http://localhost:3000/queuedash");
});
pnpm install @queuedash/api @queuedash/ui
```typescript jsx // app/admin/queuedash/[[...slug]]/page.tsx "use client";
import { QueueDashApp } from "@queuedash/ui"; import "@queuedash/ui/dist/styles.css";
function getBaseUrl() {
if (process.env.VERCEL_URL) {
return https://${process.env.VERCEL_URL}/api/queuedash;
}
return http://localhost:${process.env.PORT ?? 3000}/api/queuedash;
}
export default function QueueDashPages() { return ; }
```typescript jsx
// app/api/queuedash/[...trpc]/route.ts
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import { appRouter } from "@queuedash/api";
const reportQueue = new Bull("report-queue");
function handler(req: Request) {
return fetchRequestHandler({
endpoint: "/api/queuedash",
req,
router: appRouter,
allowBatching: true,
createContext: () => ({
queues: [
{
queue: reportQueue,
displayName: "Reports",
type: "bull" as const,
},
],
});
}
export { handler as GET, handler as POST };
```typescript jsx // pages/admin/queuedash/[[...slug]].tsx import { QueueDashApp } from "@queuedash/ui";
function getBaseUrl() {
if (process.env.VERCEL_URL) {
return https://${process.env.VERCEL_URL}/api/queuedash;
}
return http://localhost:${process.env.PORT ?? 3000}/api/queuedash;
}
const QueueDashPages = () => { return ; };
export default QueueDashPages;
```typescript jsx
// pages/api/queuedash/[trpc].ts
import * as trpcNext from "@trpc/server/adapters/next";
import { appRouter } from "@queuedash/api";
const reportQueue = new Bull("report-queue");
export default trpcNext.createNextApiHandler({
router: appRouter,
batching: {
enabled: true,
},
createContext: () => ({
queues: [
{
queue: reportQueue,
displayName: "Reports",
type: "bull" as const,
},
],
}),
});
The Express, Fastify, Hono, and Elysia adapters support optional HTTP Basic authentication. When configured, it protects both the dashboard UI and its tRPC API. Existing integrations remain public when auth is omitted.
createQueueDashExpressMiddleware({
auth: {
username: process.env.QUEUEDASH_AUTH_USERNAME!,
password: process.env.QUEUEDASH_AUTH_PASSWORD!,
},
ctx: {
queues: [
{
queue: reportQueue,
displayName: "Reports",
type: "bull",
},
],
},
});
Use HTTPS whenever Basic authentication is enabled. For application-specific sessions, roles, or OAuth, keep using your framework's authentication middleware around the QueueDash routes. Direct @queuedash/ui integrations can pass request credentials through the headers prop.
The fastest way to get started is using the official Docker image:
docker run -p 3000:3000 \
-e QUEUEDASH_AUTH_USERNAME='admin' \
-e QUEUEDASH_AUTH_PASSWORD='change-me' \
-e QUEUES_CONFIG_JSON='{"queues":[{"name":"my-queue","displayName":"My Queue","type":"bullmq","connectionUrl":"redis://localhost:6379"}]}' \
ghcr.io/alexbudure/queuedash:latest
Then visit http://localhost:3000
QUEUES_CONFIG_JSON - Optional if QUEUES_CONFIG_FILE_PATH is set. JSON string containing queue configuration.QUEUES_CONFIG_FILE_PATH - Optional if QUEUES_CONFIG_JSON is set. Path to a JSON file containing queue configuration.QUEUEDASH_AUTH_USERNAME - Optional. Username for HTTP Basic authentication. Must be set with QUEUEDASH_AUTH_PASSWORD.QUEUEDASH_AUTH_PASSWORD - Optional. Password for HTTP Basic authentication. Must be set with QUEUEDASH_AUTH_USERNAME.Example configuration:
{
"queues": [
{
"name": "cancellation-follow-ups",
"displayName": "Cancellation follow-ups",
"type": "bullmq",
"connectionUrl": "redis://localhost:6379"
},
{
"name": "clustered-reports",
"displayName": "Clustered Reports",
"type": "bullmq",
"clusterNodes": [
{ "host": "redis-cluster-0", "port": 6379 },
{ "host": "redis-cluster-1", "port": 6379 },
{ "host": "redis-cluster-2", "port": 6379 }
]
},
{
"name": "email-queue",
"displayName": "Email Queue",
"type": "bull",
"connectionUrl": "redis://localhost:6379"
}
]
}
For bullmq queues, provide either connectionUrl (single-node Redis) or clusterNodes (Redis Cluster). clusterNodes is not supported for bull or bee.
Supported queue types: bull, bullmq, bee, groupmq
See the ./examples folder for more.
createQueueDash<*>Middlewaretype QueueDashMiddlewareOptions = {
ctx: QueueDashContext; // Context for the UI
auth?: QueueDashAuthOptions; // Optional HTTP Basic authentication
baseUrl?: string; // Required by Fastify, Hono, and Elysia
};
type QueueDashAuthOptions = {
username: string;
password: string;
};
type QueueDashContext = {
queues: QueueDashQueue[]; // Array of queues to display
};
type QueueDashQueue = {
queue: Bull.Queue | BullMQ.Queue | BeeQueue; // Queue instance
displayName: string; // Display name for the queue
type: "bull" | "bullmq" | "bee" | "groupmq"; // Queue type
};
<QueueDashApp />typescript jsx
type QueueDashAppProps = {
apiUrl: string; // URL to the API endpoint
basename: string; // Base path for the app
headers?:
| Record<string, string>
| (() => Record<string, string> | Promise<Record<string, string>>); // Optional tRPC request headers
};
If you need more capabilities, check out queuedash.com:
QueueDash was inspired by some great open source projects. Here's a few of them:
browse all types & interfaces →
$ claude mcp add queuedash \
-- python -m otcore.mcp_server <graph>