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의 다른 스킬

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