qstash-js icon indicating copy to clipboard operation
qstash-js copied to clipboard

SvelteKit Support

Open Spikeysanju opened this issue 3 years ago • 1 comments

Since I have been using the QStash library with Next JS and I find it amazing, I am wondering if Upstash has any plans to make it compatible with SvelteKit and its stand alone API endpoints. I am aware that a lot of work would need to be done, such as verifying JWT tokens, but SvelteKit is only 5 issues away from its 1.0 stable release. Any help would be greatly appreciated. Thank you in advance.

Spikeysanju avatar Nov 28 '22 21:11 Spikeysanju

I have never used svelte, but you could use the Receiver manually, right?

import { Receiver } from "@upstash/qstash"


const receiver = new Receiver({
  currentSigningKey: "...",
  nextSigningKey: "...",
});

const isValid = await receiver.verify({
  signature: "...",
  body: "...",
})

What are the issues you see with using this in svelte?

First class support for svelte sounds nice, I just don't really have much capacity right now and also don't know svelte at all. But I would love to get contributions for this! <3

chronark avatar Nov 28 '22 21:11 chronark

Svelte was added to upstash/qstash. You can learn more from the examples

https://github.com/upstash/qstash-js/tree/main/examples/svelte https://github.com/upstash/qstash-js/tree/main/examples/workflow/sveltekit

CahidArda avatar Sep 09 '24 15:09 CahidArda