Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Stars Forks License Made for Farmers Android PWA Satellite


๐Ÿ›ฐ๏ธ Satellite intelligence for every farmer, in every language, on every phone.
Free forever ยท Powered entirely by open satellite data ยท No subscription needed

Live Demo ย  Android Install


Khet Map demo screenshot


๐ŸŒฟ What Is Khet Map?

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.

๐ŸŽฏ The Problem We Solve

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 Data Sources

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

โœจ Core Features

๐Ÿ—บ๏ธ 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 .apk build for Play Store

๐Ÿ—๏ธ Tech Stack

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             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)        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+
  • Firebase project (free Spark plan)
  • Copernicus Data Space account (free โ€” register here)

1. Clone & Install

git clone https://github.com/virahitvin8/khetmap.git
cd khetmap
npm install

2. Set Up Environment Variables

cp .env.example .env

Edit .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_key

3. Run Locally

npm run dev
# โ†’ http://localhost:5173

4. Install on Android

Open http://your-local-ip:5173 in Android Chrome โ†’ tap โ‹ฎ โ†’ Add to Home Screen

5. Build Production

npm run build
npm run preview

๐Ÿ“ฑ Android APK (Optional โ€” Capacitor)

npm 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 APK

๐Ÿ“Š Developer Stats

GitHub Stats ย ย  Top Languages

GitHub Streak

Contribution Graph


๐Ÿ—บ๏ธ Roadmap

Phase 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

๐ŸŒ Data Credits & Open-Source Acknowledgements

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

๐Ÿค Contributing

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 Request

๐Ÿ“„ License

MIT 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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages