← Selected work / 01

Middleman

I'm the sole engineer behind Middleman, an escrow app where buyers and sellers agree on terms, fund the deal and release payment on delivery. I built the Django API, the real-time layer and the Ionic React app for iOS and Android, and I run its releases and production monitoring.

Middleman
01 / Context

The problem.

A deal between strangers involves more than a payment. Buyers and sellers need shared terms, somewhere safe for the money while the work happens, a way to confirm delivery and a route for disputes. Middleman puts the agreement, the money and the conversation about it in one app.

02 / Ownership

My part in it.

Sole engineer and part-time CTO. I designed and built the backend, the real-time layer and the mobile app, and I own releases and production monitoring. Across the two codebases that comes to 1,186 commits, more than 1,000 backend tests and nearly 500 app tests.

03 / Constraints

What made it difficult.

Customers' money sits in escrow between agreement and delivery, so every balance has to be explainable from its transactions after the fact. Naira deposits and payouts run through Korapay, and stablecoin deposits and payouts through CoinCircuit, each with its own webhooks and failure modes. Chat and deal updates have to survive unreliable mobile networks without losing or duplicating a message.

04 / Build log

What I built.

  1. 01

    Escrow engine: one service owns funding, delivery and release, works out who pays the fee, and records exactly what the buyer was debited, so a refund reverses the same amount even after exchange rates move.

  2. 02

    Wallet ledger: deposits and payouts by bank transfer and stablecoin, with every movement written as a transaction. A scheduled reconciliation freezes any wallet holding money its transactions don't explain.

  3. 03

    Real-time layer: Django Channels with one authenticated socket per phone, heartbeats, flood control and resend-safe chat, so a message queued while offline is delivered once after the connection returns.

  4. 04

    Identity and safety: identity verification with an on-device selfie liveness check, transaction PINs with escalating lockouts, and money actions that re-check the sign-in session before anything moves.

  5. 05

    Delivery: more than 1,000 Django tests, nearly 500 Vitest tests and Cypress end-to-end runs. GitHub Actions ships signed builds to TestFlight and Google Play, and Sentry reports errors with tokens, PINs, identity numbers and bank details scrubbed out.

05 / Decisions

Why I made these choices.

  • Every wallet balance must be explained by its transactions.

    Money the ledger can't account for would otherwise reach a seller as a genuine payout.

    A wallet holding unexplained money is frozen and raises an alert. A wallet that comes up short only raises an alert, because a shortfall is the platform's bug, not the customer's.

  • Lock the escrow the moment a problem is reported.

    A release racing a dispute would move money before anyone had reviewed it.

    The parties get a short window to sort it out themselves before Middleman reviews the case. A scam report skips the window.

  • Resend unconfirmed messages and let the server de-duplicate them.

    On a mobile network a message can arrive while its confirmation is lost, so the app can't tell whether to send it again.

    The server remembers each message's client ID for a day and answers a resend with the stored message instead of posting a second copy.

Flow / Agreement to release

How one deal moves through Middleman's escrow service.

  1. Agreement

    Buyer and seller agree the terms and who pays the fee.

  2. Funding

    The buyer's wallet is debited into escrow, PIN required.

  3. Delivery

    The seller marks the work as delivered.

  4. Dispute

    A reported problem locks the escrow until it is resolved.

  5. Release

    The buyer confirms and the seller is paid, less any fee they owe.

Middleman's escrow service, which owns every money movement in a deal.

Evidence

The app and API codebases are private. Commit, test and workflow figures come from those repositories as of November 2026. The product website, privacy policy and terms are public.

HIRING A SOFTWARE DEVELOPER?

Tell me about
the role.

Open to software developer roles

I build APIs, integrations and web applications. Share the role, the team and what you’re building.

↗