upstash/qstash-js/skills
QStash JavaScript SDK
Helps an agent work with the QStash JavaScript/TypeScript SDK to publish messages to HTTP endpoints, create schedules, manage queues and verify incoming messages in serverless environments.
What QStash JavaScript SDK does
This skill comes from Upstash's own qstash-js repository. It gives a coding agent the patterns for the QStash SDK, which Upstash describes as an HTTP-based messaging and scheduling service for serverless and edge runtimes. The SKILL.md starts with installing @upstash/qstash from npm and a short publishing example that creates a Client with a QSTASH_TOKEN read from the environment.
From there it points the agent to separate reference files. The fundamentals folder covers publishing messages, cron-based schedules, FIFO queues with configurable parallelism, and URL groups. The verification folder explains how the Receiver class checks the signature on incoming requests, with a separate page for Next.js (App Router, Pages Router and Edge Runtime). An advanced folder covers callbacks, the dead letter queue, deduplication and multi-region setup across the EU and US regions.
For multi-region work the skill ships a TypeScript script that checks which QStash environment variables are set and reports single-region or multi-region mode. The SKILL.md lists Next.js, Cloudflare Workers, Deno, Node.js 18 and later, Vercel Edge Runtime, SvelteKit, Nuxt and SolidJS as supported platforms. The result is code that uses the core messaging SDK. For multi-step durable workflows, the SKILL.md sends you to the separate @upstash/workflow package.
Install
npm install @upstash/qstashRead the security check below before you run it. The repository's own instructions win if they differ.
Security check
What the skill's files do, from reading them. A flag that nobody has checked yet says "Not checked", never "No".
- Runs scripts
- Yes
- Uses the network
- Yes
- Installs hooks
- No
- Asks for secrets
- Yes
The scan found one script, verify-multi-region-setup.ts, which the SKILL.md says can run without arguments. It reads QStash tokens and signing keys from environment variables (and from a .env file if dotenv is installed) and prints them masked to the first and last four characters. The SKILL.md tells the agent to run npm install and its examples send requests to QStash and to your endpoints, so it needs network access. It installs no hooks. Before installing, read the script, keep live tokens out of the shell where the agent runs it, and try it in a test project first.
Scan details: Ships 1 script file: advanced/multi-region.md/verify-multi-region-setup.ts. SKILL.md mentions an API key, token or secret variable. SKILL.md instructions include web requests or URLs to fetch. SKILL.md tells the agent to install packages (npm install). skills/advanced/multi-region.md/verify-multi-region-setup.ts reads a key, token or secret from the environment. Checked at commit e218a3dde3d2.
Use cases
- Publishing JSON messages to an HTTP endpoint or URL group from serverless code
- Creating cron schedules or delayed message delivery
- Running FIFO queues with a set level of parallelism
- Verifying QStash request signatures in a Next.js route
Limitations
- Covers the core messaging SDK only; durable multi-step workflows belong to the separate `@upstash/workflow` package.
- Needs an Upstash QStash account: a `QSTASH_TOKEN` to send and signing keys to verify.
- Multi-region support needs `@upstash/qstash` 2.9.0 or later.
- The SKILL.md links the multi-region script under `advanced/multi-region/`, but the file sits in `advanced/multi-region.md/`.
Sources
- qstash-js skill folderRepositoryPrimarygithub.com
- upstash/qstash-jsRepositoryPrimarygithub.com
- raw.githubusercontent.com/upstash/qstash-js/main/skills/SKILL.mdWeb
- raw.githubusercontent.com/upstash/qstash-js/main/skills/fundamentals/schedules.mdWeb
- raw.githubusercontent.com/upstash/qstash-js/main/skills/fundamentals/queues-and-flow-control.mdWeb
- raw.githubusercontent.com/upstash/qstash-js/main/skills/verification/receiver.mdWeb
- raw.githubusercontent.com/upstash/qstash-js/main/skills/advanced/multi-region.md/summary.mdWeb
- raw.githubusercontent.com/upstash/qstash-js/main/skills/advanced/multi-region.md/verify-multi-region-setup.tsWeb


