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

docs
upstash
Context7에서 최신 문서와 코드 예제를 검색하고 질의하여 모든 프로그래밍 라이브러리나 프레임워크에 대한 정보를 제공합니다. 다음에 의존하는 코드를 작성할 때 사용하세요…
ctx7-cli
upstash
ctx7 CLI를 사용하여 라이브러리 문서를 가져오고, AI 코딩 스킬을 관리하며, Context7 MCP를 구성하세요. 사용자가 "ctx7" 또는 "context7"을 언급할 때 활성화됩니다.
documentation-lookup
upstash
훈련 데이터에 의존하지 않고 최신 라이브러리 문서와 코드 예제를 가져옵니다. 라이브러리 이름을 Context7 문서 ID로 변환한 후 설정, 구성 및 API 참조 정보를 조회합니다. 주요 프레임워크 및 라이브러리(React, Vue, Svelte, Next.js, Express, Prisma, Supabase, Tailwind 등)를 지원합니다. 설정 질문, 코드 생성 요청 및 프레임워크 관련 문의에 자동으로 활성화됩니다. 버전 인식 문서와 공식 코드를 반환합니다...
redis-js
upstash
Upstash Redis JavaScript/TypeScript SDK를 사용하여 서버리스 Redis 작업을 수행합니다. 캐싱, 세션 저장소, 속도 제한, 리더보드, 전체 텍스트 검색 등에 사용합니다.
upstash-search-js
upstash
Upstash Search 빠른 시작, 핵심 개념 및 TypeScript SDK 사용법을 다루는 문서 스킬의 진입점입니다. 사용자가 시작 방법을 묻거나…
upstash/search TypeScript SDK
upstash
upstash/search-typescript-sdk — AI 에이전트를 위한 설치 가능한 스킬로, upstash/search-js에 의해 게시되었습니다.
upstash
upstash
Upstash TypeScript/JavaScript SDK와 함께 Redis, Box, QStash, Workflow, Vector, Search 및 Ratelimit을 포함한 모든 SDK를 사용할 수 있습니다. 사용자가 이 중 어떤 것과 작업할 때 사용하세요.
upstash-box-js
upstash
@upstash/box TypeScript/JavaScript SDK를 사용하여 AI 에이전트, 셸, 파일 시스템, git과 함께 샌드박스 클라우드 컨테이너를 작업합니다. Upstash로 빌드할 때 사용하세요.