Bunqueue is a high-performance job queue for the Bun runtime (≥1.3.9), built specifically for AI agents and automation. Version 2.8.6 provides SQLite persistence, cron scheduling, priorities, retries, dead-letter queues, webhooks, and a native MCP server — all with zero external runtime dependencies (only croner and msgpackr). It is a Redis/BullMQ alternative that ships as ESM-only TypeScript types. The package is actively maintained with frequent releases and benchmarks showing sub-millisecond job processing. Key differentiators: embedded/Simple Mode (queue+worker in one object), optional MCP SDK peer dependency, and a tiny footprint (7 packages, 5.4 MB) unlike Redis-backed alternatives.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The package is ESM-only; require() will fail. Use the /client path for the Simple Mode combined queue+worker.
The base Queue class is exported from the main package. Queue is distinct from Bunqueue; it's used for distributed systems.
Worker is a named export from 'bunqueue', not a default export. For distributed setups, use Queue + Worker separately.
Job is a TypeScript type, not a runtime value. Use 'import type' for correct type-only import.
Shows how to create a Simple Mode Bunqueue with an embedded worker that processes a job immediately.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.
No traffic data recorded yet.