Flagship Build — Multi-tenant Agritech Trust Platform

SmartFarmer SKACE

The flagship of the archive — a multi-tenant platform that turns everyday Zambian farm activity into evidence a lender can trust, combining farm record-keeping with GPS-, cadastre-, and satellite-based verification behind a signed farm track record and transparent credit score.

GoEchoGORMPostgreSQLReactViteExpoPythonXGBoostTailwind CSS
ServicesGo · React · Expo · Python
Tenant isolationPostgreSQL RLS
VerificationGPS · cadastre · satellite
TestsGo · Vitest · unittest pass
SmartFarmer web app landing and multi-tenant farm workspace sign-in

Role focus

Solo full-stack: Go API, React web, Expo mobile, Python ML, plus verification and cryptographic signing

Backend testsWeb + ML testsMaturity

Project narrative

SmartFarmer is the deepest system in the archive because it treats a hard problem — smallholder farmers excluded from credit for lack of a verifiable history — as an engineering problem. It records farm activity through the season, then verifies that activity against independent, hard-to-fake external sources, answering a lender's real question (“did this farm actually do what it claims”) with signed evidence rather than self-report. It ships as four cooperating services — a Go API, a React web dashboard, an Expo mobile app, and a Python ML service — with tenant isolation enforced all the way down to PostgreSQL Row-Level Security.

Why it matters

Polyglot full-stack delivery across Go, TypeScript/React, React Native, and Python in one coherent system

Security- and trust-minded engineering: RLS tenant isolation, route-level RBAC, and cryptographic signing with tamper detection

Systems-integration depth: satellite (Sentinel-2), the national cadastre (ZNSDI), and an ML service wired into one product

Preview Gallery

Visuals that make the project story land faster.

Interface views and system visuals that help the product story read quickly. Tap any screenshot to view it full size.

Architecture map

Web + mobile

A React 19 + Vite dashboard for owners and managers (farm records, lender track record, satellite health) and an Expo React Native app for field workers (GPS attendance, tasks, AI crop scanner).

Go API

An Echo/GORM service holding domain logic, JWT auth, route-level RBAC, tenant middleware, and the cryptographic signing of the lender track record.

Verification + ML

A Python/XGBoost yield-and-revenue service, Sentinel-2 NDVI via Copernicus, the ZNSDI cadastral geoportal for land-parcel checks, and a Gemini/Anthropic farm advisor.

Engineering Decisions

This is where the software engineering depth shows up.

Beyond features, this section highlights the structural choices that shape scalability, reliability, and product clarity.

Enforced tenant isolation at two layers — request-scoped tenant middleware plus PostgreSQL Row-Level Security — so the system fails closed even if an application-level scope is ever dropped.
Verified farm claims against independent, hard-to-fake sources (satellite NDVI, cadastral parcels, GPS geofencing) and folded them into a cryptographically signed, QR-verifiable lender report with tamper detection on every figure.
Anchored the ML yield model to Zambian Crop Forecast Survey statistics, and added an integration-health endpoint so a "verified" badge never silently becomes false when an external source degrades.

Validation snapshot

Backend tests

Go suites cover tenant isolation and RLS, route-level RBAC (including a regression that a field worker is rejected from every mutating endpoint), signed track-record tamper detection, and satellite NDVI logic — all passing under `go test ./...`.

Web + ML tests

Frontend Vitest (3/3) and the Python ML service unittest suite (9/9) pass.

Maturity

Best positioned as a production-minded MVP with strong architecture and verification, not a fully mature enterprise deployment.