The job
Ebosi is ride-hailing and courier for Lagos. A rider books a car or sends a parcel and pays in naira; the nearest drivers get the offer, one takes the trip, and drivers cash their earnings out to a Nigerian bank.
I built the first version in 2025 and rebuilt it in 2026, both times as the only engineer, scoping directly with Ebosi Technologies.


The rebuild
The first version was three codebases: two Expo apps whose own API routes split dispatch and payments between them, and a separate dashboard. The three disagreed about the rules.
In November 2026 I replaced them with one TypeScript monorepo. Both apps talk only to one Next.js backend, and every rule lives in one core package that the API, the admin dashboard and the scheduled jobs all share. The old system was the spec: a parity check maps every old route and screen to its new home or to a drop the client agreed, and it runs in CI.


Money and dispatch
Money is whole kobo and moves only through a double-entry ledger. A rider pays through Flutterwave, by card, bank transfer or USSD, before the trip is dispatched. Drivers keep 80% of the trip fare and all of their tips, and cash out to a bank account whose name is checked first.
Each trip is offered to the three nearest free drivers at once, and the first to accept wins. The races, two drivers accepting together, an accept against the deadline, a cancel against an accept, are tested against real Postgres.


Where it is now
In production since November 2026, taking live payments in naira. Over 2,000 tests run on every push against a throwaway Postgres, with a second job on local Supabase and Realtime.
A load test at 500 drivers put the median heartbeat at 8.5 seconds, because every heartbeat swept its whole city. One sweep per city every five seconds, behind a Postgres advisory lock, brought it to 3.7 ms without adding Redis. The rebuilt apps, version 2.0.0, are in TestFlight on their way to App Review.

