Skip to main content
HappyOyster offers interactive worlds and character performances:
  • Adventure — explore a world with held movement, look, and interaction controls.
  • Directing — steer a story with text instructions, pause, resume, and rewind.
  • Acting — create a reusable character from a prompt and one image, then direct its actions and speech.
The HappyOyster SDK is @reactor-models/happy-oyster. Choose the experience that matches how you want to interact: explore a world, direct a story, or perform with a character.

At a glance

Acting sends character video on main_video and speech on main_audio. It accepts text instructions; the API declares no incoming microphone track. Choose 9:16 (default) or 16:9 when creating the character. Paused time does not consume the performance limit.

Install

Choose an experience

Choose Adventure for world exploration, Directing for story instructions, or Acting for character performances. Adventure and Directing select a mode on HappyOysterProvider or HappyOysterModel. This example selects Directing:
The tutorial walks through world controls and the Acting lifecycle.

World lifecycle

A session has one current world. Worlds persist after a session ends, so save the encrypted_world_id returned by createWorld() and use attachWorld() to return later.
  1. connect() opens the Reactor session and synchronizes the first worldState snapshot.
  2. createWorld(params) builds a new world for the client’s selected mode.
  3. attachWorld(encryptedWorldId) reopens an existing world of the same mode.
  4. startTravel() begins the live world stream and reports how long that stream may run.
  5. Adventure uses move, look, interact, release, and stop.
  6. Directing uses instruct, pause, resume, and rewind.
An Adventure travel runs for up to 2 minutes and a Directing travel for up to 3, and the platform ends the stream when that length runs out. startTravel() reports an Adventure travel’s granted length as maxExperienceTimeSec, readable on the client and from useHappyOyster(). The startTravel reference covers both. The model publishes authoritative worldState and travelState snapshots. Drive UI from those snapshots instead of reconstructing state from individual calls.

Character lifecycle

Acting uses a reusable character and a performance. Create a character from a prompt and one image, or attach a saved character from the same account. Its connection name is reactor/happy-oyster-acting.
  1. Create or attach a character. Save its character_id from session_state for later reuse.
  2. Wait for character_status: "ready", then start a performance.
  3. Send instructions while the performance is live or paused. Paused instructions take effect after resume.
  4. End the performance. Wait for snapshot phase ended before starting another one with the same character.
Character creation takes about 2 minutes at 480p or 4 minutes at 720p. Starting a performance takes about 10 seconds. These are estimates. Use session_state to show progress and control the UI. The API does not specify a character retention period. Handle CHARACTER_NOT_FOUND if a saved id can no longer be attached. See the Acting API, tutorial, and prompt guide.

Quick start

The fastest path to a working HappyOyster app is the create-reactor-app CLI, which scaffolds a runnable project for you. You can also clone the open-source reference frontend directly, or follow the tutorial for a guided walkthrough.
See the tutorial for a full application flow, the schema reference for every typed method and state field, and the prompt guide for world authoring.