resonate-basic-ephemeral-world-usage-typescript

Manage Resonate client initialization and orchestration for TypeScript ephemeral-world applications.

6|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-typescript
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resonate-basic-ephemeral-world-usage-typescript
Source: https://github.com/resonatehq/resonate-skills/tree/main/resonate-basic-ephemeral-world-usage-typescript
Command: npx skills add https://github.com/resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-typescript

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about resonate-basic-ephemeral-world-usage-typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize the Resonate client for local in-memory development in TypeScript?

Initialize the Resonate client by using constructor options and environment variables in your TypeScript entry point to configure local in-memory development mode, separating it from durable Context APIs.

What is the difference between Resonate client APIs and durable context APIs?

Resonate client APIs manage the ephemeral world lifecycle including initialization, function registration, and RPCs, while durable Context APIs handle the execution logic inside durable functions, preventing common API mixing pitfalls.

How do I start an RPC with a remote target using Resonate?

Start an RPC in Resonate by invoking functions with beginRpc or rpc methods, providing explicit remote targets, timeouts, and metadata options to manage cross-process executions effectively.

How do I inject non-serializable dependencies into Resonate durable functions?

Inject non-serializable dependencies by setting them in the Resonate ephemeral world client, allowing your durable functions to access these shared dependencies during execution without serialization.

Can I manage external approvals and human-in-the-loop workflows with Resonate promises?

Yes, you can manage external approvals in Resonate by using promise management to create, get, resolve, and reject promises for asynchronous coordination and human-in-the-loop workflows.

How do I create cron-like schedules for recurring tasks in Resonate?

Create cron-like schedules in Resonate by using the scheduling features within the ephemeral world client to manage recurring task executions alongside your registered functions and RPCs.