How tathack-tathva/supply-chainer works
Supplychainer is a multimodal supply-chain routing and risk-assessment platform with a React command dashboard and FastAPI backend. A user submits route criteria and an optional disruption scenario; the backend resolves locations, evaluates multimodal routes, gathers news, filters it for mode relevance, and scores risk for route recommendations. A separate supplier-intelligence workflow ranks suppliers against disruptions and inventory needs. The README documents these live capabilities; sampled excerpts do not expose every internal call, so uncertain wiring is omitted.
Main entry points: main.py FastAPI service · route_recommender.py Route recommender · App.jsx Dashboard views · RouteRecommender.jsx Route controls
Components 14
Command dashboard
- Dashboard views
frontend/src/App.jsx - Route controls
frontend/src/RouteRecommender.jsx - Supplier audit
frontend/src/SupplierIntelligence.jsx - Benchmark charts
frontend/src/BenchmarkCharts.jsx
API orchestration
- FastAPI service
backend/main.py
Routing and risk
- Route recommender
backend/engine/route_recommender.py - Multimodal network
backend/engine/multimodal_network.py - Hub resolver
backend/engine/node_resolver.py - Threat and risk model
backend/engine/threat_intelligence.py
Operational intelligence
- News ingestion
backend/engine/news_ingestion.py - Scenario manager
backend/engine/scenario_manager.py - Supplier scorer
backend/engine/supplier_scorer.py
Other components
- Logistics user
- Google News RSS
Connections 22
- Logistics user → Route controls: sets route criteria
- Logistics user → Supplier audit: requests supplier audit
- Dashboard views → Route controls: selects view
- Dashboard views → Supplier audit: selects view
- Dashboard views → Benchmark charts: selects view
- Dashboard views → FastAPI service: fetches network
- Dashboard views → FastAPI service: opens status socket
- Route controls → FastAPI service: posts recommendation
- FastAPI service → Route recommender: requests routes
- Route recommender → Hub resolver: resolves endpoints
- Route recommender → Multimodal network: routes on graph
- Route recommender → Threat and risk model: assesses route risk
- Threat and risk model → News ingestion: requests news
- News ingestion → Google News RSS: fetches headlines
- Route recommender → Scenario manager: applies scenario
- Route recommender → FastAPI service: returns recommendations
- FastAPI service → Route controls: returns routes
- Supplier audit → FastAPI service: posts sourcing request
- FastAPI service → Scenario manager: gets disruptions
- FastAPI service → Supplier scorer: ranks suppliers and advises
- FastAPI service → Supplier audit: returns supplier results
- FastAPI service → Dashboard views: streams status