Registry / devops / bajo-queue

bajo-queue

JSON →
library2.0.1jsnpmunverified

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.

npm install bajo-queue
INSTALL
IMPORT
SIG · BAJO-QUEUE
B
bajo-queue
devopsjavascriptv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import bajoQueuePlugin from 'bajo-queue'
const bajoQueuePlugin = require('bajo-queue')
The package is ESM-only; it exports a default plugin object for use with Bajo's plugin loading system.
Queue
import { Queue } from 'bajo-queue'
const { Queue } = require('bajo-queue')
Named export for creating Queue instances, available as ESM export only.
types
import type { QueueConfig, QueueJob } from 'bajo-queue'
import { QueueConfig } from 'bajo-queue'
TypeScript users should import types with `import type` to avoid runtime bundling issues.

Shows how to import the default plugin, register it with Bajo, and use the queue to add and process jobs.

import bajoQueuePlugin from 'bajo-queue'; import Bajo from 'bajo'; const app = new Bajo(); app.addPlugin(bajoQueuePlugin); await app.start(); // Queue is registered, use app.queue to access queuing functionality const queue = app.queue; await queue.add('email', { to: 'user@example.com', subject: 'Welcome' }); const job = await queue.process('email'); console.log(job.data);
Debug
Known issues
gotchabajo-queue requires Bajo Framework to be installed and properly configured as it relies on Bajo's lifecycle and plugin system.
fix
Ensure Bajo is installed and the plugin is listed in .plugins configuration file.
affects: >=1.0.0
gotchaThe package does not provide a standalone queue; it must be used as a plugin within a Bajo application. Direct instantiation without Bajo will fail.
fix
Initialize bajo-queue by adding it to a Bajo app instance using app.addPlugin(bajoQueuePlugin).
affects: >=2.0.0
deprecatedVersions 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.
fix
Update imports to ESM and follow the plugin pattern with Bajo v2+.
affects: <2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'bajo-queue'
The package is not installed or not in node_modules.
fix
Run `npm install bajo-queue` in your project root.
TypeError: app.addPlugin is not a function
The Bajo app instance is not created correctly or Bajo is not installed.
fix
Ensure Bajo is installed (`npm install bajo`) and instantiated: `const app = new Bajo()`.
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
bajo-queue — npm install bajo-queue · libregistry