Scan a receipt, split it with friends, and keep track of who's paid.
- Role
- Design and full-stack development
- Timeline
- 2025 — 2026
- Status
- Live on the web and App Store
Overview
What it is
BillCompass takes the arithmetic and awkwardness out of shared expenses. Scan a receipt and the items are extracted automatically; assign them to people, split the rest evenly or by custom amounts, and track balances until everyone is settled.
It ships as a React web app and a Flutter mobile app, both backed by the same cloud-hosted REST API and PostgreSQL database.
Problem
Why it needed to exist
Splitting a group bill usually means someone typing line items into a calculator, a spreadsheet nobody updates, and payments that quietly get forgotten.
BillCompass makes the receipt itself the input, and keeps one source of truth for balances that both web and mobile users see.
Product
What it does
AI receipt scanning
Google Gemini extracts line items from a photo of a receipt.
Flexible splitting
Assign individual items, split evenly, or enter custom amounts per person.
Groups & friends
Invitation-based connections, groups with membership and ownership.
Balances & settlement
Outstanding balances, payment tracking and settlement history.
Cross-platform sync
The same account and data across web, iOS and Android.
Implementation
How it's built
- 01
Frontend
React + TypeScript + Vite web app on Cloudflare Pages, with a same-origin API proxy. A Flutter mobile client shares the same backend.
- 02
Backend
Node.js and Express REST API, containerized with Docker and deployed on Google Cloud Run. Prisma ORM over Neon PostgreSQL with versioned migrations.
- 03
Money handling
All amounts are stored and computed as integer cents to avoid floating-point rounding errors.
- 04
Security
Short-lived JWT access tokens with rotating refresh tokens. HttpOnly cookies and CSRF protection on the web; bearer tokens in secure storage on mobile. PostgreSQL row-level security with separate runtime and admin database roles.
- 05
Testing
Password and JWT unit tests plus API integration suites — bearer auth, cookie auth and CSRF — running against a separate PostgreSQL test database.
Architecture
System design
React web app
TypeScript · Vite · Cloudflare Pages
Flutter app
iOS · Android
Express API
Node.js · Docker · Cloud Run
Neon PostgreSQL
row-level security
Gemini API
receipt extraction
Challenges
The hard parts
- 01
One auth model, two kinds of client
Browsers and phones need different token handling. The web uses HttpOnly cookies with CSRF defenses; mobile uses bearer tokens in secure storage — both built on the same short-lived JWT and rotating refresh-token scheme.
- 02
Getting money right
Splits, tax and rounding across many people are easy to get subtly wrong. Integer-cent arithmetic end to end keeps totals exact.
- 03
Defense in depth
Row-level security and separate runtime and admin roles mean a bug in an API route can't expose another user's data on its own.
- 04
Receipts to structured data
Gemini output has to become editable, assignable line items that users can trust and correct.
Results
Outcomes
- LivePublished on the web and the App Store
- One API serving both the React and Flutter clients
- Bearer, cookie and CSRF auth flows covered by integration tests against an isolated database
Stack
Technology
- React
- TypeScript
- Vite
- Flutter
- Dart
- Node.js
- Express
- PostgreSQL
- Neon
- Prisma
- Docker
- Google Cloud Run
- Cloudflare Pages
- Gemini API
- JWT
Screens & demo
See it in action
App Store screenshots · tap to enlarge
Links
Explore further
Next project · 04
EEG Movement Classification
Decoding arm and hand movements from brain signals — and driving a robotic arm with the predictions.