How bharathrajm-2005/trustistics works
Trustistics is a blockchain-backed cold-chain provenance application. Suppliers create shipments and upload records; shipment events and IoT temperature readings are recorded for operational tracking, risk monitoring, and audit, while customers can verify a shipment publicly. The frontend serves role-based workflows and calls a FastAPI backend; MongoDB stores operational records and Ethereum anchors hashes. The README describes the product capabilities, but several routes and pages were not sampled, so their internal service links are left out or marked unverified.
Main entry points: App.tsx App routing · temperature_service.py Temperature monitoring · blockchain_service.py Blockchain anchoring · verification_service.py Shipment verification
Components 24
Role-based frontend
- Supplier workflows
frontend/src/pages/CreateShipment.tsx - Document upload
frontend/src/pages/UploadDocuments.tsx - Live tracking
frontend/src/pages/LiveTracking.tsx - Audit and alerts
frontend/src/pages/AnalyticsAudit.tsx - Public verification
frontend/src/pages/PublicVerify.tsx - Role dashboards
frontend/src/pages/roles/DriverManifest.tsx - Role authentication
frontend/src/context/AuthContext.tsx - Shipment API client
frontend/src/api/shipmentApi.ts - App routing
frontend/src/App.tsx
API and domain services
- FastAPI application
backend/main.py - Domain API routes
backend/routes - Shipment lifecycle
backend/services/shipment_service.py
Provenance and monitoring
- Document provenance
backend/services/document_service.py - Custody handoffs
backend/services/handoff_service.py - Temperature monitoring
backend/services/temperature_service.py - Shipment verification
backend/services/verification_service.py - Risk assessment
backend/services/risk_service.py - Dispatch weather
backend/services/weather_service.py - Blockchain anchoring
backend/services/blockchain_service.py
External infrastructure
- MongoDB collections
backend/services/database.py - Ethereum network
- IoT sensor readings
iot_simulator.py
Other components
- Customer / auditor
- Supply-chain users
Connections 32
- Supply-chain users → App routing: uses
frontend/src/App.tsx - App routing → Role authentication: provides auth
frontend/src/App.tsx - App routing → Supplier workflows: routes to
frontend/src/App.tsx - App routing → Document upload: routes to
frontend/src/App.tsx - App routing → Live tracking: routes to
frontend/src/App.tsx - App routing → Audit and alerts: routes to
frontend/src/App.tsx - App routing → Public verification: routes to
frontend/src/App.tsx - App routing → Role dashboards: routes to
frontend/src/App.tsx - Supplier workflows → Shipment API client: calls
frontend/src/pages/CreateShipment.tsx - Live tracking → Shipment API client: calls
frontend/src/pages/LiveTracking.tsx - Audit and alerts → Shipment API client: calls
frontend/src/pages/AnalyticsAudit.tsx - Shipment API client → FastAPI application: HTTP requests
- FastAPI application → Domain API routes: registers routes
backend/main.py - Domain API routes → Shipment lifecycle: calls
backend/routes/shipments.py - Domain API routes → Temperature monitoring: calls
backend/routes/tracking.py - Domain API routes → Dispatch weather: calls
backend/routes/weather.py - Shipment lifecycle → MongoDB collections: writes shipments
backend/services/shipment_service.py - Shipment lifecycle → Blockchain anchoring: anchors events
backend/services/shipment_service.py - Temperature monitoring → MongoDB collections: stores readings
backend/services/temperature_service.py - Temperature monitoring → Blockchain anchoring: anchors hashes
backend/services/temperature_service.py - Temperature monitoring → Risk assessment: updates risk
- Document provenance → MongoDB collections: stores records
backend/services/document_service.py - Document provenance → Blockchain anchoring: anchors hashes
backend/services/document_service.py - Custody handoffs → MongoDB collections: stores handoffs
backend/services/handoff_service.py - Custody handoffs → Blockchain anchoring: anchors events
backend/services/handoff_service.py - Shipment verification → Document provenance: checks records
backend/services/verification_service.py - Shipment verification → Custody handoffs: checks custody
backend/services/verification_service.py - Shipment verification → Temperature monitoring: checks readings
backend/services/verification_service.py - Shipment verification → Risk assessment: checks risk
backend/services/verification_service.py - Blockchain anchoring → Ethereum network: reads and writes
backend/services/blockchain_service.py - IoT sensor readings → Temperature monitoring: submits readings
- Customer / auditor → Public verification: audits shipment