How susutae/fpl-settlement-room works
FPL Settlement Room is a league dashboard whose main workflow loads mini-league standings and manager gameweek histories, ranks weekly results, and presents weekly and season settlement totals. The client page also supports cup selections, persisted display/proxy settings, and sample-data fallback; a same-origin route relays FPL API requests. Scoring and orchestration are concentrated in the page module. The excerpts do not show every rendering or storage helper, so the graph keeps those responsibilities at the page level and omits unverified internal links.
Main entry points: page.tsx Dashboard page · route.ts FPL API relay
Components 11
Dashboard
- Dashboard page
app/page.tsx - Display settings
app/page.tsx
Live FPL Data
- League loader
app/page.tsx - History loader
app/page.tsx - FPL API relay
app/api/fpl/route.ts
Settlement
- Weekly ranking
app/page.tsx - Settlement totals
app/page.tsx - Sample data fallback
app/page.tsx
Other components
- League manager
- Browser storage
- FPL API
Connections 12
- League manager → Dashboard page: views
README.md - Dashboard page → League loader: refreshes
app/page.tsx - League loader → FPL API relay: requests data
README.md - History loader → FPL API relay: requests histories
README.md - FPL API relay → FPL API: fetches API
app/api/fpl/route.ts - League loader → Weekly ranking: ranks weeks
app/page.tsx - History loader → Weekly ranking: provides scores
app/page.tsx - Weekly ranking → Settlement totals: feeds weekly totals
app/page.tsx - Dashboard page → Settlement totals: projects awards
app/page.tsx - Dashboard page → Sample data fallback: falls back
app/page.tsx - League manager → Display settings: configures
README.md - Display settings → Browser storage: persists settings
README.md