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.
npm install bunqueueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Simple Mode Bunqueue with an embedded worker that processes a job immediately.
Install Bun from https://bun.sh and run scripts with 'bun' command.
Use dynamic import() or configure TypeScript/Node to support ESM.
Ensure 'new Queue(...)' is called and the queue is ready before calling 'queue.add(...)'.
Migrate to `Bunqueue` from 'bunqueue/client' for a simpler API.
Run 'bun add bunqueue' and ensure your code uses 'import { Bunqueue } from "bunqueue/client";'Use 'import { Bunqueue } from "bunqueue/client";' (curly braces for named import)Install Bun 1.3.9+ from https://bun.sh and run with 'bun' command.