react-three-game

Installation
SKILL.md

react-three-game

JSON-first prefabs. Mount with PrefabRoot, author with PrefabEditor, register custom components with registerComponent(), and reach into the live scene with useScene(), useNode(), or useEditorRef().

Scope

  • Author scenes as JSON Prefab trees.
  • Mount with PrefabRoot or edit with PrefabEditor.
  • Add custom logic by registering Components and rendering normal R3F children inside the editor canvas.
  • Read and mutate the live scene through one consistent surface: the Scene interface, exposed as useScene() (children of PrefabEditor / PrefabRoot) and editorRef.current (which extends Scene).

Schema

interface Prefab {
  id?: string;
  name?: string;
  root: GameObject;
}
Installs
99
First Seen
Jan 24, 2026