- 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.
@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
- npm
- pnpm
Choose an experience
Choose Adventure for world exploration, Directing for story instructions, or Acting for character performances. Adventure and Directing select amode on HappyOysterProvider or
HappyOysterModel. This example selects Directing:
World lifecycle
A session has one current world. Worlds persist after a session ends, so save theencrypted_world_id returned by createWorld() and use attachWorld() to return later.
connect()opens the Reactor session and synchronizes the firstworldStatesnapshot.createWorld(params)builds a new world for the client’s selected mode.attachWorld(encryptedWorldId)reopens an existing world of the same mode.startTravel()begins the live world stream and reports how long that stream may run.- Adventure uses
move,look,interact,release, andstop. - Directing uses
instruct,pause,resume, andrewind.
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 isreactor/happy-oyster-acting.
- Create or attach a character. Save its
character_idfromsession_statefor later reuse. - Wait for
character_status: "ready", then start a performance. - Send instructions while the performance is
liveorpaused. Paused instructions take effect after resume. - End the performance. Wait for snapshot phase
endedbefore starting another one with the same character.
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 thecreate-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.