How rohitk-18/devsplit works
DevSplit is a no-signup group expense splitter. Participants create and join trips through shareable links, record expenses and equal splits, then view calculated settlements. Flask routes coordinate these stages and persist trip, participant, expense, and split records; a settlement helper derives balances from those records. The README documents persistent browser sessions, trip expiry, and PostgreSQL/SQLite support. Some route and template details were not sampled, so undocumented wiring is omitted.
Main entry points: routes.py Trip creation and joining · app.py Flask application · models.py Trip and expense records · utils.py Settlement algorithm
Components 13
Participant experience
- Trip dashboard
templates/trip.html - Join page
templates/join.html - Trip creation page
templates/index.html - Browser interactions
static/js/main.js - Responsive styling
static/css/style.css
Trip and expense workflow
- Flask application
app.py - Trip creation and joining
routes.py - Persistent trip sessions
routes.py - Expense management
routes.py
Settlement calculation
- Settlement algorithm
utils.py
Persistence
- Trip and expense records
models.py - SQL database
Other components
- Trip participant
Connections 18
- Trip participant → Flask application: uses trip app
README.md - Flask application → Trip creation and joining: registers routes
app.py - Flask application → Trip and expense records: initializes ORM
app.py - Flask application → SQL database: configures database
app.py - Trip creation and joining → Trip and expense records: creates trips
routes.py - Trip creation and joining → Persistent trip sessions: recognizes participants
routes.py - Trip participant → Trip creation and joining: joins by link
README.md - Trip participant → Expense management: records expenses
README.md - Expense management → Trip and expense records: saves expense splits
routes.py - Trip creation and joining → Trip dashboard: renders dashboard
routes.py - Trip creation and joining → Join page: renders join form
routes.py - Trip participant → Trip creation page: starts trip
README.md - Flask application → Trip creation page: serves interface
- Trip creation and joining → Settlement algorithm: calculates settlements
routes.py - Settlement algorithm → Trip and expense records: queries balances
utils.py - Trip and expense records → SQL database: stores records
- Trip participant → Browser interactions: uses trip controls
- Trip participant → Responsive styling: views responsive pages
README.md