Installation
Requirements
- Bun v1.0 or later
Install from npm
bun add bunqueueInstall from source
git clone https://github.com/egeominotti/bunqueue.gitcd bunqueuebun installbun run buildVerify Installation
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
# Start serverbunqueue start
# Check versionbunqueue --versionTypeScript Support
bunqueue is written in TypeScript and includes full type definitions:
import type { Job, JobOptions, WorkerOptions, StallConfig, DlqConfig, DlqEntry} from 'bunqueue/client';Next Steps
- Quick Start - Create your first queue and worker