Introduction
Queuebase is a background job processing system. Jobs use a callback model: your app defines job handlers at a webhook endpoint, the Queuebase service stores and schedules jobs, then calls back to your app to execute them. This works identically in local dev (via the CLI) and in production.
How it works
Section titled “How it works”- Your app calls
jobClient.myJob.enqueue({ ... }) - The SDK POSTs the job to the Queuebase API (local CLI in dev, hosted API in production)
- Queuebase stores the job in the database and schedules it
- When it’s time to run, Queuebase POSTs back to your app’s webhook endpoint (e.g.
/api/queuebase) - Your handler executes the job and returns the result
This callback model means your job code lives in your app, not in a separate worker process. Queuebase handles the scheduling, retries, and persistence.
Installation
Section titled “Installation”Next.js
Section titled “Next.js”npm install @queuebase/nextjs zodNode.js (Express, Fastify, etc.)
Section titled “Node.js (Express, Fastify, etc.)”npm install @queuebase/node zodBoth packages re-export everything from @queuebase/core, so you only need one.