How yohan-987/cropwise works
CropWise is a full-stack farmer-to-market decision and linkage platform. Farmers compare market prices and transport-adjusted net returns, get explainable sell/hold advice and forecasts, then can find buyers, list produce, negotiate transport and track transactions. Buyers use demand and verification workflows; shared selling, storage, quality assessment, weather and multilingual voice/text assistance extend the product. The map preserves documented capabilities even where source was not sampled; those paths and relationships are limited to README and tree evidence.
Main entry points: main.py Backend API · market.py Market intelligence · models.py Platform data store · recommendation_engine.py Sell-hold advisor
Components 29
Farmer and buyer app
- CropWise web app
frontend/src/App.jsx - API client
frontend/src/api/client.js - Session and roles
frontend/src/context/AuthContext.jsx - Multilingual voice UI
frontend/src/i18n/I18nContext.jsx - Farmer
frontend/src/pages/FarmerDashboard.jsx
Decision support
- Market intelligence
backend/app/routers/market.py - Market data sources
backend/app/services/agmarknet_service.py - Net realization
backend/app/services/transport_optimizer.py - Sell-hold advisor
backend/app/services/recommendation_engine.py - Price forecast
backend/app/services/price_predictor.py - Weather risk
backend/app/services/weather_service.py - Multilingual assistant
backend/app/routers/assistant.py - Produce quality
backend/app/services/quality_grading.py
Trading and fulfillment
- Produce listings
backend/app/routers/listings.py - Buyer matching
backend/app/services/buyer_matcher.py - Buyer demands
backend/app/routers/buyer_demands.py - Buyer verification
backend/app/routers/buyer_verification.py - Transactions and payments
backend/app/routers/transactions.py - Transport negotiation
backend/app/routers/transport_negotiation.py - FarmPool and group selling
backend/app/routers/group_selling.py - Storage marketplace
backend/app/routers/storage.py
Platform services
- Admin metrics
backend/app/routers/admin.py - Backend API
backend/app/main.py - Authentication
backend/app/auth_utils.py - Platform data store
backend/app/models.py
Other components
- Farmer
- Buyer
- Government market data
- Open-Meteo
Connections 40
- Farmer → CropWise web app: uses
README.md - Buyer → CropWise web app: uses
README.md - CropWise web app → API client: requests
frontend/src/App.jsx - API client → Backend API: calls
frontend/src/api/client.js - Session and roles → API client: authenticates through
frontend/src/context/AuthContext.jsx - Backend API → Market intelligence: routes to
backend/app/main.py - Market intelligence → Market data sources: fetches prices
- Market data sources → Government market data: queries
- Market intelligence → Net realization: ranks net returns
README.md - Net realization → Transport negotiation: models transport cost
README.md - Backend API → Sell-hold advisor: routes to
backend/app/main.py - Sell-hold advisor → Market intelligence: uses market data
backend/app/routers/advisor.py - Sell-hold advisor → Price forecast: uses trends
backend/app/routers/advisor.py - Sell-hold advisor → Weather risk: assesses risk
backend/app/services/recommendation_engine.py - Backend API → Price forecast: routes to
backend/app/main.py - Price forecast → Market intelligence: reads prices
backend/app/routers/forecast.py - Backend API → Weather risk: routes to
- Weather risk → Open-Meteo: fetches forecasts
backend/app/services/weather_service.py - Backend API → Multilingual assistant: routes to
backend/app/main.py - Multilingual assistant → Market intelligence: answers with market data
backend/app/routers/assistant.py - Multilingual assistant → Price forecast: answers with forecasts
backend/app/routers/assistant.py - Multilingual assistant → Weather risk: answers with weather
backend/app/routers/assistant.py - Multilingual voice UI → CropWise web app: localizes
frontend/src/main.jsx - Backend API → Produce listings: routes to
backend/app/main.py - Backend API → Buyer matching: routes to
backend/app/main.py - Buyer matching → Market intelligence: uses market context
backend/app/routers/matching.py - Backend API → Buyer demands: routes to
backend/app/main.py - Backend API → Buyer verification: routes to
backend/app/main.py - Backend API → Transactions and payments: routes to
backend/app/main.py - Backend API → Transport negotiation: routes to
backend/app/main.py - Backend API → FarmPool and group selling: routes to
backend/app/main.py - Backend API → Storage marketplace: routes to
backend/app/main.py - Backend API → Produce quality: routes to
- Backend API → Admin metrics: routes to
backend/app/main.py - Market intelligence → Platform data store: reads and writes
- Transactions and payments → Platform data store: reads and writes
- Buyer verification → Platform data store: reads and writes
backend/app/routers/buyer_verification.py - Storage marketplace → Platform data store: books facilities
backend/app/routers/storage.py - Authentication → Platform data store: resolves identities
backend/app/auth_utils.py - Farmer → API client: requests services