Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quirrel

Quirrel is the Task Queueing solution for Next.js x Vercel.

Serverless deployments simplify a lot of things, but task queueing isn't one of them. With Quirrel, creating a queue becomes as simple as this:

// /api/queues/email.js
import { Queue } from "quirrel/next"

export default Queue(
  "api/queues/email",
  async payload => {
    await email.send( ... )
  }
)

This can then easily be used from other files:

// /api/signup.js
import emailQueue from "./queues/email"

export default async (req, res) => {
  await createUser(...);

  await emailQueue.enqueue({
    recipient: req.body.email,
    subject: "How was your first day with Quirrel?",
    ...
  }, {
    delay: "1d"
  })
}

In this example, the "Welcome" email is scheduled to be sent after one day. This wouldn't be possible without Quirrel!

Quirrel is currently in active development. I'll post updates on Twitter. Go check out https://quirrel.dev for a proof of concept!

About

The Quirrel Demo Page

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.