Install bunqueue — Setup Guide for Bun Job Queue
Requirements
Section titled “Requirements”- Bun v1.0 or later
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 buildVerify 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