Skip to content

akashdeep023/MadhavAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

92 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MADHAV AI - Farmer Decision Support Platform

An AI-powered mobile application designed to provide Indian farmers with actionable, step-by-step guidance for farming decisions. The platform integrates weather data, soil health, market prices, government schemes, and agricultural best practices to deliver personalized recommendations through voice and regional languages.

๐ŸŒพ Features

  • Offline-First Architecture: Core functionality works without internet connectivity
  • AI-Powered Recommendations: Crop, fertilizer, and seed recommendations using AWS Bedrock
  • Weather Intelligence: 7-day forecasts with farming advice and severe weather alerts
  • Market Intelligence: Real-time mandi prices and selling guidance
  • Government Schemes Navigator: Discover and apply for eligible schemes
  • Soil Health Insights: Interpret soil test results and get improvement recommendations
  • Training & Learning: Short practical lessons in regional languages
  • Voice Interface: Complete voice navigation for low-literacy users
  • Multilingual Support: 10+ Indian regional languages
  • Smart Alerts: Timely reminders for farming activities

๐Ÿš€ Technology Stack

  • Mobile: React Native 0.84.1 with TypeScript
  • Backend: AWS Lambda (Node.js/TypeScript)
  • Database: DynamoDB (cloud) + SQLite (local)
  • AI/ML: AWS Bedrock
  • Storage: Amazon S3
  • Testing: Jest + fast-check (property-based testing)
  • Code Quality: ESLint + Prettier

๐Ÿ“‹ Prerequisites

  • Node.js >= 22.11.0
  • npm or yarn
  • React Native development environment
  • Android Studio (for Android development)
  • Xcode (for iOS development, macOS only)

๐Ÿ› ๏ธ Installation

  1. Clone the repository:
git clone <repository-url>
cd MadhavAI
  1. Set up environment variables:
# Copy example file
cp .env.example .env

# Edit .env and add your values (see docs/secrets/SECRETS_SETUP_GUIDE.md)
  1. Install dependencies:
npm install
  1. Generate Android keystore (for release builds):
cd android
./generate-keystore.sh
cd ..
  1. Install iOS dependencies (macOS only):
cd ios && pod install && cd ..

For detailed setup instructions, see Quick Start Guide

๐Ÿƒ Running the Application

Start Metro Bundler

npm start

Run on Android

npm run android

Run on iOS (macOS only)

npm run ios

๐Ÿงช Testing

Run all tests

npm test

Run tests in watch mode

npm run test:watch

Run tests with coverage

npm run test:coverage

Run property-based tests

Property-based tests use fast-check library and are included in the test suite. They validate correctness properties across randomized inputs.

๐Ÿ” Code Quality

Lint code

npm run lint

Fix linting issues

npm run lint:fix

Format code

npm run format

Check formatting

npm run format:check

Type check

npm run type-check

๐Ÿ“ Project Structure

MadhavAI/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/      # Reusable UI components
โ”‚   โ”œโ”€โ”€ screens/         # Screen-level components
โ”‚   โ”œโ”€โ”€ services/        # Business logic and API services
โ”‚   โ”œโ”€โ”€ hooks/           # Custom React hooks
โ”‚   โ”œโ”€โ”€ store/           # State management
โ”‚   โ”œโ”€โ”€ config/          # Configuration files
โ”‚   โ”œโ”€โ”€ types/           # TypeScript type definitions
โ”‚   โ””โ”€โ”€ utils/           # Utility functions
โ”œโ”€โ”€ android/             # Android native code
โ”œโ”€โ”€ ios/                 # iOS native code
โ”œโ”€โ”€ __tests__/           # Test files
โ”œโ”€โ”€ docs/                # Project documentation
โ””โ”€โ”€ .kiro/specs/         # Specification documents

๐Ÿ“š Documentation

Comprehensive documentation is available in the docs/ folder:

๐Ÿš€ Getting Started

๐Ÿ” Secrets & Environment

๐Ÿ“ฑ Mobile Build & Deployment

๐Ÿ“– Feature Documentation

For complete documentation index, see docs/README.md

๐ŸŽฏ Development Workflow

