How sripathi13/marudhamx works
MarudhamX is a perishable-produce transport planner: users enter crop, load, vehicle, origin, destination, and departure details; the backend evaluates routes and economic loss, then presents a recommendation and shipment record. The graph includes documented market, fleet, weather, carbon, calibration, and shipment-support capabilities. Some algorithm links are based on the server.ts reference list rather than inspected call sites; those links indicate backend use, not a verified call sequence.
Main entry points: server.ts Express API · ResultsPage.tsx Route results · api.ts REST client · PlanPage.tsx Shipment planning
Components 25
Planning workflow
- Shipment planning
src/pages/PlanPage.tsx - REST client
src/services/api.ts - Express API
server.ts - Route results
src/pages/ResultsPage.tsx
Optimization services
- Road routing
- Weather service
- Weather spoilage
src/algorithms/weatherSpoilage.ts - Traffic segments
src/utils/trafficSegments.ts - Cost and loss
src/algorithms/costLoss.ts - Fleet allocation
src/algorithms/vrp.ts - Market intelligence
src/algorithms/mandi.ts - Departure optimizer
src/algorithms/departureOptimizer.ts - Backhaul planning
src/algorithms/backhaul.ts - Spoilage calibration
src/algorithms/calibration.ts - Carbon estimates
src/algorithms/carbon.ts
Shipment operations
- Shipment history
src/pages/HistoryPage.tsx - App settings
src/pages/SettingsPage.tsx - Shipment timeline
src/components/ShipmentTimelineCard.tsx - Shipment records
shipments_store.json
User experience
- Route map
src/components/LeafletMap.tsx - Speed advisory
src/components/SpeedAdvisoryCard.tsx - Cold-chain advice
src/components/ColdChainCard.tsx - Carbon display
src/components/CarbonEstimateCard.tsx - Localization
src/i18n.ts
Other components
- Planner
Connections 28
- Planner → Shipment planning: enters shipment
README.md - Shipment planning → REST client: submits plan
src/pages/PlanPage.tsx - REST client → Express API: sends REST request
src/services/api.ts - Express API → Road routing: requests routes
README.md - Express API → Traffic segments: generates segments
server.ts - Express API → Weather service: fetches weather
server.ts - Express API → Weather spoilage: calculates spoilage
server.ts - Express API → Cost and loss: uses cost model
server.ts - Express API → Fleet allocation: uses routing allocation
server.ts - Express API → Market intelligence: uses market model
server.ts - Express API → Departure optimizer: uses optimizer
server.ts - Express API → Backhaul planning: uses backhaul model
server.ts - Express API → Spoilage calibration: uses calibration
server.ts - Express API → Carbon estimates: uses carbon model
server.ts - Route results → REST client: loads shipment
src/pages/ResultsPage.tsx - Route results → Route map: renders routes
src/pages/ResultsPage.tsx - Route results → Speed advisory: shows advisory
src/pages/ResultsPage.tsx - Shipment history → REST client: loads history
src/pages/HistoryPage.tsx - App settings → REST client: reads settings
src/pages/SettingsPage.tsx - Express API → Shipment records: persists records
- Route results → Shipment timeline: shows timeline
- Route results → Cold-chain advice: shows cold-chain advice
- Route results → Carbon display: shows carbon estimate
src/components/CarbonEstimateCard.tsx - Carbon display → Carbon estimates: reads estimate
src/components/CarbonEstimateCard.tsx - Speed advisory → Traffic segments: uses interpolation
- Shipment planning → Localization: translates interface
src/pages/PlanPage.tsx - App settings → Localization: sets language
src/pages/SettingsPage.tsx - Express API → Weather service: requests forecasts
README.md