Skip to main content

JavaScript Workflow SDK

Build stateful, long-running, reliable workflows using the Dapr Workflow JavaScript SDK with Catalyst. The Dapr Workflow JavaScript SDK provides a powerful way to orchestrate complex business processes using Node.js and TypeScript.

Resources

Prerequisites:

Installation

Install the Dapr JavaScript SDK via npm:

npm install --save @dapr/dapr

Core Application

Use the essential components of a Dapr Workflow application (Workflows and Activities) to build and run a workflow application.

Dapr Client

Connect to the Dapr Workflow API and start, get status, and manage workflow executions.

Failure Detection

Explore how your application can detect failures using timeouts.

External Events

Wait for external input and send events to running workflows.

Control Workflow Progression

Interrupt a workflow execution with pause, resume, or terminate actions.

Advanced Features

Observability

Configure and use observability features to monitor and debug workflows.

Getting Started