Personal project · Case study
Splitly
Household expense workflow with approval review, settlement logic, and AI receipt extraction.
Roommates may share a grocery receipt without sharing every purchase. Splitting the total evenly charges people for items they did not use; assigning participation without review can create disputes. Simultaneous approvals and imperfect receipt scans make correctness a backend concern as well as a user-experience concern.
I developed the item-level review and settlement workflow, refined navigation through hands-on testing, and migrated the live runtime from SQLite to PostgreSQL. I iterated on receipt extraction, authorization, and edge cases, then exercised the Express API against PostgreSQL 16.
Engineering decisions
Treat participation as a reviewable decision
Each item records its payer and participants. Members can opt out and reselect before approval; bills finalize after all required approvals, or the poster can finalize after four days. Items rejected by everyone are explicitly excluded from settlement.
Protect money and concurrent updates
Amounts are integer cents. PostgreSQL transactions keep related changes consistent, and bill-review operations lock the relevant row to prevent simultaneous approvals from overwriting each other. Relational ownership fields enforce household-scoped access; JSONB preserves bill snapshots.
Use AI to draft, then ask people to verify
A vision model extracts receipt items and cents into structured output with uncertainty warnings. Tax, fees, and discounts remain editable. The user reviews the draft before posting; session-token hashes and scrypt password/PIN hashing support the multi-household workflow.
Documented result
The documented PostgreSQL 16 smoke test passed migration, household login, member sessions, bill creation, opt-out/reselection, approvals, automatic finalization, and poster-only editing/deletion. The runtime is PostgreSQL-only, with connection pooling and an idempotent startup migration.
Scope & limits. A deployable prototype tested with synthetic households, without adoption metrics or financial-grade assurance. Receipt extraction requires manual verification; recovery workflows, rate limiting, and automated browser coverage remain future work.
Architecture
- Household and member management with shared password and per-user PIN logic
- Itemized receipts with payer and participant review
- Approval workflow and settlement calculation
- Receipt image extraction through an OpenAI vision model with editable review draft
- Railway-hosted PostgreSQL application backend
Evaluation and results
- Supports reviewable item-level participation across household members.
- Calculates original debt and simplified settlement after approvals.
- Uses AI receipt extraction as a draft tool that still requires human validation.
Important tradeoffs
- The documentation describes an AI extraction flow that produces an editable draft; it is not presented as autonomous financial reconciliation.
- Current live deployment status should be re-verified before calling it live in production-facing materials.
- No large-scale adoption metrics or financial-grade assurance claims are documented in the provided source.