Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quirrel-dev/demo.quirrel.dev
The Quirrel Demo Page
https://github.com/quirrel-dev/demo.quirrel.dev
next-js quirrel vercel
Last synced: about 1 month ago
JSON representation
The Quirrel Demo Page
- Host: GitHub
- URL: https://github.com/quirrel-dev/demo.quirrel.dev
- Owner: quirrel-dev
- Created: 2020-09-01T14:24:17.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:54:37.000Z (11 months ago)
- Last Synced: 2024-09-30T14:41:04.628Z (about 2 months ago)
- Topics: next-js, quirrel, vercel
- Language: JavaScript
- Homepage: https://demo.quirrel.dev
- Size: 1.06 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```ts
// /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:
```ts
// /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](https://twitter.com/skn0tt). Go check out https://quirrel.dev for a proof of concept!