upstash-workflow-js
द्वारा upstash
Upstash Workflow TypeScript/JavaScript SDK के लिए कौशल, जो वर्कफ़्लो को परिभाषित, ट्रिगर और प्रबंधित करने के लिए उपयोग होते हैं। इस कौशल का उपयोग तब करें जब कोई उपयोगकर्ता वर्कफ़्लो बनाना चाहता है…
npx skills add https://github.com/upstash/skills --skill upstash-workflow-jsUpstash Workflow SDK
Quick Start
The Upstash Workflow SDK lets you expose serverless workflow endpoints and run them reliably using QStash under the hood.
Install:
npm install @upstash/workflow
Define a simple workflow endpoint:
import { serve } from "@upstash/workflow";
export const { POST } = serve(async (context) => {
await context.run("step-1", () => console.log("step 1"));
await context.run("step-2", () => console.log("step 2"));
});
Trigger it from your backend:
import { Client } from "@upstash/workflow";
const client = new Client({ token: process.env.QSTASH_TOKEN! });
await client.trigger({ url: "https://your-app.com/api/workflow" });
Other Skill Files
These files contain the full documentation. Use them for details, patterns, and advanced behavior.
- basics:
- basics/serve – How to expose workflow endpoints.
- basics/context – Full API for workflow
context(steps, waits, webhooks, events, invoke, etc.). - basics/client – Using the Workflow client to trigger, cancel, inspect, and notify runs.
- features:
- features/invoke – Cross‑workflow invocation.
- features/reliability – Retries, failure callbacks, and DLQ.
- features/flow-control – Rate limits, concurrency, and parallelism.
- features/wait-for-event – Notify and wait-for-event patterns.
- features/webhooks – Webhook creation and consumption.
- how to:
- how-to/local-dev – Local QStash dev server (auto via
QSTASH_DEV=true) and tunneling. - how-to/realtime – Realtime and human‑in‑the‑loop workflows.
- how-to/migrations – Migrating workflows safely.
- how-to/middleware – Adding middleware to workflows.
- how-to/local-dev – Local QStash dev server (auto via
- other files:
- rest-api – Low-level REST endpoints for interacting with QStash/Workflow.
- troubleshooting – Common debugging and environment issues.
- agents – Using Workflow with agents, orchestrators, and automation patterns.
upstash की और Skills
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