How harshm13/agrobridge-sih26132 works
AgroBridge is a farmer-facing market-linkage and decision-support platform: farmers manage produce, assess markets and quality, compare buyer offers after transport costs, and explore logistics and transactions. The React app selects the user journey; a FastAPI backend exposes prediction, grading, pooling, and chatbot routers. The README describes broader capabilities, but many page and API implementations were not sampled, so their internal wiring is not inferred.
Main entry points: App.jsx App and navigation · main.py FastAPI application · chatbot.py Chatbot endpoint · FarmerOnboarding.jsx Farmer onboarding
Components 25
Farmer application
- App and navigation
frontend/src/App.jsx - Farmer onboarding
frontend/src/pages/FarmerOnboarding.jsx - My crops
frontend/src/pages/MyCrops.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Farmer support
frontend/src/pages/Support.jsx
Selling decisions
- Market intelligence
frontend/src/pages/MarketIntelligence.jsx - Crop quality
frontend/src/pages/QualityCheck.jsx - Opportunity engine
frontend/src/components/OpportunityEngine.jsx - Buyer marketplace
frontend/src/pages/Marketplace.jsx - Buyer profiles
frontend/src/components/BuyerProfile.jsx - Offer contract
frontend/src/components/ContractModal.jsx - Logistics
frontend/src/pages/Logistics.jsx - Transactions and escrow
frontend/src/pages/Transactions.jsx - AI selling copilot
frontend/src/components/ChatBox.jsx
API services
- FastAPI application
backend/main.py - Price predictions
backend/api/predictions.py - Quality grading
backend/api/grading.py - Transport pooling
backend/api/pooling.py - Chatbot endpoint
backend/api/chatbot.py
Persistence and ML
- SQLite database
backend/db/database.py - Data models
backend/db/models.py - Price model training
backend/ml/train.py - Prediction runtime
backend/ml/predict.py
Other components
- Farmer
- Groq language model
Connections 18
- Farmer → App and navigation: uses
- App and navigation → Farmer onboarding: renders
- App and navigation → Dashboard: renders
- App and navigation → My crops: renders
- App and navigation → Market intelligence: renders
- App and navigation → Crop quality: renders
- App and navigation → Buyer marketplace: renders
- App and navigation → Logistics: renders
- App and navigation → Transactions and escrow: renders
- App and navigation → AI selling copilot: renders
- App and navigation → Farmer support: renders
- FastAPI application → Price predictions: registers router
- FastAPI application → Chatbot endpoint: registers router
- FastAPI application → Quality grading: registers router
- FastAPI application → Transport pooling: registers router
- FastAPI application → SQLite database: creates tables
- Chatbot endpoint → Groq language model: requests replies
- Farmer → FastAPI application: sends REST requests