Engineering architecture, case studies, and extracted tools from building Zaruni β a multi-service super-app for Kenya
# Zaruni Engineering
> Architecture, case studies, and extracted tools from building a multi-service super-app for Kenya
## What is Zaruni?
Zaruni is a multi-service marketplace and jobs platform handling real M-PESA payments at production scale in Kenya. It combines:
- πΌ **Jobs Marketplace** β Gig worker matching and task management
- π οΈ **Service Bookings** β Home services, repairs, and professional services
- πͺ **Product Marketplace** β Local shops and C2C commerce
- π **Delivery Orchestration** β Logistics and last-mile delivery
- π¬ **Real-time Chat** β In-app messaging for all transactions
- π° **Escrow-backed Payments** β M-PESA integration with payment guarantees
**Live Product:** zaruni.co.ke
## Why This Repository Exists
Zaruni's source code is private to protect the business. This repository documents the architecture, shares engineering decisions, and showcases the reusable components we've extracted and open-sourced.
Think of this as the **engineering museum exhibit** β the real artifacts remain in the archive, but you can see what we built and how we built it.
### The Two-Repo Model
| `zaruni` (private) | `zaruni-engineering` (public) |
|-------------------|-------------------------------|
| Actual source code | Architecture narratives |
| Business logic | Tech decision documentation |
| Production data models | Problem-solving case studies |
| **For:** Running the product | **For:** Proving engineering competence |
This is how companies like Twitter, GoDaddy, and Red Hat operate β closed source product, open engineering insights.
## What's in This Repository
### πΊοΈ Diagrams
Interactive Mermaid diagrams β rendered directly on GitHub.
- System Overview β Full architecture, module dependency rules
- Payments Flow β STK Push sequence, escrow state machine, provider class diagram
- Auth Flow β Registration, JWT lifecycle, OTP security model, tier progression
- Deployment Topology β Infrastructure, request routing, Celery tasks, CI/CD pipeline β¦