Built for modern farming, Terra Intelligence is a high-performance command center that transforms environmental and biological data into mission-critical insights. Designed with a tactical "Batman-inspired" HUD, the platform prioritizes speed, precision, and actionable intelligence.
- Computer Vision: Powered by OpenAI GPT-4o Vision.
- Function: Real-time diagnostic scanning of crop images to identify pathogens, nutrient deficiencies, and environmental stress.
- Intelligence: Multi-variate recommendation engine.
- Function: Optimizes crop selection by analyzing soil pH, nutrient levels (NPK), and local climate data.
- Integration: Real-time data via OpenWeatherMap API.
- Function: Hyper-local forecasts, environmental tracking, and severe weather alerts integrated into the HUD.
- Calculations: Automated NPK ratio computations.
- Function: Minimizes chemical runoff and maximizes yield by calculating exact plant requirements.
- Expertise: 24/7 expert agricultural consultation.
- Function: An LLM-powered interface for troubleshooting, agronomic advice, and rapid system queries.
- HUD: Centralized real-time hub.
- Function: Displays system health, live weather stats, and rapid module shortcuts in a unified tactical dashboard.
- Core: React 19, Vite v8
- Styling: TailwindCSS v3.4 (Utility-first tactical design)
- Animations: Framer Motion (Fluid "Spring" physics for micro-interactions)
- Icons: Lucide-React (Technical glyphs)
- Navigation: React Router DOM v7
- Architecture: FastAPI (Python 3.11)
- Server: Uvicorn (Asynchronous high-performance ASGI)
- Protocols: RESTful API with modular routing system
- Dependency Management: pip (
requirements.txt)
- Primary Vision AI: Groq Vision —
meta-llama/llama-4-scout-17b-16e-instruct(ultra-fast inference) - Fallback LLM: OpenAI GPT-4o-mini
- Weather Data: OpenWeatherMap API
- Knowledge Base: 20+ Kerala crop disease encyclopedia (offline fallback)
- Node.js (v18+)
- Python (3.11+)
- API Keys: Groq API Key (free at console.groq.com) & OpenWeatherMap API Key
# Install frontend dependencies
npm install
# Install backend dependencies
pip install -r requirements.txtCopy the example env file and fill in your keys:
cp .env.example .envGROQ_API_KEY=your_groq_key_here
OPENAI_API_KEY=your_openai_key_here # optional fallback
OPENWEATHERMAP_API_KEY=your_key_here
DEFAULT_CITY=Ernakulam
DEFAULT_COUNTRY=INNote:
.envis gitignored — never commit real API keys. See.env.examplefor the template.
# Direct command
python -m uvicorn api.main:app --port 8000 --reload
# Or use the provided PowerShell script
./run_backend.ps1npm run devThe application will be accessible at http://localhost:5173 (Frontend) and http://localhost:8000/docs (API Docs).
- Tactical Aesthetics: Deep Blacks (
#020617) and Tactical Cyan highlights. - High Performance: Minimized latency through asynchronous API handling and Vite's HMR.
- Outdoor Optimized: High-contrast monochromatic UI designed for field visibility.
Building at the intersection of Agriculture and Artificial Intelligence.