RentFlow
A rent ledger that cannot be argued with
- Role
- Solo developer
- Period
- Jun — Jul 2026
- Status
- MVP scoped to a single landlord

Problem
Landlords and caretakers across East Africa track rent in receipt books and notebooks. When a tenant and a landlord disagree about what was paid, there is no record either of them trusts.
RentFlow replaces the receipt book with something that can be produced in an argument: every payment authenticated, timestamped, numbered and traceable to the person who recorded it.
What I built
Everything — the financial core, the web application, the database schema and the background worker. It is a single-landlord MVP covering tenants, payments, receipts, ledgers, balances, statements and SMS confirmations.
Engineering
The system never stores a balance. A balance is always a sum over an append-only table of ledger entries, which is what makes it dispute-proof. Every charge, payment or adjustment writes exactly one signed entry inside the same transaction, money is held as integer cents rather than floats, and corrections happen through reversal entries instead of edits or deletes. Receipts are frozen point-in-time snapshots.
Payment allocation clears the oldest unpaid rent first, and any leftover becomes forward credit projected into future months. That rule lives in two mirrored places: a pure, unit-tested TypeScript engine on the read side, and server-authoritative SQL functions on the write side. The TypeScript engine is the specification oracle for both.
- Recording a payment enqueues an outbox row rather than calling an SMS gateway inline, so a flaky provider can never block a recorded payment.
- A NestJS worker drains that outbox with an atomic claim, using FOR UPDATE SKIP LOCKED so concurrent workers cannot send the same message twice.
- Bounded exponential backoff on retries, from one minute out to twelve hours, with a reaper that re-queues rows stranded by a crash.
- Delivery-report callbacks from Africa’s Talking update a message to its real handset outcome, so "accepted by the API" is never confused with "delivered".
- The worker authenticates with the Supabase service role but only ever touches the SMS table — never ledger entries, payments or balances.
Stack
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS v4
- Supabase
- PostgreSQL
- Row-Level Security
- PL/pgSQL
- NestJS 11
- Africa’s Talking
- Vitest
- Render
- Vercel
Where it is now
The web application is deployed and usable end to end: sign up, onboarding, tenants, units, recorded payments, receipts and printable statements. The allocation engine is covered by unit tests. The SMS worker runs as a separate service against the same Supabase Postgres.
It is an MVP scoped to one landlord at a time. Multi-landlord tenancy is not built.
Next project
TrackSphere
A tracking interface, built before the hardware