Skip to main content
Solo•Live in Production•2026 – Present

KejaFlow — Automated Kenyan PropTech, Water Billing & M-Pesa Rental Ledger

End-to-end rental property ledger with a 4-bucket atomic M-Pesa waterfall, KRA 7.5% MRI tax separation, and offline basement water meter capture.

KejaFlow — Automated Kenyan PropTech, Water Billing & M-Pesa Rental Ledger
KejaFlow — Automated Kenyan PropTech, Water Billing & M-Pesa Rental Ledger Cover Banner
0-Bucket
Waterfall Priority
0.0% MRI
KRA Tax Engine
0 Workspaces
Role Portals
0 (Web+App)
Client Surfaces
The Challenge

Problem & Context

Kenyan landlords struggle with ambiguous partial M-Pesa Paybill payments, caretakers losing paper water meter logs in zero-signal basements, and overpaying KRA's 7.5% Monthly Rental Income tax on pass-through utility reimbursements.

An automated property management, utility sub-metering, and rental reconciliation platform built for Kenyan apartment blocks ('plots') across Django 5.1, Next.js 15, and Flutter 3.

Architecture & Delivery

Key Architectural Highlights

Engineered a 4-bucket atomic M-Pesa waterfall (Prior Arrears -> Water & Garbage -> Current Base Rent -> Prepaid Credit) protected by select_for_update() row locks and unique mpesa_receipt constraints.
Built a KRA 7.5% MRI tax engine automatically separating tax-exempt utility reimbursements from taxable rent, paired with zero-dependency @media print A4 eTIMS tenant statements.
Delivered a visual floor-by-floor Plot Matrix (A1-D6) with live standing indicators (Paid, Partial, Overdue, Vacant), slide-over unit drawers, and dynamic plot/floor/unit builders.
Shipped a Flutter 3 companion app with an idempotent SharedPreferences outbox queue (clientSyncId) for Caretaker basement water meter walks and a Tenant Passbook with STK Express checkout.
Enforced strict RBAC isolation across LANDLORD, CARETAKER, and TENANT workspaces alongside an opt-in 1-click sandbox demo and Brevo SMTP password recovery.
Deep Dive

Engineering Challenges & Solutions

THE HARD PROBLEM

Tenants frequently pay irregular amounts via Paybill, and duplicate or concurrent Safaricom webhooks can double-credit unit balances.

THE ARCHITECTURAL SOLUTION

Locked unit rows with select_for_update() inside transaction.atomic() to drain obligations deterministically across 4 waterfall buckets while enforcing UNIQUE constraints on mpesa_receipt.

Technology Stack

Tools & Technologies Used

Backend & Tasks
Django 5.1DRFCeleryRedisPostgreSQLdrf-spectacular
Web Portal
Next.js 15 (App Router)React 19TypeScriptTailwind CSS v4PWA
Mobile Companion
Flutter 3Dart 3Material 3SharedPreferences Outbox
FinTech & Infra
Daraja 3.0 SimKRA eTIMS StampsBrevo SMTPOracle Cloud ARM64
Interface Gallery

Visual Walkthrough & Captures

Unit Slide-Over Drawer: 4-Bucket Balance & Water Meter Proof
Unit Slide-Over Drawer: 4-Bucket Balance & Water Meter Proof
Unit Slide-Over Drawer: 4-Bucket Balance & Water Meter Proof
Atomic Reconciliation Ledger & KRA 7.5% MRI Tax Engine
Atomic Reconciliation Ledger & KRA 7.5% MRI Tax Engine
Atomic Reconciliation Ledger & KRA 7.5% MRI Tax Engine
Caretaker Water Meter Studio & Audit Log
Caretaker Water Meter Studio & Audit Log
Caretaker Water Meter Studio & Audit Log