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-docs
upstash
任意のライブラリ、フレームワーク、SDK、CLIツール、またはクラウドサービスに関する最新のドキュメントとコード例を取得します。ユーザーが特定の…について質問するときに使用してください。
official
context7-mcp
upstash
このスキルは、ユーザーがライブラリ、フレームワーク、APIリファレンスについて質問したり、コード例を必要とする場合に使用します。セットアップの質問やコード…に対してアクティブになります。
official
ctx7-cli
upstash
ctx7 CLIを使用して、ライブラリのドキュメントを取得し、AIコーディングスキルを管理し、Context7 MCPを設定します。ユーザーが「ctx7」または「context7」に言及したときに起動します…
official
docs
upstash
Context7から任意のプログラミングライブラリやフレームワークの最新ドキュメントとコード例を取得・検索します。依存関係のあるコードを記述する際に使用します。
official
documentation-lookup
upstash
トレーニングデータに依存せず、最新のライブラリドキュメントやコード例を取得します。ライブラリ名をContext7のドキュメントIDに解決し、セットアップ、設定、APIリファレンス情報を照会します。React、Vue、Svelte、Next.js、Express、Prisma、Supabase、Tailwindなどの主要なフレームワークやライブラリをサポートします。セットアップに関する質問、コード生成リクエスト、フレームワーク固有の問い合わせに対して自動的に起動します。バージョン対応のドキュメントと公式コードを返します...
official
find-docs
upstash
Context7 CLIを使用して、任意のライブラリの最新ドキュメントとコード例を取得します。
official
redis-js
upstash
Upstash Redis JavaScript/TypeScript SDKを使用して、サーバーレスRedis操作を行います。キャッシュ、セッションストレージ、レート制限、リーダーボード、全文検索などに使用します。
official
upstash-search-js
upstash
Upstash Searchのクイックスタート、基本概念、TypeScript SDKの使用方法をカバーするドキュメンテーションスキルのエントリポイントです。ユーザーが使い始め方について質問した場合に使用します。
official