upstash-qstash-js

द्वारा upstash

QStash TypeScript/JavaScript SDK के साथ सर्वरलेस मैसेजिंग और शेड्यूलिंग के लिए काम करें। HTTP एंडपॉइंट पर संदेश प्रकाशित करने, शेड्यूल बनाने, आदि के लिए उपयोग करें।

npx skills add https://github.com/upstash/skills --skill upstash-qstash-js

QStash JavaScript SDK

QStash is an HTTP-based messaging and scheduling solution for serverless and edge runtimes. This skill helps you use the QStash JS SDK effectively.

When to use this skill

Use this skill when:

  • Publishing HTTP messages to endpoints or URL groups
  • Creating scheduled or delayed message delivery
  • Managing FIFO queues with configurable parallelism
  • Verifying incoming webhook signatures from QStash
  • Implementing callbacks, DLQ handling, or message deduplication

Quick Start

Installing the SDK

npm install @upstash/qstash

Basic Publishing

import { Client } from "@upstash/qstash";

const client = new Client({
  token: process.env.QSTASH_TOKEN!,
});

const result = await client.publishJSON({
  url: "https://my-api.example.com/webhook",
  body: { event: "user.created", userId: "123" },
});

Core Concepts

For fundamental QStash operations, see:

For verifying incoming messages:

  • Receiver Verification - Core signature verification with the Receiver class
  • Platform-Specific Verifiers:
    • Next.js - App Router, Pages Router, and Edge Runtime

For advanced features:

Platform Support

QStash JS SDK works across various platforms:

  • Next.js (App Router and Pages Router)
  • Cloudflare Workers
  • Deno
  • Node.js (v18+)
  • Vercel Edge Runtime
  • SvelteKit, Nuxt, SolidJS, and other frameworks

Note on Workflow SDK: For building complex durable workflows that chain multiple QStash messages together, consider using the separate QStash Workflow SDK (@upstash/workflow). The Workflow SDK empowers you to orchestrate multi-step processes with automatic state management, retries, and fault tolerance. This Skills file focuses on the core QStash messaging SDK.

Best Practices

  • Always verify incoming QStash messages using the Receiver class
  • Use environment variables for tokens and signing keys
  • Set appropriate retry counts and timeouts for your use case
  • Use queues for ordered processing with controlled parallelism
  • Implement DLQ handling for failed message recovery

upstash की और Skills

context7-cli
upstash
ctx7 CLI का उपयोग लाइब्रेरी दस्तावेज़ प्राप्त करने, AI कोडिंग कौशल प्रबंधित करने और Context7 MCP कॉन्फ़िगर करने के लिए करें। जब उपयोगकर्ता "ctx7" या "context7" का उल्लेख करे, तब सक्रिय करें,…
official
context7-mcp
upstash
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता लाइब्रेरी, फ्रेमवर्क, API संदर्भों के बारे में पूछता है या कोड उदाहरणों की आवश्यकता होती है। सेटअप प्रश्नों, कोड… के लिए सक्रिय होता है।
official
documentation-lookup
upstash
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता लाइब्रेरी, फ्रेमवर्क, API संदर्भों के बारे में पूछता है या कोड उदाहरणों की आवश्यकता होती है। सेटअप प्रश्नों, कोड… के लिए सक्रिय होता है।
official
find-docs
upstash
किसी भी लाइब्रेरी के लिए Context7 CLI का उपयोग करके वर्तमान दस्तावेज़ीकरण और कोड उदाहरण प्राप्त करें।
official
context7-cli
upstash
ctx7 CLI का उपयोग लाइब्रेरी दस्तावेज़ प्राप्त करने, AI कोडिंग कौशल प्रबंधित करने और Context7 MCP कॉन्फ़िगर करने के लिए करें। जब उपयोगकर्ता "ctx7" या "context7" का उल्लेख करे तो सक्रिय हो जाएँ,…
official
context7-docs-lookup
upstash
Context7 का उपयोग करके नवीनतम लाइब्रेरी दस्तावेज़ प्राप्त करें। यह तब सक्रिय होता है जब उपयोगकर्ता लाइब्रेरी, फ्रेमवर्क, API संदर्भों के बारे में पूछता है या कोड उदाहरणों की आवश्यकता होती है —…
official
context7-mcp
upstash
यह कौशल तब उपयोग किया जाना चाहिए जब उपयोगकर्ता लाइब्रेरी, फ्रेमवर्क, API संदर्भों के बारे में पूछता है, या कोड उदाहरणों की आवश्यकता होती है। सेटअप प्रश्नों, कोड… के लिए सक्रिय होता है।
official
ctx7-cli
upstash
ctx7 CLI का उपयोग लाइब्रेरी दस्तावेज़ प्राप्त करने, AI कोडिंग कौशल प्रबंधित करने और Context7 MCP कॉन्फ़िगर करने के लिए करें। जब उपयोगकर्ता "ctx7" या "context7" का उल्लेख करे तो सक्रिय करें,…
official