๐ฐ๏ธ Satellite intelligence for every farmer, in every language, on every phone.
Free forever ยท Powered entirely by open satellite data ยท No subscription needed
Khet Map (เคเฅเคค เคฎเฅเคช) is a free, open-source satellite intelligence platform built for Indian farmers. Using data from the European Space Agency's Sentinel satellites, NASA, and Copernicus, it brings space-grade crop monitoring to the palm of your hand โ in Hindi, Telugu, Kannada, Tamil, and English.
"เค เคชเคจเคพ เคเฅเคค, เค เคชเคจเคพ เคจเคเฅเคถเคพ" โ Your farm, your map.
| Traditional Farming | With Khet Map |
|---|---|
| Walk entire farm to detect pest/disease | See crop stress from satellite in seconds |
| Guess irrigation timing | Get data-driven ETโ + soil moisture advice |
| No record of field boundaries | Draw & save permanent field map |
| Wait for extension officer visit | Ask HARI AI anytime in your language |
| No flood early warning | Sentinel-1 SAR detects waterlogging instantly |
| Pay for agri-apps | Completely free, forever |
| Satellite | Revisit | Resolution | What Farmers Get |
|---|---|---|---|
| Sentinel-2 (ESA) | ~5 days | 10 m | NDVI ยท EVI ยท NDWI ยท Crop health score |
| Sentinel-1 SAR (ESA) | 6โ12 days | 10 m | Waterlogging ยท Flood maps ยท Rice mapping |
| Landsat 8/9 (USGS) | 16 days | 30 m + thermal | Long-term trends ยท Water stress (CWSI) |
| MODIS/VIIRS (NASA) | Daily | 250โ500 m | Regional benchmarks ยท Drought alerts |
| Open-Meteo + NASA POWER | Hourly | High-res | Rainfall ยท ETโ ยท Soil temp ยท Smart irrigation |
| DEM/SRTM | Static | 30 m | Slope ยท Drainage ยท Terrain analysis |
๐บ๏ธ Field Mapping
- Draw polygons directly on satellite basemap
- Upload KML / GeoJSON / CSV field boundaries
- Copernicus-style polygon selection โ click-to-select parcels
- Multi-field management โ unlimited farms saved to cloud
- GPS "My Location" with auto-zoom to your farm
- Area calculator (hectares & cents displayed live)
๐ฟ Crop Health (NDVI & Beyond)
- Live NDVI overlay from Sentinel-2 (updated every 5 days)
- Color scale: ๐ด Stressed โ ๐ก Moderate โ ๐ข Healthy
- NDVI trend graph โ last 30 days per field
- EVI, NDWI, REIP indices available
- Health Score 0โ100 with actionable alerts
- Before/After satellite comparison slider
๐ง Water & Weather Intelligence
- Sentinel-1 SAR waterlogging detection (works through clouds & monsoon)
- Flood mapping with early-warning alerts
- Hourly weather: rainfall, temperature, humidity
- ETโ (evapotranspiration) โ tells you exactly when to irrigate
- Soil moisture proxy from NASA POWER
๐ค HARI AI โ Holistic Agricultural Response Intelligence
- Voice + text input in Hindi, Telugu, Kannada, Tamil, English
- Answers real farmer questions:
- "Mera NDVI kam kyun hai?" โ detailed explanation + fix
- "Aaj irrigation karna chahiye?" โ yes/no + quantity
- "Kab harvest karu?" โ crop-specific calendar advice
- Powered by your farm's live satellite + weather data
- Works offline for common queries
๐ฑ Android PWA
- Install from Chrome browser โ no Play Store needed
- Offline map tile cache
- Push notifications for crop alerts & weather warnings
- Works on any Android phone (Android 7+)
- Optional: Capacitor
.apkbuild for Play Store
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ KHET MAP โ Full Architecture โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ AUTH โ Firebase Auth โ
โ โ โโโ Google OAuth โ
โ โ โโโ Phone OTP (SMS, +91 India) โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MAP ENGINE โ Leaflet + react-leaflet โ
โ โ โโโ ESRI World Imagery (base) โ
โ โ โโโ Copernicus NDVI WMS (Sentinel-2)โ
โ โ โโโ Sentinel-1 SAR WMS โ
โ โ โโโ NASA GIBS MODIS overlay โ
โ โ โโโ Open-Meteo weather layer โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ DATABASE โ Firebase Firestore โ
โ โ โโโ /users/{uid} โ
โ โ โโโ /farms/{uid}/{farmId} โ
โ โ โโโ /alerts/{uid} โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ AI LAYER โ HARI โ Crop Advisor AI โ
โ โ โโโ Rule-based (offline) โ
โ โ โโโ Gemini API (online, enhanced) โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ DELIVERY โ PWA (Chrome install) โ
โ โ โโโ Capacitor APK (optional) โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Node.js 18+
- Firebase project (free Spark plan)
- Copernicus Data Space account (free โ register here)
git clone https://github.com/virahitvin8/khetmap.git
cd khetmap
npm installcp .env.example .envEdit .env:
# Firebase
VITE_FIREBASE_API_KEY=your_api_key
VITE_FIREBASE_AUTH_DOMAIN=your_project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your_project_id
VITE_FIREBASE_STORAGE_BUCKET=your_project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id
# Copernicus Data Space (Sentinel-2 NDVI)
VITE_COPERNICUS_INSTANCE_ID=your_instance_id
VITE_COPERNICUS_CLIENT_ID=your_client_id
# Optional: Gemini AI for HARI
VITE_GEMINI_API_KEY=your_gemini_api_keynpm run dev
# โ http://localhost:5173Open http://your-local-ip:5173 in Android Chrome โ tap โฎ โ Add to Home Screen
npm run build
npm run previewnpm install @capacitor/core @capacitor/android
npx cap init KhetMap com.khetmap.app
npx cap add android
npm run build
npx cap sync
npx cap open android # Opens Android Studio โ Build โ Generate Signed APKPhase 0 โ
Foundation โ Vite + React + Firebase + Map skeleton
Phase 1 ๐ Auth โ Google OAuth + Phone OTP + Premium landing page
Phase 2 ๐ Map Intelligence โ Copernicus NDVI WMS + KML/CSV upload
Phase 3 ๐ Farms Dashboard โ Health scores + NDVI trend charts
Phase 4 ๐ HARI AI โ Voice + text crop advisor
Phase 5 ๐ PWA โ Android installable + offline support
Phase 6 ๐ i18n โ Hindi, Telugu, Tamil, Kannada
Phase 7 ๐ Play Store โ Capacitor APK release
| Source | Usage | License |
|---|---|---|
| ESA Copernicus / Sentinel-2 | NDVI, EVI, NDWI overlays | Free / Open |
| ESA Sentinel-1 | SAR waterlogging detection | Free / Open |
| NASA POWER | Solar radiation, wind, ETโ | Public Domain |
| Open-Meteo | Hourly weather data | CC BY 4.0 |
| USGS Landsat 8/9 | Long-term thermal trends | Public Domain |
| OpenStreetMap | Street map basemap | ODbL |
| ESRI World Imagery | Satellite basemap tiles | ESRI Terms |
| Leaflet | Interactive map engine | BSD-2 |
| Firebase | Auth, Firestore, Storage | Google ToS |
Contributions are very welcome! Especially:
- ๐ Translations (Hindi, Telugu, Tamil, Kannada, Marathi)
- ๐ Bug reports from farmers testing in real fields
- ๐ฐ๏ธ New satellite index implementations (LAI, SAVI, VARI)
- ๐ฑ UI/UX improvements for low-end Android devices
# Fork the repo, then:
git checkout -b feature/your-feature-name
git commit -m "feat: add your feature"
git push origin feature/your-feature-name
# โ Open Pull RequestMIT License โ Free to use, modify, and distribute.
Built with โค๏ธ for Indian farmers ยท Powered by open satellite data ยท Free forever
๐ฐ๏ธ Sentinel-2 ยท Sentinel-1 ยท Landsat ยท MODIS ยท NASA POWER ยท Open-Meteo
