Project Overview
AgriMe is an AI-powered agricultural ecosystem that combines livestock management, marketplace trading, weather forecasting, teleconsultation, escrow-secured payments, and intelligent farm analytics into a single mobile application designed specifically for African farmers.
The platform addresses the fragmented digital experience that smallholder farmers face by unifying critical agricultural functions—farm management, commerce, financial services, and expert advice—into one seamless mobile interface.
Built with React Native for cross-platform mobile delivery and powered by a Django Ninja backend, AgriMe delivers native performance even on low-end devices common in rural areas. The system processes M-Pesa payments through Safaricom's Daraja API with an escrow mechanism that protects both buyers and sellers, while Celery + Redis handle asynchronous payment verification, notifications, and scheduled tasks.
Core Features
Livestock Management
- Comprehensive livestock tracking with health records, feed ratios, breeding cycles, and vaccination schedules
- AI-driven feed optimization recommendations based on livestock data entered by farmers
- Weight tracking, milk production logs, and growth analytics
- Disease symptom checker with veterinary teleconsultation booking
Marketplace & Trading
- Escrow-protected marketplace: M-Pesa hold-and-release mechanisms protect both buyers and sellers
- Product listings with categories: crops, livestock, equipment, and agricultural inputs
- Real-time price discovery and market trends dashboard
- Seller ratings and verified buyer system
M-Pesa Payment Integration
- Seamless Safaricom Daraja API integration for M-Pesa STK Push payments
- Automated payment verification through M-Pesa callback endpoints
- Celery + Redis process payment status polling asynchronously
- Complete transaction history with digital receipts
Weather & Intelligence
- Real-time weather API integration delivering localized forecasts
- Planting and harvesting recommendations based on weather patterns
- Pest and disease alerts correlated with weather conditions
- Historical weather data for crop planning
Communication & Notifications
- Firebase Cloud Messaging sends push notifications on unreliable rural networks
- SMS notifications for critical alerts, payment confirmations, and appointment reminders
- In-app veterinary teleconsultation with chat and image sharing
- Community forum for farmer knowledge sharing
Performance Optimizations
- React Native app reduced initial bundle size by 40% via code splitting with React.lazy
- React-native-fast-image for offline image caching and smooth rendering
- Optimistic UI updates for instant feedback on marketplace actions
- Background sync for offline data entry
Technical Architecture
Frontend (Mobile)
- React Native with Redux Toolkit for state management
- React Navigation for intuitive screen flows
- React Native Fast Image for optimized media delivery
- Code splitting and lazy loading for reduced bundle size
Backend
- Django Ninja for high-performance REST APIs with async support
- JWT authentication with token refresh
- Celery task queue for payment processing, notifications, and scheduled jobs
- Redis as message broker and caching layer
Database & Storage
- PostgreSQL for transactional data integrity
- Cloudinary for image and media optimization
- Redis for session management and real-time data caching
Integrations
- Safaricom M-Pesa Daraja API (STK Push + Callback)
- Firebase Cloud Messaging for push notifications
- OpenWeatherMap API for weather data
- Africa's Talking for SMS notifications
Key Achievements
- 35% reduction in transaction processing time through M-Pesa escrow automation
- 500+ daily active users within two months of launch
- 40% smaller mobile bundle size through code splitting and lazy loading
- Successfully processed over 10,000 M-Pesa transactions with 99.8% verification rate
- Delivered AI-driven feed optimization recommendations based on livestock health data
Deployment
- Mobile app distributed via Android APK and planned Google Play Store listing
- Backend deployed on Vercel with managed PostgreSQL
- Redis instance for task queue and caching
- Cloudinary for media delivery with automatic format optimization
- Firebase for push notifications and crash reporting
Project Gallery


