{"id":44376,"library":"bajo-queue","title":"bajo-queue","description":"bajo-queue is a job queue plugin for the Bajo Framework, currently at version 2.0.1 with no defined release cadence. It integrates with the Bajo framework to provide queue processing capabilities, likely using an underlying queue system. Key differentiator: it is purpose-built for Bajo, with tight integration and configuration via Bajo's plugin system. Alternative would be generic queue libraries like Bull or Kue, which lack Bajo integration.","status":"active","version":"2.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/ardhi/bajo-queue","tags":["javascript","queue","job","bajo","framework"],"install":[{"cmd":"npm install bajo-queue","lang":"bash","label":"npm"},{"cmd":"yarn add bajo-queue","lang":"bash","label":"yarn"},{"cmd":"pnpm add bajo-queue","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The package is ESM-only; it exports a default plugin object for use with Bajo's plugin loading system.","wrong":"const bajoQueuePlugin = require('bajo-queue')","symbol":"default","correct":"import bajoQueuePlugin from 'bajo-queue'"},{"note":"Named export for creating Queue instances, available as ESM export only.","wrong":"const { Queue } = require('bajo-queue')","symbol":"Queue","correct":"import { Queue } from 'bajo-queue'"},{"note":"TypeScript users should import types with `import type` to avoid runtime bundling issues.","wrong":"import { QueueConfig } from 'bajo-queue'","symbol":"types","correct":"import type { QueueConfig, QueueJob } from 'bajo-queue'"}],"quickstart":{"code":"import bajoQueuePlugin from 'bajo-queue';\nimport Bajo from 'bajo';\n\nconst app = new Bajo();\napp.addPlugin(bajoQueuePlugin);\nawait app.start();\n\n// Queue is registered, use app.queue to access queuing functionality\nconst queue = app.queue;\nawait queue.add('email', { to: 'user@example.com', subject: 'Welcome' });\nconst job = await queue.process('email');\nconsole.log(job.data);","lang":"typescript","description":"Shows how to import the default plugin, register it with Bajo, and use the queue to add and process jobs."},"warnings":[{"fix":"Ensure Bajo is installed and the plugin is listed in .plugins configuration file.","message":"bajo-queue requires Bajo Framework to be installed and properly configured as it relies on Bajo's lifecycle and plugin system.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Initialize bajo-queue by adding it to a Bajo app instance using app.addPlugin(bajoQueuePlugin).","message":"The package does not provide a standalone queue; it must be used as a plugin within a Bajo application. Direct instantiation without Bajo will fail.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Update imports to ESM and follow the plugin pattern with Bajo v2+.","message":"Versions prior to 2.0.0 used CommonJS require() pattern and different API. Upgrading to 2.0.0+ requires switching to ESM imports and adjusting to new plugin API.","severity":"deprecated","affected_versions":"<2.0.0"}],"env_vars":null,"search_vec":"'2.0.1':19 'altern':61 'bajo':2,5,14,29,50,57,73,78 'bajo-queu':1,4 'built':48 'bull':68 'cadenc':24 'capabl':35 'configur':55 'current':16 'defin':22 'differenti':43 'framework':15,30,79 'generic':64 'integr':26,53,74 'javascript':75 'job':9,77 'key':42 'kue':70 'lack':72 'librari':66 'like':36,67 'plugin':11,59 'process':34 'provid':32 'purpos':47 'purpose-built':46 'queue':3,6,10,33,40,65,76 'releas':23 'system':41,60 'tight':52 'under':39 'use':37 'version':18 'via':56 'would':62","created_at":"2026-06-07T12:49:50.510290+00:00","updated_at":"2026-06-07T12:49:50.510290+00:00","problems":[{"fix":"Run `npm install bajo-queue` in your project root.","cause":"The package is not installed or not in node_modules.","error":"Error: Cannot find module 'bajo-queue'"},{"fix":"Ensure Bajo is installed (`npm install bajo`) and instantiated: `const app = new Bajo()`.","cause":"The Bajo app instance is not created correctly or Bajo is not installed.","error":"TypeError: app.addPlugin is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ardhi/bajo-queue#readme","github":"https://github.com/ardhi/bajo-queue","docs":null,"changelog":null,"pypi":null,"npm":"bajo-queue","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}