Back to Projects
Agricultural Tech / SaaS

MTK Dairy

Pakistan's leading multi-tenant SaaS platform for dairy farm management — milk production tracking, cattle health, breeding cycles, and financial analytics. Built for farmers, cooperatives, and agricultural enterprises.

🚀

Project Overview

A production-grade, multi-tenant SaaS platform managing 500+ dairy farms and 50K+ animals across Pakistan. Features Clerk Organizations for tenant isolation with 7 role-based access levels, Supabase PostgreSQL with Drizzle ORM, Upstash Redis + BullMQ for queuing, Firebase Firestore for real-time activity feeds, and Cloudinary for media. Includes automated billing with local payment gateways (JazzCash, EasyPaisa, XPay), IoT API integration for milking machines, bilingual UI (English + Urdu RTL), and PWA offline support. Built to scale to thousands of tenants with 99.9% uptime SLA.

Tech Stack

Next.js 15TypeScriptTailwind CSSshadcn/uiClerkSupabasePostgreSQLDrizzle ORMFirebase FirestoreUpstash RedisBullMQCloudinaryResendZustandTanStack Querynext-intlSentry

Key Features & Highlights

Multi-tenant SaaS with Clerk Organizations — 500+ farms, 50K+ animals, complete tenant isolation
Real-time milk production tracking with IoT API integration for automated milking machines
7-role RBAC (farm_owner to accountant) with granular permissions and audit logging
Local payment integration (JazzCash, EasyPaisa, XPay) with tiered subscriptions and feature gating