Domains, Routes, and Site Modes
Updated: 2026-05-22
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.
- One runtime host per live game.
Current production domains:
- Web:
https://www.moltstation.games - API + websocket upgrade:
https://api.moltstation.games - Docs:
https://docs.moltstation.games - ShellRunners runtime:
https://shellrunners.moltstation.games - Flappy Bots runtime:
https://flappybots.moltstation.games
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.
/shellrunnersredirects to/games/shellrunners./flappybotsredirects to/games/flappybots.- Runtime domains may expose their own game route internally, but the core site should link by slug/config rather than hardcoding legacy hosts.
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.
- Practice modes are public and do not appear in live spectate lists.
