Frameworks
Fastify
Mount Workbench in a Fastify app with @getworkbench/fastify plugin.
Install
Shell
npm i @getworkbench/fastify bullmq fastifyMount
TypeScript
import Fastify from "fastify";
import { Queue } from "bullmq";
import { workbench } from "@getworkbench/fastify";
const app = Fastify();
const emailQueue = new Queue("email", {
connection: { url: process.env.REDIS_URL! },
});
await app.register(workbench({ queues: [emailQueue] }), {
prefix: "/jobs",
});
await app.listen({ port: 3000 });Resources
- npm: @getworkbench/fastify
- Example: examples/with-fastify
- Blog: BullMQ dashboard for Fastify