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
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.