resonate-basic-ephemeral-world-usage-typescript

Official

Manage Resonate client lifecycle and orchestration

Authorresonatehq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides clear, practical patterns for writing and organizing Ephemeral World code that initializes the Resonate client, registers functions, starts and monitors executions, manages cross-process RPCs, and shares non-serializable dependencies, removing common confusion between ephemeral (client) and durable (context) APIs.

Core Features & Use Cases

  • Client Initialization Modes: Guidance for local in-memory development and server-connected configurations using environment variables and constructor options.
  • Function Registration & Invocation: Best practices for registering functions by reference, invoking with run/beginRun for local execution, and rpc/beginRpc for remote execution with explicit targets.
  • Promise Management & Human-in-the-Loop: Create, get, resolve, and reject promises for external approvals and asynchronous coordination.
  • Dependency Injection & Scheduling: Set non-serializable dependencies in the ephemeral world for use by durable functions and create cron-like schedules for recurring tasks.
  • Common Pitfalls & Decision Rules: Clear rules to avoid mixing Client and Context APIs, handle in-memory argument wrapping, and use correct RPC targets.

Quick Start

Initialize a Resonate client, set required dependencies, register your workflow functions, and start a run or RPC with a unique execution id to observe the ephemeral-to-durable flow.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: resonate-basic-ephemeral-world-usage-typescript
Download link: https://github.com/resonatehq/resonate-skills/archive/main.zip#resonate-basic-ephemeral-world-usage-typescript

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.