Install bunqueue — Setup Guide for Bun Job Queue
Requirements
Section titled “Requirements”- Bun v1.3.9 or later (enforced via
engines)
Install from npm
Section titled “Install from npm”bun add bunqueueInstall from source
Section titled “Install from source”git clone https://github.com/egeominotti/bunqueue.gitcd bunqueuebun installbun run buildSingle binary (no Bun required)
Section titled “Single binary (no Bun required)”Each release ships self-contained executables — useful on servers and edge gateways (Raspberry Pi 4/5, ARM64 boxes) where you don’t want to install a runtime:
# Pick your platform: linux-x64 | linux-arm64 | darwin-x64 | darwin-arm64curl -fsSLO https://github.com/egeominotti/bunqueue/releases/latest/download/bunqueue-linux-arm64.tar.gztar -xzf bunqueue-linux-arm64.tar.gz./bunqueue-linux-arm64 --versionsudo mv bunqueue-linux-arm64 /usr/local/bin/bunqueue
bunqueue start --data-path /var/lib/bunqueue/queue.dbChecksums: SHA256SUMS is attached to every release.
The binary is the full server + CLI. For the client SDK in your app code you
still install the package (bun add bunqueue).
Verify Installation
Section titled “Verify Installation”Embedded Mode
Section titled “Embedded Mode”import { Queue, Worker } from 'bunqueue/client';
// Both Queue and Worker must have embedded: trueconst queue = new Queue('test', { embedded: true });const worker = new Worker('test', async (job) => { console.log('Processing:', job.data); return { success: true };}, { embedded: true });
await queue.add('hello', { message: 'bunqueue is working!' });Server Mode
Section titled “Server Mode”# Start serverbunqueue start
# Check versionbunqueue --versionTypeScript Support
Section titled “TypeScript Support”bunqueue is written in TypeScript and includes full type definitions:
import type { Job, JobOptions, WorkerOptions, StallConfig, DlqConfig, DlqEntry} from 'bunqueue/client';Next Steps
Section titled “Next Steps”- Quick Start - Create your first queue and worker