Overview
HarvestLynk is an agriculture marketplace that connects Nigerian farmers directly with buyers. Farmers list produce, buyers order it and pay into escrow, and both sides can message privately, make price offers and be notified in real time. Farmers can also photograph a sick crop and get a disease diagnosis.
I built almost all of the product code: the landing page, the farmer and buyer dashboard, the Express and PostgreSQL API with Nomba payments and wallets, identity verification, chat and notifications. Teammates contributed the crop-disease model service, an early NestJS backend and the original repository.
The challenge
Smallholder farmers often sell through middlemen because they have no direct route to buyers and no safe way to be paid. Buyers, in turn, cannot tell whether a seller is real, and a failed delivery means chasing money back.
That made trust the central problem: verifying farmers, holding payment until goods arrive, and giving both sides a way to negotiate and raise a dispute without leaving the platform.
The goal
Build a marketplace where farmers and buyers can deal directly and safely, with tools to help the farm itself.
- 01Let farmers list produce with photos and buyers browse, order and pay.
- 02Hold payment in an escrow-style wallet until delivery is confirmed.
- 03Verify farmers with email, document and liveness checks before they can list.
- 04Add private chat with price offers, and live notifications.
- 05Offer an AI crop doctor that classifies plant disease from a photo.
Dashboard for farmers and buyers
The dashboard is a Next.js app with separate farmer and buyer areas: marketplace, orders, wallet, messages, notifications, profile and farm pages, plus a crop scan page. Signup is split by role, Google sign-in is supported, and first-time farmers go through an onboarding flow. A separate Next.js landing site handles the public pitch.
I built both in the first two days and made them mobile-responsive with Framer Motion.

01 / 03Buyer dashboard
Orders, escrow and wallets
The API stores all money as integer kobo, and orders follow an explicit state machine from pending payment through confirmed, processing and ready for pickup to completed. Cancellations after payment need the farmer's agreement, and disputes freeze the funds in the farmer's pending balance until an agent resolves them.
Payments with Nomba
Checkout links, buyer virtual bank accounts, wallet top-ups and farmer payouts all run through Nomba. A webhook handler verifies signatures and processes payment and payout events, I added retries for failed payouts, and a buyer can fund the wallet by transferring to a dedicated account number.
Verification, chat and live updates
Farmers are verified before they can create listings: email verification, document uploads and a liveness check. Buyers and farmers talk in private conversations where a farmer can send a price offer that the buyer accepts to buy directly. A WebSocket server pushes notifications as they happen.
The AI crop doctor
A FastAPI service loads a TensorFlow model at startup and classifies an uploaded image, returning the disease, a confidence score, symptoms, cause, treatment and prevention advice. A teammate built the first service and I wrote the disease information for the crops, reworked the data handling and wired it into the dashboard, where scan results are saved to a history.
The outcome
HarvestLynk runs as four connected services (dashboard, landing site, API and crop classifier) with a working order, escrow and payout loop on Nomba. It is a prototype that shows a complete marketplace flow, from listing to payout, with identity checks and an AI tool for the farm.


