Satellite-powered agricultural and land analytics platform. Draw regions on a map, get NDVI vegetation analysis, soil profiling, climate data, land use classification, and AI crop planning — all in one dashboard.
| Layer | Technology |
|---|---|
| Frontend | React 18 + TypeScript 5 + Vite 5 |
| Styling | Tailwind CSS 3 + shadcn/ui |
| Mapping | Mapbox GL JS 3 |
| Backend | Vercel Edge Functions (/api/*) |
| Satellite | Google Earth Engine (Sentinel-2, ESA WorldCover, SRTM, CHIRPS) |
| AI | Google Gemini 2.5 Pro |
| Weather | Open-Meteo (free, no key) |
| Soil | ISRIC SoilGrids (free, no key) |
Requires Vercel CLI to run the frontend and API routes together.
npm i -g vercel
git clone https://github.com/your-org/terraq
cd terraq
npm installCreate a .env file in the project root:
MAPBOX_TOKEN=pk.eyJ1... GEE_PROJECT_ID=your-google-cloud-project-id GEE_SERVICE_ACCOUNT_JSON={"type":"service_account","private_key":"-----BEGIN RSA PRIVATE KEY-----\n..."} GEMINI_API_KEY=AIza...
GEE_SERVICE_ACCOUNT_JSONmust be the full JSON key on a single line.
Link to Vercel (one-time):
vercel link # Create new project, answer "no" to all customisation promptsRun:
vercel dev # http://localhost:3000
npm run devstarts Vite only —/api/*routes will not work withoutvercel dev.
vercel deploy --prod
Set these in Vercel → Settings → Environment Variables:
| Variable | Required |
|---|---|
MAPBOX_TOKEN |
Yes |
GEE_PROJECT_ID |
Yes |
GEE_SERVICE_ACCOUNT_JSON |
Yes |
GEMINI_API_KEY |
Yes |
VITE_SUPABASE_URL |
No |
VITE_SUPABASE_PUBLISHABLE_KEY |
No |
GNU AFFERO GENERAL PUBLIC LICENSE v3