# π± HarvestID
HarvestID β From Seed to Harvest, Every Crop Has an Identity.
HarvestID is a multilingual, AI-powered digital agriculture platform designed to give every registered crop a digital identity and traceable crop passport.
The platform enables farmers to register crops, record field activities, generate digital crop passports, scan and share crop information through QR codes, interact with an AI-powered Farmer Assistant, use voice-based interaction, automatically capture location information, and manage crop information through a farmer-friendly multilingual interface.
HarvestID combines Artificial Intelligence, Digital Crop Traceability, GPS, QR Technology, Voice Interaction, Multilingual Accessibility, and Modern Web Technologies into a single agriculture-focused ecosystem.
Agriculture involves multiple stages between planting and harvesting.
Important information such as:
- Crop variety
- Farm information
- Planting date
- Location
- Area
- Sowing activities
- Irrigation
- Fertilization
- Pest monitoring
- Crop health observations
- Images
- Notes
- Harvest readiness
is often recorded manually or scattered across different systems.
HarvestID addresses this problem by creating a digital identity for every crop.
Each registered crop receives a centralized digital record that can be updated throughout its lifecycle.
The farmer can eventually share this information through a QR-based digital crop passport, making crop information easier to access, understand, and verify.
HarvestID is designed to:
- Digitize crop records
- Create a unique identity for every crop
- Maintain crop lifecycle information
- Improve agricultural traceability
- Simplify field activity recording
- Provide AI-powered agricultural assistance
- Support regional languages
- Enable voice-based interaction
- Automatically capture farm/crop location
- Provide QR-based crop information sharing
- Make agricultural data easier to access
- Create a scalable foundation for future smart agriculture services
Farmers can register crops digitally instead of maintaining only physical records.
Crop information can include:
- Crop name
- Crop variety
- Category
- Farm name
- GPS location
- Cultivated area
- Crop image
- Notes
- Crop score
- Passport status
Each crop becomes a separate digital record.
Every registered crop can receive a digital crop passport.
The passport acts as the crop's digital identity.
It can contain:
- Crop information
- Farm information
- Crop image
- Location
- Crop score
- Crop lifecycle information
- Recorded field activities
- Passport status
- QR code
The passport can be accessed through a dedicated public URL.
HarvestID provides QR-based access to crop passport information.
Register Crop β Create Crop Record β Generate Digital Passport β Generate QR Code β Scan QR Code β Open Public Crop Passport
The QR code can be used to quickly access the corresponding crop's digital information. This can be useful for: Farmers Buyers Agricultural organizations Supply-chain participants Demonstration farms Future certification systems
π· 4. QR Scanner HarvestID includes a QR scanning interface that allows users to scan crop passport QR codes. The scanner can identify the corresponding crop passport and open its digital information. This creates a simple bridge between the physical crop/farm environment and the digital crop record.
π± 5. Crop Lifecycle Activity Tracking Farmers can record important activities throughout the crop lifecycle. Examples include: π± Sowing π§ Irrigation π§ͺ Fertilization π Pest Monitoring πΏ Crop Monitoring πΎ Harvest π General Field Notes
Each activity can contain: Activity type Date Crop association Notes Photos Audio AI enhancement information AI-generated summaries Confidence information This creates a chronological history of the crop.
π 6. Crop Activity Timeline Every crop can have a chronological activity timeline.
Example: Day 1 π± Sowing β Day 8 π§ Irrigation β Day 15 π§ͺ Fertilization β Day 22 π Pest Monitoring β Day 45 πΏ Crop Monitoring β Harvest πΎ
This allows farmers to understand the crop's lifecycle at a glance.
π€ 7. AI Farmer Assistant HarvestID includes an AI-powered Farmer Assistant. The assistant is designed to provide agricultural guidance using:
- Farmer's selected language
- Crop context
- Crop information
- Existing crop activities
- Location information
Farmers can ask questions such as:
"What fertilizer should I use?"
"Why are my tomato leaves turning yellow?"
"When should I irrigate this crop?"
"What pests commonly affect this crop?"
"How can I improve crop health?"
The AI assistant can provide practical agricultural guidance while considering available crop and location context.
π 8. Multilingual Farmer Interface
HarvestID is designed for farmers who may not be comfortable using English-only applications.
The platform supports 13 languages.
Supported Languages Code Language
EN English HI Hindi KN Kannada TE Telugu TA Tamil ML Malayalam MR Marathi BN Bengali GU Gujarati PA Punjabi OR Odia AS Assamese UR Urdu
The selected language applies across the application.
This includes:
Dashboard Navigation Crop registration Crop details Activities Passport Settings AI Assistant Empty states Loading states Error messages Voice navigation
The language preference is persisted so it remains selected after refreshing or navigating between pages.
π£οΈ 9. Voice Interaction
HarvestID is designed to support voice-based interaction for farmers. Farmers can interact with the application using voice input.
The system supports:
Voice questions Voice navigation commands Multilingual speech recognition AI-generated voice responses Selected-language speech output
- Voice workflow
Farmer speaks β Speech recognition β Selected language detected/used β Question sent to AI β AI generates response β Response displayed as text β Response spoken through voice
This reduces dependence on typing and improves accessibility for users who prefer speaking.
π 10. GPS & Location Awareness
HarvestID can capture the crop's location using the device GPS.
The system uses:
GPS Location β Latitude / Longitude β Reverse Geocoding β Readable Location β Stored with Crop
The location can then be used as part of the crop record and passed into the AI assistant context. This allows the AI assistant to provide more location-aware agricultural guidance.
π§ 11. Location-Aware AI
The Farmer Assistant can consider available location context when answering agricultural questions.
For example, agricultural advice can take into account:
Crop Farm location Crop activities Existing crop information Farmer's selected language
This creates a more contextual farming assistant instead of a completely generic chatbot.
πΌοΈ 12. Dynamic Crop Image System
HarvestID includes a centralized crop-image resolution system.
Instead of displaying a small fixed set of images, crop names are dynamically mapped to appropriate crop images.
The system supports:
Crops Fruits Vegetables Grains Pulses Commercial crops Regional crop names Singular/plural names Common aliases
Examples: Tomato Tomatoes Cherry Tomato Desi Tomato
can resolve to the appropriate tomato image. Similarly: Brinjal Eggplant Baingan Aubergine
can resolve to the same crop identity. The system also supports many Indian/regional crop names.
πΈ 13. Farmer Crop Image Upload
Farmers can upload their own crop images during crop registration. The uploaded image takes priority over the default crop catalog image.
Priority
Farmer Uploaded Image
β
YES
β
Display Upload
β
NO
β
Crop Image Catalog
β
Found?
/
YES NO
β β
Crop Image Honest Placeholder
This prevents the application from showing an incorrect crop image for an unknown crop.
π¨ 14. Premium Agricultural UI
HarvestID uses a modern agriculture-inspired interface.
The UI includes: Agricultural visual identity Responsive layouts Animated elements Floating agricultural elements Interactive cards Animated assistant interface Modern navigation Light and dark theme compatibility Mobile-friendly layouts Smooth transitions Reduced-motion accessibility support
The visual design is intended to feel like a modern agricultural technology platform rather than a traditional farm management application.
π 15. Responsive Design
HarvestID is designed for: π± Mobile phones π± Tablets π» Laptops π₯οΈ Desktop systems The interface adapts navigation, branding, cards, dashboards and controls according to screen size.
π·οΈ 16. HarvestID Branding
HarvestID uses a centralized official logo system. The logo is implemented through a reusable component so that branding remains consistent across: Sidebar Dashboard Mobile header Desktop header Passport Farmer Assistant Footer Empty states Browser favicon This avoids maintaining multiple independent versions of the logo.
ποΈ System Architecture
ββββββββββββββββββββββββ
β FARMER β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β HarvestID Frontend β
β Web Application β
ββββββββββββ¬ββββββββββββ
β
βββββββββββββββββββββββΌβββββββββββββββββββββββ
β β β
βΌ βΌ βΌ
Crop System AI Assistant QR Passport
β β β
βΌ βΌ βΌ
Activities Gemini AI Public URL
β β β
βββββββββββββββββββββββΌβββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Express API β
β Node.js Backend β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Supabase β
β Database + Storage β
ββββββββββββββββββββββββ
π Crop Passport Workflow
Farmer
β
βΌ
Register Crop
β
βββ Crop Information
βββ Variety
βββ Farm
βββ Area
βββ GPS
βββ Image
βββ Notes
β
βΌ
Crop Stored in Database
β
βΌ
Record Field Activities
β
βββ Sowing
βββ Irrigation
βββ Fertilization
βββ Pest Monitoring
βββ Harvest
β
βΌ
Generate Crop Passport
β
βΌ
Generate QR Code
β
βΌ
Share / Scan
β
βΌ
Public Digital Crop Passport
π€ AI Assistant Workflow
Farmer
β
βΌ
Text / Voice Question
β
βΌ
Language Selection
β
βΌ
Crop Context
β
βββ Crop Name
βββ Activities
βββ Location
βββ Other Available Data
β
βΌ
HarvestID Backend
β
βΌ
Google Gemini
β
βΌ
AI Response
β
βββ Text Response
βββ Voice Response
β
βΌ
Farmer
π Production Architecture
HarvestID uses a separated frontend/backend architecture.
GitHub
β
ββββββββββββββββΊ Vercel
β β
β βΌ
β Frontend
β
ββββββββββββββββΊ Render
β
βΌ
Node.js API
β
βΌ
Supabase
β
βββ Database
βββ Data Services
β
βΌ
Google Gemini
AI Services
π οΈ Technology Stack
Frontend: React TypeScript TanStack Start Vite CSS Responsive UI Browser Web APIs
Backend: Node.js Express JavaScript REST APIs CORS Environment configuration
Database: Supabase PostgreSQL Row Level Security
AI: Google Gemini API Gemini Flash models Multilingual AI responses Context-aware agricultural assistance
Deployment: GitHub Vercel β Frontend Render β Backend Supabase β Database
Browser APIs: Geolocation API Web Speech API Camera/QR functionality Local Storage
π Project Structure:
harvest-id-passport/
β
βββ backend/
β βββ config/
β βββ controllers/
β βββ middleware/
β βββ models/
β βββ routes/
β βββ services/
β βββ utils/
β βββ schema.sql
β βββ server.js
β
βββ public/
β βββ logo/
β βββ harvestID logo.jpeg
β
βββ src/
β βββ components/
β β βββ HarvestIDLogo.tsx
β β βββ FarmerAssistant.tsx
β β βββ CropCard.tsx
β β βββ Timeline.tsx
β β βββ ...
β β
β βββ i18n/
β β βββ ...
β β
β βββ lib/
β β βββ harvest-store.tsx
β β βββ crop-images.ts
β β βββ crop-l10n.ts
β β βββ ...
β β
β βββ routes/
β β βββ index.tsx
β β βββ crops.new.tsx
β β βββ crops.$cropId.tsx
β β βββ passport.$cropId.tsx
β β βββ ...
β β
β βββ styles.css
β
βββ .gitignore
βββ package.json
βββ README.md
π Security & Environment Variables
Sensitive environment variables are not committed to GitHub.
The project protects environment files through .gitignore.
Important production variables include:
Vercel: VITE_API_BASE_URL VITE_PUBLIC_SITE_URL
Render: SUPABASE_URL SUPABASE_ANON_KEY GOOGLE_API_KEY PORT
API keys remain server-side and are never intentionally exposed to the browser.
ποΈ Database:
Supabase provides the primary backend data layer.
Important data includes:
Harvest Stores crop information. Example fields: id crop name variety category farm name gps area score passport image note
Activities:
Stores crop lifecycle activities. Example fields: id crop_id kind title note date media ai_enhanced ai_summary confidence photo audio created_at
π Row Level Security:
Supabase Row Level Security is enabled for relevant tables.
Policies are configured to allow the backend application to perform the required database operations using the configured Supabase credentials.
π§ͺ Testing & Validation:
The production application has been validated through: TypeScript compilation Production build Backend syntax validation API endpoint testing Crop CRUD testing Activity CRUD testing Passport persistence testing QR/public passport testing Supabase schema migration testing AI API testing Multilingual AI testing GPS integration validation Crop image resolver testing SSR production rendering Production deployment verification
β Production Health:
Current production architecture:
Component Platform Status
Frontend Vercel π’ Live
Backend API Render π’ Live
Database Supabase π’ Connected
AI Google Gemini π’ Connected
Source Control GitHub π’ Active
QR Passport HarvestID π’ Active
Multilingual UI 13 Languages π’ Active
Voice Interaction Browser Speech APIs π’ Active
GPS Browser Geolocation π’ Active
π Example Use Case:
Scenario
A farmer registers a tomato crop.
Crop:
Tomato
Variety:
Hybrid Tomato
Farm:
My Farm
Area:
2 Acres
Location:
GPS captured automatically
The farmer then records: π± Sowing π§ Irrigation π§ͺ Fertilization π Pest Monitoring πΏ Crop Monitoring
The farmer can ask: "Why are the leaves of my tomato plants turning yellow?"
The AI assistant receives relevant crop context and available location information and provides guidance in the farmer's selected language. Later, the farmer generates a digital crop passport. The passport can be accessed using a QR code.
π― Target Users:
HarvestID is designed primarily for: π¨βπΎ Farmers π©βπΎ Agricultural workers π± Farmer groups π’ Agricultural organizations π§βπ¬ Agricultural researchers π Agricultural buyers π Agri-tech ecosystems πΎ Future supply-chain participants
π Why HarvestID? Traditional crop records can be: Paper-based Fragmented Difficult to update Difficult to share Difficult to trace
HarvestID transforms crop records into a structured digital identity.
Traditional
Paper Records
β
Scattered Information
β
Difficult Tracking
β
Limited Accessibility
HarvestID
Digital Crop Identity
β
Centralized Crop Data
β
Lifecycle Tracking
β
AI Assistance
β
QR Passport
β
Easy Sharing & Access
π Project Vision:
HarvestID aims to become a digital identity layer for agriculture. The long-term vision is: Seed β Sowing β Growth β Irrigation β Fertilization β Crop Monitoring β Harvest β Processing β Distribution β Consumer with digital information connected throughout the crop lifecycle.
π¨βπ» Development Philosophy:
HarvestID follows a modular architecture where major capabilities are separated into reusable components and services.
Core principles: Modular development Reusable components Centralized state management API-driven architecture Secure environment handling Responsive design Accessibility Multilingual support Production validation Scalable architecture
π Links π Live Application: https://harvest-id-passport.vercel.appβ οΏ½
π» GitHub Repository: https://github.com/03darshanpatil-code/harvest-id-passportβ οΏ½
βοΈ Backend API: https://harvest-id-backend.onrender.comβ οΏ½
π± HarvestID Give Every Crop a Digital Identity. From Seed to Harvest β Trace Every Step.