How kkutuio/kkutu-web works
KKuTuIO-Web is the web application and service layer for the KKuTu word game, paired with Svelte frontends and a Spring/Kotlin backend. A typical user flow enters through the portal, authenticates, establishes a game session, and connects to a game server; the repository also covers account security, rankings, records, moderation, shop, and Academy practice. The README establishes compatibility with the game server. Several frontend routes and backend subsystems are represented by their exact directories because their implementation was not sampled; their connections are therefore omitted or marked unverified.
Main entry points: GameClientManager.kt Game clients · LoginService.kt Login flow · oauth OAuth providers · EnginePanel.svelte Academy panels
Components 27
Web experience
Identity
- Login flow
src/main/kotlin/me/kkutuio/kkutuweb/login/LoginService.kt - OAuth providers
src/main/kotlin/me/kkutuio/kkutuweb/oauth - OAuth service
src/main/kotlin/me/kkutuio/kkutuweb/oauth/OAuthService.kt - Account security
src/main/kotlin/me/kkutuio/kkutuweb/identity/AccountSecurityService.kt - Identity data
src/main/kotlin/me/kkutuio/kkutuweb/identity/IdentityDao.kt
Game services
- Web API
src/main/kotlin/me/kkutuio/kkutuweb - Game sessions
src/main/kotlin/me/kkutuio/kkutuweb/session/SessionService.kt - Game clients
src/main/kotlin/me/kkutuio/kkutuweb/game/GameClientManager.kt - Game client
src/main/kotlin/me/kkutuio/kkutuweb/game/GameClient.kt - Game records
src/main/kotlin/me/kkutuio/kkutuweb/record - Rankings
src/main/kotlin/me/kkutuio/kkutuweb/ranking
Academy
- Academy panels
Frontpage/src/lib/academy/EnginePanel.svelte - Academy client
Frontpage/src/lib/academy/academyClient.js - Academy API
Frontpage/src/lib/academy/api.js - Academy worker
Frontpage/src/lib/academy/academy.worker.js - Word game engine
Frontpage/src/lib/academy/academy-engine-core.js
Operations
- Moderation
src/main/kotlin/me/kkutuio/kkutuweb/moderation/ModerationService.kt - Moderation policy
src/main/kotlin/me/kkutuio/kkutuweb/moderation/policy/ModerationPolicyEngine.kt - Shop services
src/main/kotlin/me/kkutuio/kkutuweb/shop
Other components
- Player
- KKuTu game server
- OAuth provider
Connections 21
- Player → Game portal: opens
- Player → Web pages: uses
- App entry → Game portal: routes to
- Login UI → Login flow: submits login
- Setup UI → Web API: submits setup
- Login flow → OAuth providers: authenticates with
src/main/kotlin/me/kkutuio/kkutuweb/login/LoginService.kt - OAuth providers → OAuth service: extends
src/main/kotlin/me/kkutuio/kkutuweb/oauth/facebook/FacebookOAuthService.kt - OAuth providers → OAuth provider: requests identity
src/main/kotlin/me/kkutuio/kkutuweb/oauth/facebook/FacebookOAuthService.kt - Login flow → Account security: uses account security
src/main/kotlin/me/kkutuio/kkutuweb/login/LoginService.kt - Account security → Identity data: reads and writes
- Web API → Game sessions: provides sessions
src/main/kotlin/me/kkutuio/kkutuweb/session/SessionService.kt - Game sessions → Game clients: issues game access
- Game clients → Game client: manages
src/main/kotlin/me/kkutuio/kkutuweb/game/GameClientManager.kt - Game clients → Game records: uses record bridge
src/main/kotlin/me/kkutuio/kkutuweb/game/GameClientManager.kt - KKuTu game server → Game clients: compatible connection
README.md - Academy panels → Academy client: uses
Frontpage/src/lib/academy/EnginePanel.svelte - Academy panels → Academy API: requests
Frontpage/src/lib/academy/EnginePanel.svelte - Academy client → Academy worker: dispatches
- Academy worker → Word game engine: runs
Frontpage/src/lib/academy/academy.worker.js - Moderation → Moderation policy: evaluates
src/main/kotlin/me/kkutuio/kkutuweb/moderation/ModerationService.kt - Moderation → Game clients: disconnects players
src/main/kotlin/me/kkutuio/kkutuweb/moderation/ModerationService.kt