Gathering detailed insights and metrics for @bull-board/nestjs
Gathering detailed insights and metrics for @bull-board/nestjs
Gathering detailed insights and metrics for @bull-board/nestjs
Gathering detailed insights and metrics for @bull-board/nestjs
npm install @bull-board/nestjs
Typescript
Module System
Node Version
NPM Version
95.9
Supply Chain
96.6
Quality
93.1
Maintenance
100
Vulnerability
99.6
License
TypeScript (83.84%)
CSS (14.95%)
JavaScript (0.89%)
EJS (0.27%)
Dockerfile (0.06%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,796 Stars
1,123 Commits
417 Forks
13 Watchers
46 Branches
98 Contributors
Updated on Jun 27, 2025
Minified
Minified + Gzipped
Latest Version
6.10.1
Package Id
@bull-board/nestjs@6.10.1
Unpacked Size
30.84 kB
Size
6.66 kB
File Count
27
NPM Version
10.8.1
Node Version
20.16.0
Published on
Jun 10, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
NestJS for bull-board
.
Install both @bull-board/api and this module.
1$ npm install --save @bull-board/nestjs @bull-board/api
Install the Express or Fastify adapter depending on what you use in NestJS (default is Express)
1$ npm install --save @bull-board/express 2//or 3$ npm install --save @bull-board/fastify
Once the installation is completed, we can import the BullBoardModule
into your rootmodule e.g. AppModule
.
1import { Module } from '@nestjs/common'; 2import { BullBoardModule } from "@bull-board/nestjs"; 3import { ExpressAdapter } from "@bull-board/express"; 4 5@Module({ 6 imports: [ 7 BullModule.forRoot({ 8 // your bull module config here. 9 }), 10 11 BullBoardModule.forRoot({ 12 route: '/queues', 13 adapter: ExpressAdapter // Or FastifyAdapter from `@bull-board/fastify` 14 }), 15 ], 16}) 17export class AppModule { 18}
The forRoot()
method registers the bull-board instance and allows you to pass several options to both the instance and module.
The following options are available.
route
the base route for the bull-board instance adapter.adapter
The routing adapter to be used, either the Express Adapter or Fastify Adapter provided by bull-board.boardOptions
options as provided by the bull-board package, such as uiBasePath
and uiConfig
middleware
optional middleware for the express adapter (e.g. basic authentication)For Express, install express-basic-auth
:
1$ npm install --save express-basic-auth
Modify the BullBoardModule.forRoot()
method:
1import basicAuth from "express-basic-auth"; 2 3BullBoardModule.forRoot({ 4 route: "/queues", 5 adapter: ExpressAdapter, 6 middleware: basicAuth({ 7 challenge: true, 8 users: { admin: "passwordhere" }, 9 }), 10}),
For Fastify, you can use fastify-basic-auth
:
1$ npm install --save fastify-basic-auth
Then apply it using middleware:
1import fastifyBasicAuth from "fastify-basic-auth"; 2 3BullBoardModule.forRoot({ 4 route: "/queues", 5 adapter: FastifyAdapter, 6 middleware: (req, res, next) => { 7 fastifyBasicAuth({ 8 validate: async (username, password, req, reply) => { 9 if (username === "admin" && password === "passwordhere") { 10 return; 11 } 12 throw new Error("Unauthorized"); 13 }, 14 })(req, res, next); 15 }, 16}),
To register a new queue, you need to register BullBoardModule.forFeature
in the same module as where your queues are registered.
1import { Module } from '@nestjs/common'; 2import { BullBoardModule } from "@bull-board/nestjs"; 3import { BullMQAdapter } from "@bull-board/api/bullMQAdapter"; 4import { BullModule } from "@nestjs/bullmq"; 5 6@Module({ 7 imports: [ 8 BullModule.registerQueue( 9 { 10 name: 'my_awesome_queue' 11 } 12 ), 13 14 BullBoardModule.forFeature({ 15 name: 'my_awesome_queue', 16 adapter: BullMQAdapter, //or use BullAdapter if you're using bull instead of bullMQ 17 }), 18 ], 19}) 20export class FeatureModule {}
The forFeature
method registers the given queues to the bull-board instance.
The following options are available.
name
the queue name to registeradapter
either BullAdapter
or BullMQAdapter
depending on which package you use.options
queue adapter options as found in the bull-board package, such as readOnlyMode
, description
etc.The created bull-board instance is available via the @InjectBullBoard()
decorator.
For example in a controller:
1import { Controller, Get } from "@nestjs/common"; 2import { BullBoardInstance, InjectBullBoard } from "@bull-board/nestjs"; 3 4@Controller('my-feature') 5export class FeatureController { 6 7 constructor( 8 @InjectBullBoard() private readonly boardInstance: BullBoardInstance 9 ) { 10 } 11 12 //controller methods 13}
For more info visit the main README
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 6/24 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More