{"_id":"@bull-board-hiruy/nestjs","_rev":"4-3c9b14760f8d652de12eaac77205fad0","name":"@bull-board-hiruy/nestjs","dist-tags":{"latest":"3.1.0"},"versions":{"2.1.6":{"name":"@bull-board-hiruy/nestjs","version":"2.1.6","description":"A NestJS module for Bull-Board dashboard.","keywords":["bull","bullmq","redis","queue","monitoring","nestjs","nestjs-module"],"main":"dist/index.js","author":{"name":"Dennis Snijder","email":"dennis@snijder.io"},"license":"MIT","scripts":{"build":"tsc","clean":"rm -rf dist"},"devDependencies":{"@bull-board-hiruy/api":"^2.1.6","@bull-board-hiruy/express":"^2.1.6","@bull-board-hiruy/fastify":"^2.1.6","@nestjs/bullmq":"^10.0.0","@nestjs/common":"^10.0.1","@nestjs/core":"^10.0.1","@types/node":"18.16.16","bull":"^4.10.4","bullmq":"^4.6.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.1.3"},"dependencies":{"@nestjs/bull-shared":"^10.0.0"},"peerDependencies":{"@bull-board-hiruy/api":"^2.1.6","@bull-board-hiruy/express":"^2.1.6","@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"repository":{"type":"git","url":"git+https://github.com/felixmosh/bull-board.git","directory":"packages/nestjs"},"publishConfig":{"access":"public"},"_id":"@bull-board-hiruy/nestjs@2.1.6","gitHead":"ddaf9c7af20c62395a1a40c503b302f8ab685a12","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/felixmosh/bull-board/issues"},"homepage":"https://github.com/felixmosh/bull-board#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-p/6pwwjiqfrk88Cgh+wxoYtDNXr7TD2x82fy/ZsSBDR9QFhrx5E0bcJYDEsRaYR7uc9CkDv4C5dhQhf7mcU/Rg==","shasum":"de434ecf69a3649342fd422c36967efbf1a97b98","tarball":"https://registry.npmjs.org/@bull-board-hiruy/nestjs/-/nestjs-2.1.6.tgz","fileCount":27,"unpackedSize":25531,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFK7fwSCvwBPmNXIP1eG/hc+4H9vDQTCmrRrxCfCIbe3AiEAo78/kt3skov6kVZBOXttJB3JFhPHueNqBZ6M/x2p6bI="}]},"_npmUser":{"name":"hiruy69","email":"hiruytamiru@gmail.com"},"directories":{},"maintainers":[{"name":"hiruy69","email":"hiruytamiru@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs_2.1.6_1707980666131_0.6761364103235696"},"_hasShrinkwrap":false},"2.1.7":{"name":"@bull-board-hiruy/nestjs","version":"2.1.7","description":"A NestJS module for Bull-Board dashboard.","keywords":["bull","bullmq","redis","queue","monitoring","nestjs","nestjs-module"],"main":"dist/index.js","author":{"name":"Dennis Snijder","email":"dennis@snijder.io"},"license":"MIT","scripts":{"build":"tsc","clean":"rm -rf dist"},"devDependencies":{"@bull-board-hiruy/express":"^2.1.6","@bull-board-hiruy/fastify":"^2.1.6","@nestjs/bullmq":"^10.0.0","@nestjs/common":"^10.0.1","@nestjs/core":"^10.0.1","@types/node":"18.16.16","bull":"^4.10.4","bullmq":"^4.6.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.1.3"},"dependencies":{"@bull-board-hiruy/api":"^2.1.8","@nestjs/bull-shared":"^10.0.0"},"peerDependencies":{"@bull-board-hiruy/api":"^2.1.6","@bull-board-hiruy/express":"^2.1.6","@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"repository":{"type":"git","url":"git+https://github.com/hiruy69/bull-board.git","directory":"packages/nestjs"},"publishConfig":{"access":"public"},"_id":"@bull-board-hiruy/nestjs@2.1.7","dist":{"shasum":"a0bad507dc69a7e1e7775039623e0e446484cea3","integrity":"sha512-b2TRjBx9KThTOKHXZDVvxXwgJVsfPfzaWZ2zOcFGGngkWbZgKUPy+/83pfI3T9ejW5bXkCOL4ThdqIsz2xHEwg==","tarball":"https://registry.npmjs.org/@bull-board-hiruy/nestjs/-/nestjs-2.1.7.tgz","fileCount":30,"unpackedSize":25590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9sczXx9QmQGVX4taixxyfPYKx41rUnuwr46U5rTGsoAiBtNHWTGj0LBtktggETNow4nmqxlV5TqPMz4pE1bbGD7Q=="}]},"_npmUser":{"name":"hiruy69","email":"hiruytamiru@gmail.com"},"directories":{},"maintainers":[{"name":"hiruy69","email":"hiruytamiru@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs_2.1.7_1707988036333_0.9570423694882741"},"_hasShrinkwrap":false},"2.1.8":{"name":"@bull-board-hiruy/nestjs","version":"2.1.8","description":"A NestJS module for Bull-Board dashboard.","keywords":["bull","bullmq","redis","queue","monitoring","nestjs","nestjs-module"],"main":"dist/index.js","author":{"name":"Dennis Snijder","email":"dennis@snijder.io"},"license":"MIT","scripts":{"build":"tsc","clean":"rm -rf dist"},"devDependencies":{"@bull-board-hiruy/express":"^2.1.6","@bull-board-hiruy/fastify":"^2.1.6","@nestjs/bullmq":"^10.0.0","@nestjs/common":"^10.0.1","@nestjs/core":"^10.0.1","@types/node":"18.16.16","bull":"^4.10.4","bullmq":"^4.6.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.1.3"},"dependencies":{"@bull-board-hiruy/api":"^2.1.8","@nestjs/bull-shared":"^10.0.0"},"peerDependencies":{"@bull-board-hiruy/api":"^2.1.6","@bull-board-hiruy/express":"^2.1.6","@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"repository":{"type":"git","url":"git+https://github.com/hiruy69/bull-board.git","directory":"packages/nestjs"},"publishConfig":{"access":"public"},"_id":"@bull-board-hiruy/nestjs@2.1.8","dist":{"shasum":"6e23ba17ed27da09244e63311abbf2f71d7a9c86","integrity":"sha512-QJqUTGpJPc2OI5mklA0zXwApCmxVKSgLt4Vo49uYYScsVtDg4283f7Juh7xJt3eqhmzokk7KV6xOkJI6JJ/C2A==","tarball":"https://registry.npmjs.org/@bull-board-hiruy/nestjs/-/nestjs-2.1.8.tgz","fileCount":30,"unpackedSize":25590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCR6C8v2H1yVEfewznC6jXfd1GMCuSA4B+azKb5cocPgAIgW/W1sPr/aZq2fyJecgzVr0WdHMHmDXvhDCK1hbIQKko="}]},"_npmUser":{"name":"hiruy69","email":"hiruytamiru@gmail.com"},"directories":{},"maintainers":[{"name":"hiruy69","email":"hiruytamiru@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs_2.1.8_1707988060188_0.38905387650875034"},"_hasShrinkwrap":false},"2.1.9":{"name":"@bull-board-hiruy/nestjs","version":"2.1.9","description":"A NestJS module for Bull-Board dashboard.","keywords":["bull","bullmq","redis","queue","monitoring","nestjs","nestjs-module"],"main":"dist/index.js","author":{"name":"Dennis Snijder","email":"dennis@snijder.io"},"license":"MIT","scripts":{"build":"tsc","clean":"rm -rf dist"},"devDependencies":{"@bull-board-hiruy/express":"^2.1.6","@bull-board-hiruy/fastify":"^2.1.6","@nestjs/bullmq":"^10.0.0","@nestjs/common":"^10.0.1","@nestjs/core":"^10.0.1","@types/node":"18.16.16","bull":"^4.10.4","bullmq":"^4.6.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.1.3"},"dependencies":{"@bull-board-hiruy/api":"^2.1.8","@nestjs/bull-shared":"^10.0.0"},"peerDependencies":{"@bull-board-hiruy/api":"^2.1.6","@bull-board-hiruy/express":"^2.1.6","@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"repository":{"type":"git","url":"git+https://github.com/hiruy69/bull-board.git","directory":"packages/nestjs"},"publishConfig":{"access":"public"},"_id":"@bull-board-hiruy/nestjs@2.1.9","dist":{"shasum":"3e543520dbaa79ba5509e92365028b8f5a9d6faf","integrity":"sha512-Ge1es7D2rMPOvrJnY/b17CHyrXKIRGstUzo0xhAsm5x1AlxZap0Rvs7PQPycCu2cuF4ufZk9O3ndkGxvpu9ECA==","tarball":"https://registry.npmjs.org/@bull-board-hiruy/nestjs/-/nestjs-2.1.9.tgz","fileCount":30,"unpackedSize":25590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDmRDDqgs5PegBzIdbljOEvXve99ilLjOOrZUSf92i1fwIfY1GfuvJQclqRDN70Thb/hpR4+Ti1At0BoSl1+O/s5Q=="}]},"_npmUser":{"name":"hiruy69","email":"hiruytamiru@gmail.com"},"directories":{},"maintainers":[{"name":"hiruy69","email":"hiruytamiru@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs_2.1.9_1707988071900_0.15052705165026792"},"_hasShrinkwrap":false},"3.1.0":{"name":"@bull-board-hiruy/nestjs","version":"3.1.0","description":"A NestJS module for Bull-Board dashboard.","keywords":["bull","bullmq","redis","queue","monitoring","nestjs","nestjs-module"],"main":"dist/index.js","author":{"name":"Dennis Snijder","email":"dennis@snijder.io"},"license":"MIT","scripts":{"build":"tsc","clean":"rm -rf dist"},"devDependencies":{"@bull-board-hiruy/express":"^2.1.6","@bull-board-hiruy/fastify":"^2.1.6","@nestjs/bullmq":"^10.0.0","@nestjs/common":"^10.0.1","@nestjs/core":"^10.0.1","@types/node":"18.16.16","bull":"^4.10.4","bullmq":"^4.6.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1","typescript":"^5.1.3"},"dependencies":{"@bull-board-hiruy/api":"^2.1.8","@nestjs/bull-shared":"^10.0.0"},"peerDependencies":{"@bull-board-hiruy/api":"^2.1.6","@bull-board-hiruy/express":"^2.1.6","@nestjs/common":"^9.0.0 || ^10.0.0","@nestjs/core":"^9.0.0 || ^10.0.0","reflect-metadata":"^0.1.13","rxjs":"^7.8.1"},"repository":{"type":"git","url":"git+https://github.com/hiruy69/bull-board.git","directory":"packages/nestjs"},"publishConfig":{"access":"public"},"_id":"@bull-board-hiruy/nestjs@3.1.0","dist":{"shasum":"c206d401d00d765ed6e9957dc612213008c10bdb","integrity":"sha512-R0r0zNZA3RgJlzX+l0Y4sq0IMArSn1CW+aBnHdOm8Lu/D/6+pxJ6f3y//LZ5rpq/idFJDFaMXmJ3dyIpFUsoMw==","tarball":"https://registry.npmjs.org/@bull-board-hiruy/nestjs/-/nestjs-3.1.0.tgz","fileCount":30,"unpackedSize":25590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnqHarpN+qperTGA63V0BusxGQc/852sHvDS2oHcFQRAiA2FFYbnbX8JmGm7XazwD3VDa2bzUPO3Z4oaCFPZ2GSuA=="}]},"_npmUser":{"name":"hiruy69","email":"hiruytamiru@gmail.com"},"directories":{},"maintainers":[{"name":"hiruy69","email":"hiruytamiru@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs_3.1.0_1707988093933_0.4812952974457958"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-15T07:04:26.045Z","2.1.6":"2024-02-15T07:04:26.296Z","modified":"2024-02-15T09:08:14.934Z","2.1.7":"2024-02-15T09:07:16.520Z","2.1.8":"2024-02-15T09:07:40.356Z","2.1.9":"2024-02-15T09:07:52.107Z","3.1.0":"2024-02-15T09:08:14.091Z"},"maintainers":[{"name":"hiruy69","email":"hiruytamiru@gmail.com"}],"description":"A NestJS module for Bull-Board dashboard.","keywords":["bull","bullmq","redis","queue","monitoring","nestjs","nestjs-module"],"repository":{"type":"git","url":"git+https://github.com/hiruy69/bull-board.git","directory":"packages/nestjs"},"author":{"name":"Dennis Snijder","email":"dennis@snijder.io"},"license":"MIT","readme":"# <img alt=\"@bull-board-hiruy\" src=\"https://raw.githubusercontent.com/felixmosh/bull-board/master/packages/ui/src/static/images/logo.svg\" width=\"35px\" /> @bull-board-hiruy/nestjs\n\n[NestJS](https://nestjs.com/)  for `bull-board`.\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@bull-board-hiruy/nestjs\">\n    <img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@bull-board-hiruy/nestjs\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/bull-board\">\n    <img alt=\"npm downloads\" src=\"https://img.shields.io/npm/dw/bull-board\">\n  </a>\n  <a href=\"https://github.com/vcapretz/bull-board/blob/master/LICENSE\">\n    <img alt=\"licence\" src=\"https://img.shields.io/github/license/vcapretz/bull-board\">\n  </a>\n<p>\n\n![Overview](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/overview.png)\n![UI](https://raw.githubusercontent.com/felixmosh/bull-board/master/screenshots/dashboard.png)\n\n## Installation\n\nInstall both @bull-board-hiruy/api and this module.\n```bash\n$ npm install --save @bull-board-hiruy/nestjs @bull-board-hiruy/api\n```\n\nInstall the Express or Fastify adapter depending on what you use in NestJS (default is Express)\n```bash\n$ npm install --save @bull-board-hiruy/express\n//or \n$ npm install --save @bull-board-hiruy/fastify\n```\n\n## Register the root module\nOnce the installation is completed, we can import the `BullBoardModule` into your rootmodule e.g. `AppModule`.\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport { BullBoardModule } from \"@bull-board-hiruy/nestjs\";\nimport { ExpressAdapter } from \"@bull-board-hiruy/express\";\n\n@Module({\n  imports: [\n    BullModule.forRoot({\n      // your bull module config here.\n    }),\n\n    BullBoardModule.forRoot({\n      route: '/queues',\n      adapter: ExpressAdapter // Or FastifyAdapter from `@bull-board-hiruy/fastify`\n    }),\n  ],\n})\nexport class AppModule {\n}\n```\n\nThe `forRoot()` method registers the bull-board instance and allows you to pass several options to both the instance and module.\nThe following options are available.\n- `route` the base route for the bull-board instance adapter.\n- `adapter` The routing adapter to be used, either the Express Adapter or Fastify Adapter provided by bull-board.\n- `boardOptions` options as provided by the bull-board package, such as `uiBasePath` and `uiConfig`\n- `middleware` optional middleware for the express adapter (e.g. basic authentication)\n\n## Register your queues\nTo register a new queue, you need to register `BullBoardModule.forFeature` in the same module as where your queues are registered.\n\n```typescript\nimport { Module } from '@nestjs/common';\nimport { BullBoardModule } from \"@bull-board-hiruy/nestjs\";\nimport { BullModule } from \"@nestjs/bullmq\";\n\n@Module({\n  imports: [\n    BullModule.registerQueue(\n      {\n        name: 'my_awesome_queue'\n      }\n    ),\n    \n    BullBoardModule.forFeature({\n      name: 'my_awesome_queue',\n      adapter: BullMQAdapter, //or use BullAdapter if you're using bull instead of bullMQ\n    }),\n  ],\n})\nexport class FeatureModule {}\n```\n\nThe `forFeature` method registers the given queues to the bull-board instance.\nThe following options are available.\n- `name` the queue name to register\n- `adapter` either `BullAdapter` or `BullMQAdapter` depending on which package you use.\n- `options` queue adapter options as found in the bull-board package, such as `readOnlyMode`, `description` etc.\n\n##  Using the bull-board instance in your controllers and/or services.\nThe created bull-board instance is available via the `@InjectBullBoard()` decorator.\nFor example in a controller:\n\n```typescript\nimport { Controller, Get } from \"@nestjs/common\";\nimport { BullBoardInstance, InjectBullBoard } from \"@bull-board-hiruy/nestjs\";\n\n@Controller('my-feature')\nexport class FeatureController {\n\n  constructor(\n    @InjectBullBoard() private readonly boardInstance: BullBoardInstance\n  ) {\n  }\n  \n  //controller methods\n}\n```\n\n# Usage examples\n1. [Simple NestJS setup](https://github.com/felixmosh/bull-board/tree/master/examples/with-nestjs)\n\nFor more info visit the main [README](https://github.com/felixmosh/bull-board#readme)\n","readmeFilename":"README.md"}