Web UI
The browser application is the human-facing control surface for the shared game runtime.
Application Shell
Section titled “Application Shell”apps/web owns:
- app bootstrap and routing;
- API client functions;
- game registry lookup;
- internationalized UI strings;
- shared session and game types;
- AI runtime configuration UI;
- tests for registry, API, and application behavior.
Game Workspaces
Section titled “Game Workspaces”Each game workspace owns its board renderer, API wrapper, move controls, and workspace tests. Shared components handle activity feed rendering and board viewport behavior so game modules do not duplicate platform UI.
Static Website
Section titled “Static Website”The website directory holds the product website content, demo session data,
and browser tests for the public-facing site. Public docs are published through
the unified huaiwu_ai_web host, but this repository remains the source for
product behavior and local app documentation.
Embedded App
Section titled “Embedded App”The hap CLI embeds apps/web/dist when it is available at Rust build time.
hap serve serves that static app and the API from one origin, so the browser
client uses same-origin requests unless VITE_API_URL or VITE_API_PORT is
provided for development.