JavaScript SDK
Build distributed applications using the Dapr JavaScript SDK. The Dapr JavaScript SDK provides client libraries to interact with Dapr building blocks and APIs.
Start hereโ
Quickstarts
Learn hands-on
Durable Execution & Dapr University ยท Learn this hands-onDapr 101: State Management, Service Invocation, and Pub/Sub APIsLearn Dapr's core building blocks โ state management, service invocation, and pub/sub โ through hands-on coding.Start the trackElsewhere in JavaScript
- Workflows with JavaScript
- AI agents: Mastra
Resourcesโ
Prerequisites:
- Node.js LTS or Current (Download)
- Dapr JavaScript Client/Server SDK
Installationโ
Install the Dapr JavaScript SDK via npm:
npm install --save @dapr/dapr
Dapr Client APIsโ
Use the Dapr Client to interact with Dapr building blocks and APIs with JavaScript-specific examples and code samples.
Dapr Serverโ
Build services that can be invoked by other services and subscribe to topics using JavaScript.
Configuring the SDK Communication Protocol
Create services that can be invoked by other Dapr applications using HTTP or gRPC