All projects

2026

Dela notan

A mobile app that photographs the restaurant receipt, reads the lines with AI and lets the group pick what they had, in real time.

Role
Personal project
Status
In development, not yet published
Links
  • React Native
  • Expo
  • TypeScript
  • Supabase
  • Postgres
  • Edge Functions
  • Claude API
  • Jest
  • fast-check

Live demo

Try to

  • Join a bill with the code DEMO42
  • Pick what you ate and see what you owe
  • Start your own bill and split the dishes

The app itself is in Swedish.

Open in new tab

The real app with made-up data. Nothing is saved.

01Why I built it

After dinner with friends it is always the same: someone pays, and then everyone has to work out who had what, who shared the pizza and how to split the tip. It takes time and is rarely right.

I also wanted to build a real mobile app, with a camera, sign-in, real-time updates and a backend, not just another website.

02What it does

  • Whoever paid photographs the receipt. AI reads dishes, quantities, prices, discounts, tip and total.
  • The lines are reviewed and corrected until the sum matches the receipt.
  • The group joins via QR code, link or username. Guests need no account, and there is a web version for them.
  • Everyone picks what they had, either a whole item or a share of a shared one, and the amounts update instantly for everyone.

03Technical highlights

Money is a pure function

The whole calculation lives in one pure function. Öre (cents) are distributed with the largest remainder method, so everyone’s shares always add up to exactly the receipt total. The function is tested with property-based tests (fast-check) on thousands of random receipts.

The database settles conflicts

If two people take the last item of the same dish at the same time, exactly one wins. Postgres decides, not the app, and the other person sees "Someone got there first". Changes sync to every phone with Supabase Realtime.

Swappable receipt parsing

Parsing sits behind an interface with a mock provider and a real AI provider in a Supabase Edge Function. The response is validated with Zod. The whole app can run in demo mode without a backend.

04Lessons learned

  1. Rounding is harder than it looks

    Three people sharing 100 SEK does not divide evenly. I learned that the result has to be deterministic, independent of the order in which choices are made, and that property-based tests find edge cases I would never have written by hand.

  2. Think about data from the start

    Receipts and payments are personal data. The app got account deletion and automatic data cleanup before it got more features, and CAPTCHA at sign-in to stop abuse.