Restate is a system for easily building resilient applications using distributed durable async/await.
This package contains the clients to interact with your Restate services, using fetch
.
import * as restate from "@restatedev/restate-sdk-clients";
// Import the type of the service to call
import type { Greeter } from "./greeter-service";
const Greeter: Greeter = { name: "greeter" };
// Instantiate the Restate client
const rs = restate.connect({ url: "http://localhost:8080" });
// Get a typed client for Greeter
const greeter = rs.serviceClient(Greeter);
// Send a request to greet
const greeting = await greeter.greet(name);
- 🤗️ Join our online community for help, sharing feedback and talking to the community.
- 📖 Check out our documentation to get quickly started!
- 📣 Follow us on Twitter for staying up to date.
- 🙋 Create a GitHub issue for requesting a new feature or reporting a problem.
- 🏠 Visit our GitHub org for exploring other repositories.
To use this client, add the dependency to your project:
npm install @restatedev/restate-sdk-clients
This library follows Semantic Versioning.