@syi0808/client
v0.26.6
Published
Client SDK for Aiki - connect to the server, start workflows, and manage execution
Readme
@syi0808/client
Client SDK for Aiki durable execution platform.
Installation
npm install @syi0808/clientQuick Start
import { client } from "@syi0808/client";
import { orderWorkflowV1 } from "./workflows.ts";
const aikiClient = client({
url: "http://localhost:9850",
apiKey: "your-api-key",
});
// Start a workflow
const handle = await orderWorkflowV1.start(aikiClient, {
orderId: "order-123",
});
// Wait for completion
const result = await handle.waitForStatus("completed");Features
- Server Connection - Connect to the Aiki server via HTTP
- Workflow Management - Start workflows with type-safe inputs
- Context Injection - Pass application context to workflows
- Custom Logging - Plug in your own logger
Documentation
For comprehensive documentation including configuration options and context injection, see the Client Guide.
Related Packages
- @syi0808/workflow - Define workflows and tasks
- @syi0808/worker - Execute workflows
License
Apache-2.0
