Tharindu Munasinghe
Projects

Case study

MUNE Splits

A local-first expense splitter that works out who owes whom in the fewest possible payments.

MUNE Splits events list with the Goa Trip summary

At a glance

Role
Product owner, designer, and developer, with the app built from a written brief using an AI coding assistant
Status
Working local app with a demo trip, PDF and CSV export, and backup and restore
Platform
Local web app on Windows, installable as a PWA; runs without an internet connection
Tools
Claude Code
Tech stack
Next.js 16 · React 19 · TypeScript · Tailwind CSS 4 · Radix UI · SQLite (better-sqlite3) · Recharts · jsPDF · Vitest

Design system

A dark-first interface with one warm accent color doing double duty for primary actions and category highlights, and mint-green reserved for positive balances.

Near Black

#121215

Page background

Surface

#343032

Cards and panels

Orange

#FFA66B

Primary actions and category highlights

Mint Green

#6FE3B4

Positive balances owed to you

Typography

Geist

Components

Button component example

Button

Money component example

Money

PeopleManagerAvatarFieldsScreensSettingsFormshadcn/ui primitives (Dialog, DropdownMenu, Tabs, Popover, Tooltip)

Sections

  1. 1. The Problem
  2. 2. Approach
  3. 3. Key Decisions & Challenges
  4. 4. Known Risks
  5. 5. Design
  6. 6. Testing & Outcome

Section 1

The Problem

Splitting trip costs is slow and easy to get wrong. One person paid for dinner, another covered the villa, and by the end nobody remembers who owes whom. Most splitting apps want an account, a cloud sync and your data on their servers. The goal was a personal tool that keeps everything on the computer and still works out the fewest payments needed to settle up.

Section 2

Approach

Built as a local-first web app with no accounts, no cloud sync and no tracking. The server only listens on 127.0.0.1, and all data lives in a local SQLite file.

  • Create an event or trip, add the people, and log each expense with one payer or several, and a split mode: equal, weighted shares, exact amounts or percentages.
  • Weights are set per expense, so a partner can count as two people and a half portion as 0.5.
  • Simplified balances show the fewest payments that settle everyone, while the raw view lists each direct debt.
  • Record full or partial settlements, undo any payment, and lock an event as settled once everyone is at zero.
  • Export a PDF report, a CSV or a plain-text summary, and back up or restore everything as JSON, including receipt images.

Section 3

Key Decisions & Challenges

  • Money is stored as integer minor units (paise or cents), so there are no floating-point errors.
  • Shares are rounded with the largest-remainder method, so they always add up exactly to the total.
  • Debts are simplified greedily by matching the largest creditor with the largest debtor, which takes at most people minus one payments.
  • The split and settle maths lives in a pure module with its own unit tests. The UI, PDF and CSV export all share the same balance code.
  • Every event edit is one typed action validated on the server. A proxy rejects foreign Host headers and cross-site writes, so other websites can't drive the local server.

Section 4

Known Risks

  • better-sqlite3 is pinned to 12.9.0 because it ships prebuilt Windows binaries for Node 20, which avoids a local compile step.
  • The data folder sits inside OneDrive, and syncing a live SQLite database can conflict. The app's own notes recommend pausing sync while it runs, or moving the data folder and relying on JSON backups.

Section 5

Design

A dark-first interface with a light mode, an orange accent and rounded cards. Each event has its own emoji and colour, and a floating Add expense button keeps the main action in reach. Press N to add an expense or event. On phones the navigation moves to a bottom bar.

Section 6

Testing & Outcome

A demo trip, Goa Trip, loads with four people, weighted shares, a multi-payer villa, every split mode and a partial settlement. The engine's unit tests cover equal, weighted with decimals, exact, percent, multi-payer, rounding remainders and partial settlements. The production build was run and the demo trip was walked through in Chrome, from the events list to the print report.

Links

Personal local-first tool; source available on request.

Request source access

More projects

Station information step of the add-station flow

Sri Charge

A design-led EV charging & booking platform for Sri Lanka, built to end the queue.

Kandy 1st Court homepage hero

Kandy 1st Court

A full-stack booking platform for Sri Lanka's first dedicated pickleball court, built end-to-end by directing Claude Code, not by hand-coding or blind-accepting it.

This portfolio's homepage with the hero and role tags

This Portfolio

This very site: a personal portfolio designed and built end-to-end with Claude Code assisting, one real feature at a time.

Generated project plan, ready to review and save

MUNE TASKS

A local-first AI project planner that turns a description into a phased, trackable to-do list in about 20 seconds.

Journey swimlane with an emotion curve and promoted pain points and opportunities

MUNE UX

A local-first UX-to-dev pipeline that takes a vague idea through 17 guided stages to a shipped release, and traces every task back to a real user need.

STOP verdict for the cake-shop scam conversation, with the source thread and an escalation banner

Scam Shield

A fraud check for small shop owners, built in two weeks for the Google Cloud AI Builder Cup: paste a conversation or a payment-slip screenshot and get a STOP, VERIFY or SAFE verdict, the reasons, and what to do next.

MO Marketplace redesign shown on desktop and iPhone: a greeting, a search bar, four entrance cards for Super Mall, Second Hand, Vehicles and Properties, and a campaign banner

MO Marketplace

An independent redesign concept for a Sri Lankan marketplace's home screen, built for a take-home assessment around one idea: understand first, then promote, then browse.

MUNE Tokens dashboard with three systems, their token counts and recent exports, over a pure black interface

MUNE Tokens

A local design-system generator that turns a product brief into Figma variables, styles and components, plus matching code tokens, in a few minutes with Claude.

FixNow cover: "An assistant that guesses out loud, never quietly," with three Fixmon chat screens on a teal background

FixNow

A category-first home services marketplace concept with an AI assistant, Fixmon, that turns a described problem into a reasoned shortlist, designed for a take-home UI/UX assessment.

Pipeline view of a finished clip at stage 7 of 7, Ready to post, with the 9:16 draft, a revision box and per-platform post text

Fenrir Clips

A desktop AI editing desk that turns a raw stream clip into a captioned, reframed 9:16 short with per-platform post text, stopping to ask only when a decision needs a person.