Inspiration
We are university students in Hong Kong, and most of us manage our own money for the first time. Every one of us has had the same Thursday: you open your wallet, the week's money is mostly gone, and you honestly do not know whether you can still afford lunch. Budgeting apps think in months and want every payment typed in by hand, so we gave up on them within days. We wanted one answer, every morning: how much can I spend on food today?
What it does
UniVault splits your week into five funds (Main meals, Snacks, Fixed bills, Experience, Development) plus Long-term Savings, and turns them into one daily number:
$$ \text{today's food money} = \frac{\text{Main meals left} + \text{Snacks left}}{\text{days left in the week (today included)}} $$
- Logging in seconds: type
$50 KFC dinner, scan a receipt, or let an Apple Pay payment arrive by itself through an iOS Shortcuts automation. Every entry waits for your confirmation. - Going over is handled, not just shown in red: UniVault asks which fund covers the gap: Snacks first, then the flexible funds, savings last. Fixed bills are never touched, and undo puts everything back.
- Where can I eat with what's left? A map of places near campus that fit today's money, with the source and date of every price.
- Groceries: recipe costs from the Consumer Council's Online Price Watch, and whether the cheaper supermarket is worth the MTR or taxi fare.
- How cooked are you? A 0 to 100 score from three plain rules (spending pace, funds running out, savings used) and a 30-day curve that shows the day you would hit zero, before it happens.
- Widgets, streaks, stars and campus medals that reward logging and staying within budget, not spending more.
How we built it
- Backend: Python standard library only (
http.server) with SQLite: no dependencies, no build step. Money is always integer HKD cents, never floats. Hosted on Render. - Frontend: plain HTML, CSS and JavaScript, Leaflet and OpenStreetMap for the map. On desktop it runs inside a simulated iPhone with a guided tour and an auto-play demo.
- iPhone app: a Capacitor 8 shell around the same site, built on Codemagic and shipped through TestFlight, with a native WidgetKit widget and a Swift plugin that reads receipts on the device with Apple Vision. Tesseract.js is the offline fallback in the browser.
- Rules, not black boxes: fund suggestions, overspend cover, typo checks and the Cooked score are plain, explainable rules, covered by more than 1,000 automated Python tests that run on every change.
Challenges we ran into
- No open payment data in Hong Kong. Apple's FinanceKit does not cover the city, and Octopus and the banks have no public API for individuals. We used an iOS Shortcuts automation on Wallet taps instead. Bank cards send the amount, merchant and card by themselves. Octopus taps arrive without an amount, so UniVault keeps them in To review and asks for the amount.
- Reading real receipts. Crumpled paper, dark borders, Chinese and English labels, and totals hidden among subtotals, cash tendered and change. We rebuild rows from the position of each word and use ordered rules (Total, Amount, card lines, subtotal only as a fallback). The app never saves a scanned amount without your confirmation.
- A free server that forgets. Render's free disk is wiped whenever the service sleeps. Each phone now keeps its own backup, restores the server automatically, and shows the last numbers read-only while offline.
- Never inventing a price. Most places have no published prices. Every price is either from the place's own menu or the chain's published price, with its source and date. Everything else is clearly marked as an estimate.
What we learned
- Small, honest rules people can understand beat clever models for money decisions, because students can see why the app suggests something.
- Storing money as integer cents and testing every rule saved us from many rounding bugs.
- Shipping a real iOS app (signing, TestFlight, widgets, App Groups) is a project of its own, and testing on real iPhones caught problems a simulator never showed.
What's next
Testing with more students, more verified menu prices around more campuses, and real payment connections as soon as Hong Kong banks or Octopus open them to individuals.
Built With
- apple-pay
- apple-vision
- capacitor
- codemagic
- css3
- html5
- ios
- ios-shortcuts
- javascript
- leaflet.js
- openstreetmap
- python
- render
- sqlite
- swift
- tesseract.js
- testflight
- widgetkit