Orchestration Cluster API TypeScript client
Use the Orchestration Cluster API TypeScript client to connect to Camunda 8, deploy process models, and interact with the Orchestration Cluster REST API.
About this client
This lightweight package provides focused support for the Orchestration Cluster REST API.
When to use this package
Use the @camunda8/orchestration-cluster-api package if:
- You are starting a new project.
- You do not need the gRPC API.
- You are using Camunda 8.9 or later.
- You are developing an application for the web browser.
Differences between the package and the SDK
| Difference | Description |
|---|---|
| Configuration keys | Environment variable configuration is different when using the package directly or using it via the SDK.
|
| ESM | The Orchestration Cluster API client is a dual ESM/CJS package, allowing you to use ESM and tree shake the package as a dependency. |
Use the Orchestration Cluster API package
The following example retrieves the cluster topology:
-
Install the package in your project:
npm i @camunda8/orchestration-cluster-api -
Import it into your application:
import { createCamundaClient } from "@camunda8/orchestration-cluster-api";
const camunda = createCamundaClient();
async function main() {
const response = await camunda.getTopology();
console.log(JSON.stringify(response, null, 2));
}
main();The
createCamundaClientfunction returns a strongly typed client.
Example project
See a complete example project that demonstrates how to use the package.
API documentation
See the package README and the full API documentation for more details.