npx skills add ...
npx skills add upstash/skills --skill upstash-workflow-js
npx skills add upstash/skills --skill upstash-workflow-js
Skills for the Upstash Workflow TypeScript/JavaScript SDK to define, trigger, and manage workflows. Use this Skill whenever a user wants to create workflow endpoints, run steps, or interact with the Upstash Workflow client.
The Upstash Workflow SDK lets you expose serverless workflow endpoints and run them reliably using QStash under the hood.
Install:
Define a simple workflow endpoint:
Trigger it from your backend:
These files contain the full documentation. Use them for details, patterns, and advanced behavior.
context (steps, waits, webhooks, events, invoke, etc.).QSTASH_DEV=true) and tunneling.import { Client } from "@upstash/workflow";
const client = new Client({ token: process.env.QSTASH_TOKEN! });
await client.trigger({ url: "https://your-app.com/api/workflow" });