The documentation you are viewing is for Dapr v1.8 which is an older version of Dapr. For up-to-date documentation, see the latest version.
JavaScript
A client library for building Dapr apps in JavaScript and TypeScript. This client abstracts the public Dapr APIs like service to service invocation, state management, pub/sub, secrets, and much more, and provides a simple, intuitive API for building applications.
Installation
To get started with the Javascript SDK, install the Dapr JavaScript SDK package from NPM:
npm install --save @dapr/dapr
⚠️ dapr-client is now deprecated. Please see #259 for more information.
Structure
The Dapr Javascript SDK contains two major components:
- DaprServer: to manage all Dapr sidecar to application communication.
- DaprClient: to manage all application to Dapr sidecar communication.
The above communication can be configured to use either of the gRPC or HTTP protocols.
Getting Started
To help you get started, check out the resources below:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.