The documentation you are viewing is for Dapr v1.7 which is an older version of Dapr. For up-to-date documentation, see the latest version.
JavaScript
The Dapr JS SDK will allow you to interface with the Dapr process that abstracts several commonly used functionalities such as Service-to-Service invocation, State Management, PubSub, and more.
Installation
To get started with the Javascript SDK, you can download the Dapr Javascript SDK package from NPM by running the following:
npm install --save dapr-client
Structure
The Dapr Javascript SDK contains two major components:
- DaprServer: The Dapr Server manages all communication from the Dapr Sidecar to your application
- DaprClient: The Dapr Client manages all communication from your application to the Dapr Sidecar
The above communication can be configured to use either of the gRPC or HTTP protocols.
Get Started
To help you get started, check out the resources below:
Available packages
-
DaprClient is a package that for how your application interacts with the Dapr sidecar, or other Dapr powered applications.
-
DaprServer is a package for how the Dapr sidecar interacts with your application, forwarding event subscriptions, invokes and more.
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.