নে A comprehensive mobile farming assistant built with React Native and TypeScript, powered by AI for intelligent crop recommendations, disease detection, market prices, and profit analysis.
- Crop Recommendation: Get AI-suggested crops based on soil and weather conditions
- Disease Detection: Upload leaf images to detect plant diseases automatically
- Pest Detection: Identify pests and get natural control remedies
- Profit & Loss Analysis: Calculate farming profitability with detailed cost breakdown
- Real-time Market Prices: Live crop prices with 7-day trend charts
- Weather Forecast: Current weather and 7-day forecast
- Farming Calendar: Sowing, irrigation, and harvest reminders
- Multi language support
- Voice assistant with bilingual support
- UI and content fully translated
- Community forum for farmers to share tips
- Like, comment, and share functionality
- Real-time discussions
- Speech-to-Text (STT) input
- Text-to-Speech (TTS) output
- AI-powered voice commands
- Floating mic button for quick access
- Framework: React Native (Expo)
- Language: TypeScript
- Styling: NativeWind (Tailwind CSS)
- Navigation: React Navigation
- State Management: Redux Toolkit
- Voice: @react-native-voice/voice + expo-speech
- Charts: Victory Native
- Image Upload: expo-image-picker
- i18n: i18next + react-i18next
- Flask REST API
- Endpoints:
/crop/recommend,/disease/detect,/pest/detect,/market/prices,/finance/analyze,/voice/process,/translate,/weather
- Node.js (v16 or higher)
- Expo CLI
- iOS Simulator (Mac) or Android Emulator
- Expo Go app (for physical device testing)
- Clone the repository
git clone https://github.com/yourusername/agrismart.git
cd agrismart- Install dependencies
npm install- Update API configuration
Edit
src/config/api.tsand update theAPI_BASE_URLwith your Flask backend URL:
export const API_BASE_URL = 'http://your-backend-url:5000';- Start the development server
npm start- Run on iOS
npm run ios- Run on Android
npm run androidagrismart/
├── src/
│ ├── components/ # Reusable UI components
│ │ ├── Button.tsx
│ │ ├── Card.tsx
│ │ ├── Input.tsx
│ │ ├── Loader.tsx
│ │ └── VoiceAssistant.tsx
│ ├── screens/ # App screens
│ │ ├── HomeScreen.tsx
│ │ ├── CropScreen.tsx
│ │ ├── MarketScreen.tsx
│ │ ├── CommunityScreen.tsx
│ │ └── ProfileScreen.tsx
│ ├── navigation/ # Navigation setup
│ │ └── AppNavigator.tsx
│ ├── store/ # Redux store and slices
│ │ ├── store.ts
│ │ ├── slices/
│ │ └── hooks.ts
│ ├── i18n/ # Internationalization
│ │ ├── i18n.ts
│ │ └── locales/
│ ├── services/ # API services
│ │ └── api.ts
│ └── config/ # Configuration
│ └── api.ts
├── App.tsx
├── package.json
├── tsconfig.json
├── tailwind.config.js
└── README.md
Users input soil NPK values, temperature, humidity, pH, and rainfall. The app sends this data to the backend AI which returns suitable crops with Tamil translations.
Users can capture or upload leaf images. The AI analyzes the image and returns disease name, accuracy percentage, and cure methods.
Farmers input crop details, area, costs, and market prices. The app calculates:
- Estimated yield (kg/acre)
- Total costs
- Expected revenue
- Profit/Loss amount
- Visual charts comparing costs vs revenue
Displays real-time crop prices with interactive charts showing price trends over the last 7 days.
Floating microphone button allows users to:
- Ask questions in their preferred language
- Get AI-powered responses
- Receive information via text-to-speech
- Navigate the app hands-free
Update the API endpoints in src/config/api.ts to connect to your Flask backend. All API calls are handled through src/services/api.ts.
- Create screen in
src/screens/ - Add translations in
src/i18n/locales/ - Update navigation in
src/navigation/AppNavigator.tsx - Add Redux slices in
src/store/slices/if needed
expo build:android
expo build:iosThis is a project focused on helping farmers through AI and mobile technology. Contributions are welcome!
MIT License
For issues and questions, please open an issue on GitHub or contact the development team.
Built with ❤️ for farmers