Docs · Sandboxes

One mechanic, no genre

A sandbox shows a single engine primitive in isolation, knobs exposed — how a part is used, without smuggling in a whole game's design. Learn the API here; decide what to build somewhere else entirely.

Run the shelf

git clone https://github.com/hellojanpacan/hayao-js && cd hayao-js
npm install && npm run dev
# then open http://localhost:5180/sandboxes/<lab>/

The sandbox contract

Lighter than an example, honest like one

  • Import only from @hayao — same seam as everything else.
  • Deterministic — re-roll a seed and it re-derives identically.
  • View nodes are cosmetic — knob state is canonical, paint stays out of the hash.
  • Headlessly inspectable — every lab exposes a probe(world).
  • No win, no lose, no genre — if it starts feeling like a game, it belongs in examples/.