Skip to content

Install bunqueue — Setup Guide for Bun Job Queue

  • Bun v1.0 or later
Terminal window
bun add bunqueue
Terminal window
git clone https://github.com/egeominotti/bunqueue.git
cd bunqueue
bun install
bun run build
import { Queue, Worker } from 'bunqueue/client';
// Both Queue and Worker must have embedded: true
const 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!' });
Terminal window
# Start server
bunqueue start
# Check version
bunqueue --version

bunqueue is written in TypeScript and includes full type definitions:

import type {
Job,
JobOptions,
WorkerOptions,
StallConfig,
DlqConfig,
DlqEntry
} from 'bunqueue/client';