$npx skillfedfor your agent

upstash-qstash-js

The QStash JavaScript SDK enables HTTP-based messaging and scheduling across serverless platforms. Publish messages to endpoints, create delayed or scheduled delivery, manage FIFO queues with flow control, and verify webhook signatures. Works with Next.js, Cloudflare Workers, Deno, Node.js, and other runtimes.

upstash-qstash-js publishes and routes HTTP messages to endpoints with scheduling and queue management.

AI-generated summary based on this skill's SKILL.md

15 2 MITupdated by upstash

Decision gist · record as of 2026-07-14

upstash-qstash-js publishes and routes HTTP messages to endpoints with scheduling and queue management. The QStash JavaScript SDK enables HTTP-based messaging and scheduling across serverless platforms. Publish messages to endpoints, create delayed or scheduled delivery, manage FIFO queues with flow control, and verify webhook signatures. Works with Next.js, Cloudflare Workers, Deno, Node.js, and other runtimes.

manual: git clone https://github.com/upstash/skills → cp -r skills/skills/upstash-qstash-js ~/.claude/skills/upstash-qstash-js
skills/upstash-qstash-js/SKILL.md · version 338431af

Use it when

  • QStash JavaScript SDK supports delayed and scheduled message delivery in serverless environments.
  • The upstash-qstash-js SDK provides signature verification to authenticate incoming webhooks.

Verify before relying

Read SKILL.md below before installing (13 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

upstash/skills/upstash-qstash-js · repository language: JavaScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I publish messages with QStash using the JavaScript SDK?

The upstash-qstash-js SDK lets you publish HTTP messages to endpoints directly. Use the Client to send messages with `client.publishJSON()` or `client.publish()`, specifying your target URL and payload. Messages are routed through QStash's infrastructure and delivered as HTTP requests to your endpoint, making it ideal for serverless architectures like Next.js, Node.js, and Cloudflare Workers.

What scheduling and delay options does QStash support?

QStash JavaScript SDK supports delayed and scheduled message delivery in serverless environments. You can set delivery times using the `delay` parameter (in seconds) or `scheduled` parameter (Unix timestamp). This enables you to defer work, implement retry logic, or trigger actions at specific times without maintaining background jobs.

How do I verify webhook signatures and secure incoming QStash messages?

The upstash-qstash-js SDK provides signature verification to authenticate incoming webhooks. Use the Receiver class to validate that messages came from QStash by checking the signature header. This ensures your endpoints only process legitimate QStash callbacks and protects against unauthorized requests.

How can I set up FIFO queues with controlled parallelism in QStash?

QStash JavaScript SDK supports FIFO queue management with controlled parallelism. Configure queue ordering and concurrency limits to ensure messages are processed in sequence while controlling how many messages run in parallel. This is useful for maintaining order-dependent workflows in serverless environments.

What happens to failed messages in QStash, and how do I handle retries?

The upstash-qstash-js SDK handles failed messages through dead letter queues (DLQ) and automatic retry logic. When a message fails to deliver, QStash can retry according to your policy and eventually route undeliverable messages to a DLQ for inspection and manual recovery.

Which runtimes and platforms does the QStash JavaScript SDK work with?

The upstash-qstash-js SDK is compatible with Next.js, Node.js, Cloudflare Workers, Deno, and other JavaScript runtimes. It works across serverless platforms and edge environments, making it flexible for modern application architectures. The MIT license allows free use in commercial and open-source projects.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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

(truncated - see the full file via the links below)

File tree — 13 files
skills/upstash-qstash-js/SKILL.md
skills/upstash-qstash-js/advanced/callbacks.md
skills/upstash-qstash-js/advanced/deduplication.md
skills/upstash-qstash-js/advanced/dlq.md
skills/upstash-qstash-js/advanced/multi-region/summary.md
skills/upstash-qstash-js/advanced/multi-region/verify-multi-region-setup.ts
skills/upstash-qstash-js/fundamentals/local-development.md
skills/upstash-qstash-js/fundamentals/publishing-messages.md
skills/upstash-qstash-js/fundamentals/queues-and-flow-control.md
skills/upstash-qstash-js/fundamentals/schedules.md
skills/upstash-qstash-js/fundamentals/url-groups.md
skills/upstash-qstash-js/verification/platform-specific/nextjs.md
skills/upstash-qstash-js/verification/receiver.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Publish and route HTTP messages to endpoints using QStash SDK”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

upstash
by upstash · upstash/skills

Access unified documentation and guidance for all Upstash SDKs including Redis, QStash, Vector, Search, Workflow, and Box. Choose the relevant sub-skill for your language and use case, whether you're caching, scheduling messages, building vector applications, or orchestrating serverless workflows.

MITupdated Jul 2026
★ 15repo stars
upstash-workflow-js
by upstash · upstash/skills

Build reliable serverless workflows with Upstash Workflow SDK for TypeScript/JavaScript. Define workflow endpoints, execute steps sequentially, and trigger runs from your backend using the Workflow client. Includes patterns for retries, webhooks, cross-workflow invocation, and local development.

MITupdated Jul 2026
★ 15repo stars
upstash-cli
by upstash · upstash/skills

Upstash CLI lets you manage Redis, Vector, Search, and QStash resources programmatically through the Upstash Developer API. All commands output JSON and run non-interactively, making them ideal for automation workflows. Handle database creation, backups, indexes, team members, and service configuration from the command line.

MITupdated Jul 2026
★ 15repo stars
Upstash Workflow
by lobehub · lobehub/lobehub

This skill guides you through implementing Upstash Workflow and QStash async patterns in LobeHub. It covers three core architectural layers—entry point validation, cursor-based pagination with fan-out chunking, and single-item task execution—plus dry-run mode to preview work before committing. Use it to orchestrate large-scale batch processing while respecting rate limits and step constraints.

no license declared → metadata onlyupdated Jul 2026
★ 80,894repo stars
event-driven-architecture
by travisjneuman · travisjneuman/.claude

Master asynchronous system design through message brokers, event sourcing, and distributed transaction patterns. This skill covers Kafka, RabbitMQ, SQS/SNS integration alongside CQRS, saga orchestration, idempotency strategies, and failure handling with dead letter queues—everything needed to build resilient, decoupled microservice architectures.

MITupdated Jul 2026
★ 85repo stars
upstash-redis-js
by upstash · upstash/skills

Build serverless Redis applications with the Upstash Redis TypeScript/JavaScript SDK. Handles caching, session storage, rate limiting, leaderboards, and full-text search with automatic serialization of native JavaScript types. Includes support for all Redis data structures and Lua scripting.

MITupdated Jul 2026
★ 15repo stars
Tags
event-driven-messagingserverless-infrastructureasync-task-schedulingwebhook-managementqueue-orchestrationdistributed-systemsedge-computingreliability-patternsworkflow-automation