How seokpan/seokpan-hybrid-app works
Seokpan is a browser-based multiplayer room and voting game, with guest/member identity, lobby and room participation, live updates, game play, chat, presence, and rankings. The main user journey runs from authentication or guest entry through lobby/room participation and game voting, with WebSocket updates keeping views current. The backend separates HTTP/API routing, application use cases, and persistence providers. The README describes migration and deployment validation, but those are repository operations rather than runtime product components. Some feature paths are documented by the tree and index only; uncertain links are omitted.
Main entry points: App.tsx Route shell · app.py Application assembly · RoomPage.tsx Room view · service.py Game resolution
Components 21
Web client
- Route shell
frontend/src/App.tsx - Authentication UI
frontend/src/auth/AuthPage.tsx - Session recovery
frontend/src/session/context.tsx - API client
frontend/src/api/client.ts - Lobby view
frontend/src/lobby/LobbyPage.tsx - Room view
frontend/src/room/RoomPage.tsx - Game and votes
frontend/src/game/GamePanel.tsx - Chat panel
frontend/src/chat/ChatPanel.tsx - Rankings
frontend/src/statistics/RankingsPage.tsx - Online presence
frontend/src/presence/OnlineCount.tsx
HTTP and realtime API
- Application assembly
backend/src/seokpan/app.py - Identity routes
backend/src/seokpan/api/identity.py - Room routes
backend/src/seokpan/api/room.py - Game routes
backend/src/seokpan/api/game.py - Realtime delivery
backend/src/seokpan/api/realtime.py
Application use cases
- Identity services
backend/src/seokpan/identity/application/auth_session.py - Room lifecycle
backend/src/seokpan/room/application/lobby.py - Game resolution
backend/src/seokpan/game/application/service.py
Persistence and runtime state
- Redis state adapters
backend/src/seokpan/persistence/redis/session_adapter.py - MariaDB adapters
backend/src/seokpan/persistence/mariadb/game_adapter.py
Other components
- Player
Connections 23
- Player → Route shell: opens
frontend/src/App.tsx - Route shell → Authentication UI: routes to
frontend/src/App.tsx - Route shell → Lobby view: routes to
frontend/src/App.tsx - Route shell → Room view: renders
frontend/src/App.tsx - Route shell → Rankings: routes to
frontend/src/App.tsx - Route shell → Online presence: renders
frontend/src/App.tsx - Authentication UI → Session recovery: uses
frontend/src/auth/AuthPage.tsx - Session recovery → API client: requests
frontend/src/session/context.tsx - Lobby view → API client: requests
frontend/src/lobby/LobbyPage.tsx - Room view → Game and votes: renders
- Room view → Chat panel: renders
- API client → Identity routes: HTTP calls
- Application assembly → Identity routes: registers
backend/src/seokpan/app.py - Application assembly → Room routes: registers
backend/src/seokpan/app.py - Application assembly → Game routes: registers
backend/src/seokpan/app.py - Application assembly → Realtime delivery: registers
backend/src/seokpan/app.py - Identity routes → Identity services: delegates
backend/src/seokpan/api/identity.py - Room routes → Room lifecycle: delegates
backend/src/seokpan/api/room.py - Game routes → Game resolution: delegates
backend/src/seokpan/api/game.py - Game resolution → Room lifecycle: reads room state
backend/src/seokpan/game/application/service.py - Identity services → Redis state adapters: session storage
backend/src/seokpan/persistence/redis/session_adapter.py - Game resolution → MariaDB adapters: game storage
- Realtime delivery → Room view: streams events