Empowering modern farmers with Gemini AI Vision, real-time analytics, satellite field mapping, and multilingual voice interfacesβall built on a production-grade React Native & Next.js monorepo.
- Introduction & Vision
- The Ecosystem Architecture
- Mobile Application: Field Intelligence
- Web Platform: Farm Management Dashboard
- Core AI & Technology Stack
- Design System & UI Guidelines
- Installation & Setup Guide
- Environment Variables
- Contributing Guidelines
- Security & Data Privacy
- Roadmap
- License & Contact
Agriculture is the backbone of the global economy, yet farmers often lack access to the real-time data, predictive intelligence, and technological tools needed to maximize yields and minimize losses. AgriSence was built to bridge this gap.
By combining the latest advancements in Multimodal Artificial Intelligence (Google Gemini), high-performance cross-platform mobile development (React Native / Expo), and enterprise-grade web dashboards (Next.js), AgriSence delivers a unified, end-to-end precision farming ecosystem.
Whether you are in the middle of a remote field checking for crop diseases without internet access, or in an office analyzing seasonal profitability through satellite imagery, AgriSence provides the exact tools required to grow smarter and farm wiser.
AgriSence is built as a highly scalable Turborepo Monorepo, ensuring maximum code reuse between the mobile application and the web platform.
agrisence/
βββ apps/
β βββ mobile/ # React Native (Expo) app for the field
β βββ web/ # Next.js 16 Web Dashboard for farm management
β βββ landing/ # Next.js 16 Marketing & Download site
βββ packages/
β βββ ui/ # Shared Tailwind CSS components & Design System
β βββ config/ # Shared ESLint, Prettier, and TypeScript configs
β βββ core/ # Shared AI Logic, Genkit orchestration, and DB schemas
βββ package.json # pnpm workspaces configuration
By centralizing our core logic, database schemas, and AI prompts in the packages/core directory, both the mobile and web platforms remain perfectly synchronized while maintaining their unique, platform-specific user experiences.
The AgriSence mobile application is the farmer's ultimate companion in the field. Built with React Native and Expo, it is optimized for low-end devices, poor network conditions, and extreme ease of use.
Traditional crop disease identification requires agronomists or complex laboratory tests. AgriSence integrates directly with Google Gemini 1.5 Pro Vision.
- Point & Shoot: Simply open the in-app camera, snap a picture of a diseased leaf, and the AI will analyze the visual data against millions of agricultural parameters.
- Actionable Insights: The app doesn't just name the disease; it provides immediate, actionable remediation steps, including organic treatment alternatives and recommended chemical applications.
- Confidence Scoring: The AI provides a confidence percentage, ensuring farmers can make informed decisions.
Farming communities often face literacy or technological adoption barriers. To solve this, AgriSence features a Voice-First AI Interface.
- Speak Naturally: Farmers can tap the microphone and ask questions like, "What is the price of tomatoes in Bangalore today?" or "How much urea should I use for a 2-acre corn field?"
- Local Languages: Fully supports English, Hindi, and Kannada. The AI detects the language automatically and responds in the same language natively.
- Context-Aware: The AI remembers the context of the conversation and the farmer's specific crop profile.
Fields are notorious for having zero cellular coverage.
- Local Caching: We utilize advanced local storage mechanisms (WatermelonDB / Async Storage) to cache the farmer's data, recent market prices, and critical AI inference logic.
- Background Sync: The moment the device reconnects to a network (3G/4G/WiFi), the app silently synchronizes all local changes (expense logs, offline crop scans) with Firebase Cloud Firestore.
- Hyper-Local Weather: Integrates with leading weather APIs to provide field-specific rain probabilities, soil moisture estimates, and severe weather alerts.
- Live Market Data: Pulls real-time agricultural commodity prices (Mandi prices) across India, allowing farmers to decide exactly when and where to sell their harvest for maximum profit.
While the mobile app is for the field, the AgriSence Web Platform (built on Next.js 16 App Router) is designed for the desk. It provides a massive, high-density interface for managing the business side of farming.
Farming is a business, and profitability requires meticulous tracking.
- Expense Tracking: Log every rupee spent on seeds, fertilizers, machinery, and labor. The dashboard categorizes these expenses dynamically.
- Yield Analytics: Match expenses against final harvest yields. The platform calculates true season profitability and generates beautiful, exportable charts (PDF/CSV).
- Predictive ROI: Using historical data and current market prices, the AI predicts the potential Return on Investment for upcoming planting seasons.
Millions of dollars in agricultural subsidies go unclaimed every year because farmers don't know they exist.
- Profile Matching: The platform analyzes the user's farm size, location, crop types, and demographic data.
- Automated Discovery: It continuously queries a database of State and Central Government agricultural schemes and pushes notifications for highly relevant subsidies (e.g., PM-KISAN, drip irrigation subsidies).
Take the guesswork out of field health.
- Interactive Mapping: Draw your farm boundaries directly on an interactive Google Map interface.
- NDVI Processing: The platform fetches historical and current satellite imagery, processing it into Normalized Difference Vegetation Index (NDVI) maps.
- Zonal Analysis: Visually identify exact zones in your field that are underperforming (e.g., nitrogen deficiency, waterlogging) before the damage becomes visible to the naked eye.
AgriSence represents the absolute cutting edge of web and mobile technologies.
- Google Gemini 1.5 Pro & Flash: Powers all complex reasoning, natural language processing, and advanced visual disease detection.
- Firebase Genkit: We use Genkit to orchestrate complex AI workflows, chaining multiple models and tools together for highly accurate agricultural advice.
- Retrieval-Augmented Generation (RAG): The AI has access to a massive vector database of verified agricultural research, ensuring it provides scientifically backed advice rather than hallucinated responses.
- Next.js 16 (App Router): The foundation of the web platform and marketing site. Utilizes Server Components for maximum performance and SEO.
- React Native & Expo 52: Powers the mobile app, providing a near-native experience on both iOS and Android with a single codebase.
- Tailwind CSS v4: For rapid, utility-first styling across both web and mobile platforms.
- Framer Motion & Reanimated 3: Delivers the cinematic, 60fps animations, liquid-glass effects, and seamless page transitions.
- Firebase Cloud Firestore: A highly scalable NoSQL database providing real-time data synchronization between the web and mobile apps.
- Firebase Authentication: Secure, passwordless, and phone-number-based authentication.
- Google Cloud Storage: Securely stores high-resolution crop imagery and user documents.
- Firebase Cloud Messaging (FCM): Delivers critical weather and market alerts directly to user devices.
AgriSence uses a proprietary design system engineered to look incredibly premium, trustworthy, and modern.
- Headings (Instrument Serif): All major headings utilize
Instrument Serif(italicized), providing an editorial, cinematic, and authoritative feel. - Body Text (Barlow):
Barlowis used for all UI text and paragraphs, offering maximum legibility and a clean, technical aesthetic.
- Ultra-Dark Canvas: The primary background is
#000000or#050505to reduce eye strain and make the interface feel immersive. - Agri-Green Accents:
emerald-400(#34d399) andgreen-500(#22c55e) are used sparingly for critical actions, highlights, and success states, symbolizing healthy growth.
Instead of flat, boring cards, AgriSence utilizes complex CSS masks and backdrop-filters to create "Liquid Glass". This effect involves near-invisible backgrounds with extreme background-blurs and custom gradient-stroke borders, ensuring the UI feels futuristic yet unobtrusive.
Ready to run AgriSence locally? Follow these steps to get the entire monorepo up and running.
Ensure you have the following installed on your machine:
- Node.js: v20.x or higher
- pnpm: v9.x or higher (
npm install -g pnpm) - Java Development Kit (JDK): v17 (Required for Android build)
- Android Studio: For running the mobile emulator
- Git: For version control
-
Clone the Repository
git clone https://github.com/your-org/agrisence.git cd agrisence -
Install Dependencies We use
pnpmworkspaces for efficient dependency management.pnpm install
-
Set Up Environment Variables Copy the example environment files in both the web and mobile directories.
cp apps/web/.env.example apps/web/.env.local cp apps/mobile/.env.example apps/mobile/.env cp apps/landing/.env.example apps/landing/.env.local
Note: You will need to obtain Firebase configuration keys and a Google Gemini API key from the Google Cloud Console and populate these files.
To start the Next.js development servers:
# Start the Web Dashboard (Port 3001)
pnpm --filter web dev
# Start the Landing Page (Port 3000)
pnpm --filter landing devOpen http://localhost:3000 in your browser to view the cinematic landing page.
To start the Expo development server and run the app on an Android emulator:
# Ensure your Android emulator is running, then execute:
pnpm --filter mobile startPress a in the terminal to open the app on your Android emulator.
The project requires several crucial environment variables to function correctly. Ensure these are never committed to version control.
Firebase Configuration:
NEXT_PUBLIC_FIREBASE_API_KEY="your-api-key-here"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN="your-project-id.firebaseapp.com"
NEXT_PUBLIC_FIREBASE_PROJECT_ID="your-project-id"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET="your-project-id.appspot.com"
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID="your-messaging-sender-id"
NEXT_PUBLIC_FIREBASE_APP_ID="your-app-id"AI & Maps Configuration:
GEMINI_API_KEY="your-gemini-api-key"
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY="your-google-maps-api-key"We welcome contributions from the community to help make AgriSence the standard in open agricultural technology.
- Fork the Repository: Create your own fork on GitHub.
- Create a Feature Branch:
git checkout -b feature/amazing-new-tool - Commit your Changes: We follow conventional commits.
git commit -m "feat(mobile): add offline crop disease caching" - Push to the Branch:
git push origin feature/amazing-new-tool - Open a Pull Request: Describe your changes in detail and link to any relevant issues.
- We use ESLint and Prettier for code formatting. Run
pnpm run lintbefore committing. - Ensure all new components are strictly typed with TypeScript. Avoid the use of
any. - Write unit tests for critical business logic using Vitest.
Agricultural data is highly sensitive. AgriSence implements strict security protocols:
- End-to-End Encryption: All data transmitted between the mobile app, web dashboard, and Firebase backend is encrypted over HTTPS/TLS.
- Strict Firestore Rules: Database access is governed by rigorous Firebase Security Rules, ensuring users can only read and write their own farm data.
- No AI Training on User Data: We strictly opt-out of allowing Google or any third party to use AgriSence user data (including crop photos and financial records) for training base AI models.
We are continuously evolving AgriSence. Here is a look at what is coming in the next 12 months:
- Q3 2026: Launch of the IoT Hardware Integration Kit (connect your own soil moisture sensors directly to the app via Bluetooth).
- Q4 2026: Implementation of Drone-based orthomosaic field mapping in the Web Platform.
- Q1 2027: Peer-to-peer equipment sharing marketplace within the mobile app.
- Q2 2027: Full iOS App Store release and expansion of local language support to Tamil, Telugu, and Marathi.
AgriSence is released under the MIT License. See the LICENSE file for more details.
Contact the Team:
- Email: engineering@agrisence.com
- Twitter / X: @AgriSenceApp
- Support: support.agrisence.com
Built with precision, designed for the future of farming.