This project follows a spec-driven development approach. Implementation tasks are defined in .kiro/specs/farmer-decision-support-platform/tasks.md.

Current Status

โœ… Task 1: Project setup and infrastructure foundation - COMPLETE
โœ… Task 2: Authentication module implementation
โœ… Task 3: User profile module implementation
โœ… Task 4: Offline sync module implementation
โœ… Task 5: Checkpoint - Core infrastructure validation
โœ… Task 6: Weather intelligence module implementation
โœ… Task 7: Market intelligence module implementation
โœ… Task 8: oil health module implementation
โœ… Task 9: Recommendation engine implementation
โœ… Task 10: Checkpoint - Core recommendation engine validation
โœ… Task 11: Government schemes navigator implementation
โœ… Task 12: Training and learning module implementation
โœ… Task 13: Alert and reminder system implementation
โœ… Task 14: Voice interface module implementation
โœ… Task 15: Multilanguage support implementation
โœ… Task 16: Dashboard module implementation
โœ… Task 17: Checkpoint - Core features integration validation

๐ŸŒ Supported Languages

  • Hindi (เคนเคฟเคจเฅเคฆเฅ€)
  • Tamil (เฎคเฎฎเฎฟเฎดเฏ)
  • Telugu (เฐคเฑ†เฐฒเฑเฐ—เฑ)
  • Kannada (เฒ•เฒจเณเฒจเฒก)
  • Marathi (เคฎเคฐเคพเค เฅ€)
  • Bengali (เฆฌเฆพเฆ‚เฆฒเฆพ)
  • Gujarati (เช—เซเชœเชฐเชพเชคเซ€)
  • Punjabi (เจชเฉฐเจœเจพเจฌเฉ€)
  • Malayalam (เดฎเดฒเดฏเดพเดณเด‚)
  • Odia (เฌ“เฌกเฌผเฌฟเฌ†)
  • English

๐Ÿ“Š Architecture Principles

  1. Offline-First: All core features work without internet
  2. Modular: Clean separation of concerns
  3. Type-Safe: Strict TypeScript configuration
  4. Testable: Property-based testing for correctness
  5. Scalable: Designed for 10M+ users
  6. Accessible: Voice interface and regional language support

๐Ÿ” Security

  • AES-256 encryption for local data
  • TLS 1.3 for network communications
  • OTP-based authentication
  • Secure session management
  • Data privacy compliance

๐Ÿ“ˆ Performance Targets

  • Dashboard load: < 2 seconds (offline)
  • API response: < 3 seconds
  • Recommendations: < 5 seconds
  • App size: < 50 MB
  • Battery usage: < 5% per hour active use
  • Minimum device: Android 8.0, 2 GB RAM

๐Ÿค Contributing

  1. Follow the coding standards (ESLint + Prettier)
  2. Write tests for new features
  3. Maintain 80%+ code coverage
  4. Update documentation
  5. Follow the spec-driven development workflow

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE file for more information.

๐Ÿ‘ฅ Team

Payal Kumari
Team Leader | Full Stack Developer | AI Integration
LinkedIn: https://www.linkedin.com/in/payalkumari10/

Akashdeep
Full Stack Developer | React Native Development
LinkedIn: https://www.linkedin.com/in/akashdeep023/

Prem Rathod
Full Stack Developer | Backend & Cloud Support
LinkedIn: https://www.linkedin.com/in/prem-arun-rathod/

๐Ÿ“ž Support

If you have questions, suggestions, or would like to collaborate, feel free to reach out.

Payal Kumari
Team Leader โ€“ Team Madhav
๐Ÿ“ง Email: kumaripayal7488.com
๐Ÿ”— LinkedIn: https://www.linkedin.com/in/payalkumari10/

For technical queries, you can also connect with any of the Team Madhav members listed above.


Built with โค๏ธ to empower Indian farmers with AI-powered decision support.

About

AI-powered mobile platform delivering step-by-step farming guidance for Indian farmers. Integrates weather, soil, market prices, and government schemes into clear, voice-enabled recommendations. Built for low-literacy users with an offline-first design.

Topics

Resources

License

Stars

Watchers

Forks

Contributors