Skip to content

Examples

HyperToken ships three runnable examples. They are demonstrations, not a claim that every game should use the same state model:

Example Best introduction Important boundary
Blackjack Engine-backed cards, zones, betting, and agents The browser implementation is a separate bundled game engine.
Cuttle Standalone rules, hidden information, and layered networking The serverless demo uses a trusted dealer; it is not a fair-shuffle protocol.
Watershed Concurrent CRDT writes with no turns or secrets Its board is derived from token records, not stored as a canonical grid.

Collaborative Canvas, Virtual Tabletop, and Planning Board are design blueprints and recipes only. They are not shipped examples. Custom Game shows the smallest source-backed extension pattern.

All three runnable examples use Node.js 18+ and the repository's npm scripts. Start with npm install, then npm run build when a compiled CLI is required.