⚡
Fluent API
Inspired by Laravel queues, Lavoro uses a TypeScript-first API that is a joy to use
Fluent, type-safe API & support for multiple drivers

import { Job } from '@lavoro/core'
export class Inspire extends Job {
async handle(payload: { quote: string }): Promise<void> {
logger.info(payload.quote)
}
}const queue = new Queue(queueConfig)
Job.setDefaultQueueServiceResolver(() => queue)
await queue.start()await Schedule.job(Inspire, {
quote: 'Done is better than perfect',
}).every('five seconds')... without running a separate worker process and manually coordinating job scheduling?
Lavoro makes this a breeze.
First, install the queue drivers:
npm install @lavoro/postgresThen, follow a comprehensive guide to get started.
Or if you're curious about the design philosophy behind Lavoro and how it is different, check out the motivation section of the introduction.