How l9djulo/dalia-reloaded works
DALIA is a League of Legends draft assistant: the user connects a live League champion-select session or enters picks and bans manually, then receives pool-aware champion recommendations with matchup, composition, mastery and interaction reasoning. The React/Tauri client coordinates draft state and calls a FastAPI service; the service scores candidates and persists user data in PostgreSQL. Separate capabilities cover pool advice, replays/history, duo coordination and optional model training. Some backend subsystems are represented by their documented directory because their implementation was not sampled.
Main entry points: session.py Database sessions · routes.py API routes · App.jsx Application shell · DraftScreen.jsx Draft workspace
Components 30
Draft client
- Application shell
client/src/App.jsx - Draft workspace
client/src/components/Draft/DraftScreen.jsx - Draft state
client/src/stores/draftStore.js - Session sync
client/src/services/draftSession.js - LCU connector
client/src-tauri/src/lcu.rs - HTTP client
client/src/services/api.js - Pool editor
client/src/components/ChampionPool/ChampionPoolEditor.jsx - Duo panel
client/src/components/DuoQ/DuoPanel.jsx - History and replay
client/src/components/HistoryPage.jsx - Sign-in
client/src/components/Auth/AuthPage.jsx
Draft analysis
- Recommendation engine
server/app/services/draft_engine.py - Scoring terms
server/app/scoring - Pool advisor
server/app/services/pool_advisor.py - Champion catalog
server/app/services/champion_data.py - Game data fetcher
server/app/services/data_fetcher.py - Personal statistics
server/app/services/personal_stats.py
Accounts and history
- Duo routes
server/app/api/duo_routes.py - History routes
server/app/api/history_routes.py - Account and draft records
server/app/db/models.py
Server platform
- API routes
server/app/api/routes.py - Auth routes
server/app/api/auth_routes.py - User routes
server/app/api/user_routes.py - Token authentication
server/app/auth/deps.py - Database sessions
server/app/db/session.py
Model lifecycle
- Model training and prediction
server/app/ml - Patch model watcher
server/app/ml/patch_watcher.py
Other components
- Player
- League client
- PostgreSQL
- Riot API
Connections 33
- Player → Application shell: uses
- League client → LCU connector: champion select
- Application shell → Draft workspace: renders
client/src/App.jsx - Application shell → Session sync: starts session
client/src/App.jsx - Session sync → Draft state: updates
client/src/services/draftSession.js - Session sync → LCU connector: reads selection
- Draft workspace → Draft state: uses
- Draft workspace → HTTP client: requests advice
- HTTP client → API routes: HTTP requests
- Sign-in → Auth routes: signs in
- Pool editor → User routes: manages pool
- Duo panel → Duo routes: manages duo
- History and replay → History routes: loads replays
- API routes → Recommendation engine: recommends
server/app/api/routes.py - Recommendation engine → Scoring terms: aggregates terms
server/app/services/draft_engine.py - Recommendation engine → Champion catalog: loads champion data
server/app/services/draft_engine.py - Champion catalog → Game data fetcher: fetches data
server/app/services/champion_data.py - Game data fetcher → Riot API: fetches game data
- API routes → Pool advisor: diagnoses pool
server/app/api/routes.py - API routes → Token authentication: resolves user
server/app/api/routes.py - Auth routes → Database sessions: opens session
server/app/api/auth_routes.py - User routes → Database sessions: opens session
server/app/api/user_routes.py - Duo routes → Database sessions: opens session
server/app/api/duo_routes.py - History routes → Database sessions: opens session
server/app/api/history_routes.py - Token authentication → Database sessions: loads user
server/app/auth/deps.py - Database sessions → PostgreSQL: queries
server/app/db/session.py - Account and draft records → PostgreSQL: maps records
server/app/db/models.py - History routes → Account and draft records: reads and writes
server/app/api/history_routes.py - Duo routes → Account and draft records: manages links
server/app/api/duo_routes.py - API routes → Personal statistics: fetches player stats
server/app/api/routes.py - Personal statistics → Riot API: requests statistics
- Patch model watcher → Model training and prediction: checks model
- Model training and prediction → Riot API: collects match data