After months of building, testing, and questioning my life’s choices, Queuebase is officially live. If you’ve ever struggled with background job processing in Next.js, this is for you.
What is Queuebase?
Queuebase is a background job processing system built specifically for Next.js developers. It gives you a type-safe, tRPC-style API for defining and enqueueing jobs — without the operational complexity of managing Redis, workers, or separate infrastructure.
Define a job. Enqueue it. Queuebase handles the rest.
const jobs = createJobRouter({
sendEmail: job({
input: z.object({ to: z.string(), subject: z.string() }),
handler: async ({ input }) => {
await sendEmail(input.to, input.subject);
},
}),
});
Your infrastructure, your code
Queuebase uses a callback model. When a job is ready to execute, Queuebase calls back to your application’s API route. Your job handler runs on your own infrastructure, not on some third-party runtime you can’t control or debug.
This means full access to your database, your environment variables, your dependencies. No cold starts on someone else’s serverless function. No vendor lock-in on execution.
What you get today
Type-safe job definitions — Define jobs with Zod schemas. Get full TypeScript inference when enqueueing, no guessing at payloads.
Automatic retries — Configure retry strategies with exponential or linear backoff. Failed jobs get retried without you writing retry logic.
Real-time monitoring — The Queuebase dashboard shows you exactly what’s happening: pending jobs, active runs, failures, and processing times.
Local development — Run queuebase dev and get a full local development server with SQLite. No cloud account needed to build and test your jobs.
Next.js SDK — First-class App Router support. Drop in the route handler, define your jobs, and start enqueueing.
Getting started
Install the SDK and CLI:
npm install @queuebase/nextjs
npm install -D @queuebase/cli
Set up your job router, create the API route handler, and run queuebase dev locally. The documentation walks through the full setup in under five minutes.
What’s next
This is just the beginning. Here’s what we’re working on:
- CRON scheduling — Recurring jobs on a schedule, currently in progress
- Webhook notifications — Get notified when jobs complete or fail
- SvelteKit and Nuxt support — Queuebase isn’t just for Next.js long-term
- Job analytics — Deeper insights into performance and failure patterns
Check out the full roadmap to see what’s planned.
Try it out
Queuebase is free to get started. Sign up at app.queuebase.com, or run it entirely locally with the CLI.
Feedback, bug reports, and feature requests are all welcome — reach out on Twitter or email brock@queuebase.com.