This repository contains contract-first API definitions for the game platform.
Contracts in this repository are the single source of truth for:
- WebSocket message formats
- Room lifecycle events
- Game-specific actions and state schemas
This repository contains no runtime code.
orchestrator/: Public entry-point APIslobby/: Lobby service contractsaccount/: Economy & ledger contractspayment/: Payment provider integration contractsglobal/: Shared contracts that apply to all gamesgames/: Game-specific contracts isolated per game_template/: Template for adding new games
- Runtime code is forbidden
- Game services must not redefine contracts locally
- A game service may only consume:
global/*games/<its-own-game>/*
- Games must never import other games’ contracts
- Contracts are source of truth
- Services must conform to contracts
- No implementation details here
- Versioned and immutable once released