How narimanhasni/poker-buyouts works
Poker Settler is a browser-based tool for entering a home-game roster and chip totals, previewing a minimized payment settlement, and saving confirmed results to a shared Supabase-backed Hall of Fame. The workflow and major documented capabilities are represented, including leaderboard and session history, clearing history, sharing, and mobile interactions. The implementation is largely concentrated in script.js; the source excerpts are partial, so uncertain internal wiring is omitted.
Main entry points: script.js Supabase Client · index.html App Shell · supabase_schema.sql Game History Store · config.js Supabase Credentials
Components 21
Game Interface
- App Shell
index.html - Responsive Styling
styles.css - App Logic
script.js
Settlement Workflow
- Player Entry
script.js - Chip Conversion
script.js - Net Calculation
script.js - Payment Optimizer
script.js - Settlement Preview
script.js - Save Confirmation
script.js - Result Sharing
script.js
Shared Hall of Fame
- Hall Data Loading
script.js - Stat Cards
script.js - Leaderboard
script.js - SQL Stats Table
script.js - Session History
script.js - Clear History
script.js
Supabase Storage
- Supabase Credentials
config.js - Supabase Client
script.js - Game History Store
supabase_schema.sql
Other components
- Game Crew
- Group Chat
Connections 24
- Game Crew → App Shell: opens app
- App Shell → App Logic: loads logic
- App Shell → Responsive Styling: applies styles
- Game Crew → Player Entry: enters game
- Player Entry → Chip Conversion: sets rate
- Chip Conversion → Net Calculation: converts chips
- Net Calculation → Payment Optimizer: computes nets
- Payment Optimizer → Settlement Preview: previews transfers
- Game Crew → Save Confirmation: confirms save
- Save Confirmation → Supabase Client: saves session
- Supabase Client → Game History Store: writes results
- Supabase Credentials → Supabase Client: configures client
- Game Crew → Result Sharing: requests share
- Result Sharing → Group Chat: shares results
- Game Crew → Hall Data Loading: opens Hall
- Hall Data Loading → Supabase Client: loads history
- Supabase Client → Game History Store: reads stats
- Hall Data Loading → Stat Cards: renders stats
- Hall Data Loading → Leaderboard: renders rankings
- Hall Data Loading → SQL Stats Table: renders table
- Hall Data Loading → Session History: renders sessions
- Game Crew → Clear History: clears history
- Clear History → Supabase Client: deletes sessions
- Supabase Client → Game History Store: clears records