Projects
Project 01 / 02

SplitIt

Splits a group bill from a photo of the receipt.

Open the live site
ReactTypeScriptTailwindCSSGemini APIExpressNode.jsAWS LambdaMySQL
Role
Solo, end to endDesign, frontend, backend, infrastructure
Users
10+ dailyPeople splitting real bills
Status
Livesplit-it-nine.vercel.app
Receipt reading
Gemini APIItems, tax and fees read off a photo
Backend
AWS LambdaBehind API Gateway, paid per request
Data
MySQLAccounts, groups and split records
SplitIt: A real grocery bill, settled four ways: what each person had, their part of the tax, tip and discount, and what they owe.
A real grocery bill, settled four ways: what each person had, their part of the tax, tip and discount, and what they owe.
01Motivation

The bill nobody wanted to split

I share a flat, and most weeks my roommates and I spend money together: groceries, trips, restaurants. Splitting it was always the last thing anyone got to.

By the time someone finally posted the bill, nobody remembered who had what. People pushed back on the items they'd been given, charged for more than they had or, now and then, for less. SplitIt exists so the split happens at the table, from the receipt itself.

SplitIt: How it works, from the home page: photograph the receipt, tap who had what, send everyone their number.
How it works, from the home page: photograph the receipt, tap who had what, send everyone their number.
02Reading the receipt

The photo does the typing

Instead of typing the bill in line by line, you photograph it. The Gemini API reads every item, the tax, the service fee and any discount straight off the image, and anything it misreads is one tap to fix.

A split happens while everyone is still at the table, so the wait matters as much as the accuracy. I optimised the image before it is sent and cut the prompt down to what the model has to return, which brought the overall response time down.

SplitIt: Step one of four: the receipt. The next steps pick who was there, who had what, and settle up.
Step one of four: the receipt. The next steps pick who was there, who had what, and settle up.
SplitIt: The same step on a phone, where the photo is taken in place.
The same step on a phone, where the photo is taken in place.
03Splitting fairly

Exact shares, down to the cent

Everyone shares everything to start; a tap on a name takes them off an item. Shrimp for two, yogurt for one, rice for the whole flat. Tax follows what each person had, and the tip and any discount are split evenly.

The maths looks simple until the cents have to add up. Split ten dollars three ways and a cent is left over; do it in floating point and the totals quietly drift. I moved the calculation to fixed-point arithmetic, so every share is exact, and the cent that's left over shows up as a rounding line on someone's share, so the shares always add back up to the bill.

SplitIt: Who had what. Each row is a receipt line with a chip per person, and the totals on the right update as you assign.
Who had what. Each row is a receipt line with a chip per person, and the totals on the right update as you assign.
SplitIt: One person's share: their items, their part of the shared costs, and the rounding cent.
One person's share: their items, their part of the shared costs, and the rounding cent.
04Building the interface

Where I learned TypeScript properly

SplitIt is where TypeScript stopped being a layer of annotations for me. The first interface leaned on components I built from scratch, like a MemberAvatarStack that shows who shares an item at a glance, and an assignment table that renders whatever the receipt holds: a row per item, a column per person.

Keeping that table fast is where I went deep on memoization and callbacks: which values to cache, which functions to keep stable, and what a re-render actually costs.

SplitIt: Split by quantity: ten packets of poha go four, three, two and one, priced per packet.
Split by quantity: ten packets of poha go four, three, two and one, priced per packet.
SplitIt: On a phone, each item collapses to a stack of avatars and opens to its chips.
On a phone, each item collapses to a stack of avatars and opens to its chips.
05How it runs

Cheap when idle, ready when busy

The REST API runs serverless on AWS Lambda and API Gateway, paid per request, so hosting stays cheap and scales with use. Underneath is a MySQL schema I designed for accounts, groups, and split records.

Phone or laptopReact + TypeScript
API GatewayOne entry point
AWS LambdaREST API, per request
MySQLAccounts, groups, splits
Lambda also callsGemini APIto read the items off the receipt photo
How a request travels. Nothing runs between requests, so an idle month costs close to nothing.
06Outcome

In use every day

More than ten people use it every day.

Splitting a bill needs no account. Accounts come next: one balance per friend across groups, a searchable split history, and settling up, so SplitIt remembers who still owes whom.

SplitIt: Coming next, as the home page previews it: balances across groups, split history and settling up.
Coming next, as the home page previews it: balances across groups, split history and settling up.
SplitIt: The end of a split on a phone, where saving the people as a group already makes the next one a tap.
The end of a split on a phone, where saving the people as a group already makes the next one a tap.
Time in DC17:25
Socials