KrishiSevak (meaning "Servant of Agriculture" in Hindi) is a comprehensive web application designed to revolutionize farming through technology. Built with modern web technologies and powered by AI, it provides farmers with actionable insights for better crop management, soil health monitoring, and data-driven decision making.
To bridge the technology gap in agriculture and empower farmers with tools that were previously accessible only to large agricultural corporations.
- Real-time NDVI (Normalized Difference Vegetation Index) analysis
- Historical crop health trends
- Satellite imagery from AgroMonitoring API
- Visual health indicators with color-coded maps
- 7-day weather forecasts
- Temperature, humidity, and precipitation data
- Weather-based farming recommendations
- Alert system for adverse conditions
- Comprehensive soil testing metrics (NPK, pH, moisture)
- Personalized fertilizer recommendations
- Soil improvement strategies
- Historical soil data tracking
- Natural language conversations about farming
- Crop-specific advice and recommendations
- Pest and disease identification
- Best practices and seasonal tips
- Powered by OpenAI GPT
- Hands-free operation for farmers in the field
- English and Hindi voice commands
- Text-to-speech responses
- Browser-based speech recognition (no app installation needed)
- Yield prediction models
- Cost-benefit analysis
- Water usage optimization
- Scenario planning tools
- Export reports (CSV/PDF)
- Full support for English and เคนเคฟเคเคฆเฅ (Hindi)
- Seamless language switching
- Culturally appropriate content
- Voice support in both languages
- Works on desktop, tablet, and mobile
- Progressive Web App (PWA) capabilities
- Offline-first architecture for critical features
- Touch-optimized interface
- Node.js 18+ and npm
- API keys (see Environment Variables)
# Clone the repository
git clone https://github.com/YOUR_USERNAME/krishisevak-app.git
cd krishisevak-app
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env and add your API keys
# Start development server
npm run devVisit http://localhost:3000 to see the app running locally.
Create a .env file in the root directory:
# AgroMonitoring API (Required for satellite features)
# Get your key at: https://agromonitoring.com/api
VITE_AGROMONITORING_API_KEY=your_agromonitoring_api_key
# OpenAI API (Required for AI Assistant)
# Get your key at: https://platform.openai.com/api-keys
VITE_OPENAI_API_KEY=your_openai_api_key
# Supabase (Optional - for user authentication)
# Get your credentials at: https://supabase.com
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
VITE_SUPABASE_PROJECT_ID=your_project_id
# Google Earth Engine (Optional - for advanced satellite data)
VITE_GOOGLE_EARTH_ENGINE_API_KEY=your_gee_api_key| Service | Purpose | Free Tier | Sign Up Link |
|---|---|---|---|
| AgroMonitoring | Satellite imagery & weather | โ Yes | Sign Up |
| OpenAI | AI Assistant | โ $5 credit | Sign Up |
| Supabase | User authentication | โ Yes | Sign Up |
- React 18 - UI library
- TypeScript - Type safety
- Vite - Build tool & dev server
- TailwindCSS - Styling
- shadcn/ui - Component library
- AgroMonitoring API - Satellite data & weather
- OpenAI GPT-4 - AI assistant
- Web Speech API - Voice recognition
- Leaflet - Interactive maps
- Recharts - Data visualization
- Vercel - Hosting & CI/CD
- GitHub - Version control
krishisevak-app/
โโโ src/
โ โโโ components/ # React components
โ โ โโโ ui/ # Reusable UI components
โ โ โโโ CropMonitoring.tsx
โ โ โโโ SoilHealthAnalysis.tsx
โ โ โโโ WeatherForecast.tsx
โ โ โโโ AIAssistant.tsx
โ โ โโโ VoiceSupport.tsx
โ โโโ services/ # API integrations
โ โ โโโ AgroMonitoringService.ts
โ โโโ utils/ # Helper functions
โ โโโ App.tsx # Main app component
โ โโโ main.tsx # Entry point
โโโ public/ # Static assets
โโโ .env.example # Environment template
โโโ vercel.json # Vercel configuration
โโโ DEPLOYMENT.md # Deployment guide
โโโ README.md # This file
Manual Deployment:
-
Push to GitHub
git add . git commit -m "Initial commit" git push origin main
-
Import to Vercel
- Go to vercel.com/new
- Import your GitHub repository
- Add environment variables
- Click "Deploy"
-
Configure Environment Variables
- In Vercel Dashboard โ Settings โ Environment Variables
- Add all variables from
.env.example
For detailed instructions, see DEPLOYMENT.md
The app supports voice commands in both English and Hindi:
- "Show crop monitoring"
- "Check soil health"
- "What is the weather today?"
- "Show recommendations"
- "Navigate to satellite analysis"
- "เคซเคธเคฒ เคจเคฟเคเคฐเคพเคจเฅ เคฆเคฟเคเคพเคเค" (Show crop monitoring)
- "เคฎเคฟเคเฅเคเฅ เคเคพ เคธเฅเคตเคพเคธเฅเคฅเฅเคฏ เคเคพเคเคเฅเค" (Check soil health)
- "เคเค เคฎเฅเคธเคฎ เคเฅเคธเคพ เคนเฅ?" (What is the weather today?)
- "เคธเฅเคเคพเคต เคฆเคฟเคเคพเคเค" (Show recommendations)
Note: Voice features require an internet connection and work best on Chrome/Edge browsers.
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
# Run linter
npm run lint
# Type check
npm run type-check- TypeScript for type safety
- ESLint for code linting
- Prettier for code formatting
- Git hooks for pre-commit checks
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch
git checkout -b feature/amazing-feature
- Commit your changes
git commit -m 'Add amazing feature' - Push to the branch
git push origin feature/amazing-feature
- Open a Pull Request
- Follow the existing code style
- Write meaningful commit messages
- Add tests for new features
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
- AgroMonitoring for providing satellite data APIs
- OpenAI for powering the AI assistant
- shadcn/ui for beautiful, accessible components
- The farming community for inspiration and feedback
- Open source contributors who made this possible
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: your.email@example.com
- โ Satellite crop monitoring
- โ Weather forecasting
- โ Soil health analysis
- โ AI assistant
- โ Voice support (English/Hindi)
- โ Bilingual interface
- Mobile app (React Native)
- Offline mode with local data sync
- Community marketplace
- Crop disease detection via image upload
- Integration with IoT sensors
- Multi-farm management
- Advanced analytics dashboard
- WhatsApp bot integration
Made with โค๏ธ for farmers ๐พ
Empowering agriculture through technology
Website โข Documentation โข Report Bug โข Request Feature


