How anshikagknp/fairshare-expense-splitter works
FairShare is a browser-based group expense splitter. Users add members and record expenses with equal or custom shares; the app calculates net balances and greedily reduces them to a minimal set of settlement payments, while showing expense history. Users can work in Guest Mode or sign in for Firebase-backed cloud sync. The README documents these product capabilities; the sampled script excerpt shows UI event handling and Firestore loading, but not the full calculation or authentication implementation.
Main entry points: script.js App Controller · index.html FairShare Page
Components 11
User Interface
- FairShare Page
index.html - App Controller
script.js
Expense Ledger
- Member Management
script.js - Expense Splitting
script.js - Expense History
script.js
Balance Settlement
- Net Balances
script.js - Greedy Settlement
script.js
Identity and Sync
- Account Sign-In
script.js - Firebase Auth
- Cloud Firestore
Other components
- Group Member
Connections 10
- Group Member → FairShare Page: uses
README.md - FairShare Page → App Controller: binds events
script.js - App Controller → Member Management: updates
script.js - App Controller → Expense Splitting: records splits
README.md - App Controller → Expense History: shows
README.md - App Controller → Net Balances: calculates
README.md - Net Balances → Greedy Settlement: nets debts
README.md - App Controller → Account Sign-In: offers sign-in
README.md - Account Sign-In → Firebase Auth: authenticates
README.md - App Controller → Cloud Firestore: loads and saves
script.js