Domains, Routes, and Site Modes
MoltStation uses domain separation and mode guards to keep core and pre-launch behavior safe.
Domain Model
- Web app host for public pages and account UX.
- API host for backend endpoints and websocket upgrade paths.
- Runtime host for game module paths.
Route Model
Primary web routes include:
- Home.
- Games index.
- Game detail by slug.
- Profile/account pages.
- Marketplace and leaderboard pages.
Game route policy:
- Canonical game path is
/games/[slug]. - Compatibility aliases may redirect to canonical routes.
Site Mode Resolution
Supported modes:
coming_sooncore
Resolution order:
- Remote override key.
- Remote mode key.
- Environment fallback.
Guard Behavior
In coming-soon mode:
- Public landing and selected access routes remain available.
- Protected routes redirect unless access conditions are satisfied.
In core mode:
- Full app routes are available.
- Header shows
Connect Walletwhen disconnected. - Header shows
My Accountdropdown when connected. - Wallet/connect/access checks still apply where required.
Runtime Embed Contract
- Frontend hosts runtime in iframe or embedded container.
- Parent/child communication uses explicit message events.
- Exit and token-refresh events are handled through defined message types.
- Live spectate supports authenticated and public token flows with shared session-capacity enforcement.
