@restatedev/restate-sdk-clients
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Documentation Examples Discord Twitter

Restate Typescript SDK Clients

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);

Community

Using the SDK

To use this client, add the dependency to your project:

npm install @restatedev/restate-sdk-clients

Versions

This library follows Semantic Versioning.

Readme

Keywords

none

Package Sidebar

Install

npm i @restatedev/restate-sdk-clients

Weekly Downloads

834

Version

1.0.0

License

MIT

Unpacked Size

83.4 kB

Total Files

15

Last publish

Collaborators

  • pavel.tcholakov
  • asoli_restate
  • slinkydeveloper-restatedev
  • stephanewenrestate
  • jackatrestatedotdev