How arijeet2007/gati-x works
GATI-X is a web platform for transport, logistics, accessibility, and emergency-response intelligence. A user enters through the React app, signs in, and uses focused workspaces to request route plans, fleet optimization, predictions, or operational summaries; the frontend API client calls FastAPI, whose domain services produce the response. The graph preserves the documented product branches even where route/service implementation excerpts were unavailable. Relationships between unsampled feature pages, endpoints, and services are shown as unverified; representative development data is not a live operational feed.
Main entry points: router.py API routes · api.ts API client · routing.py Route planning · command_center.py Command aggregation
Components 31
Web client
- App shell
frontend/src/App.tsx - Session context
frontend/src/features/auth/AuthContext.tsx - Token storage
frontend/src/lib/auth-storage.ts - API client
frontend/src/services/api.ts - Map workspace
frontend/src/pages/MapPage.tsx - Accessibility workspace
frontend/src/pages/AccessibilityPage.tsx - Logistics workspace
frontend/src/pages/LogisticsPage.tsx - Emergency workspace
frontend/src/pages/EmergencyPage.tsx - Predictions workspace
frontend/src/pages/PredictionsPage.tsx - Copilot workspace
frontend/src/pages/CopilotPage.tsx - Command center
frontend/src/pages/CommandCenterPage.tsx - Data readiness
frontend/src/pages/OperationsPage.tsx
API and identity
- FastAPI application
backend/app/main.py - API routes
backend/app/api/router.py - Authentication routes
backend/app/api/routes/auth.py - In-memory accounts
backend/app/services/users.py - Token security
backend/app/core/security.py
Routing intelligence
- Route planning
backend/app/services/routing.py - Graph algorithms
backend/app/routing/engine.py - Network graph
backend/app/routing/graph.py - Route intelligence
backend/app/services/route_intelligence.py
Decision workspaces
- Accessibility analysis
backend/app/services/accessibility.py - Fleet optimization
backend/app/services/logistics.py - Emergency planning
backend/app/services/emergency.py - Route predictions
backend/app/services/predictions.py - Verified Copilot
backend/app/services/copilot.py - Command aggregation
backend/app/services/command_center.py
Platform services
- Map data
backend/app/services/map_data.py - Provider readiness
backend/app/services/data_sources.py - Database session
backend/app/db/session.py
Other components
- User
Connections 39
- User → App shell: uses
frontend/src/App.tsx - App shell → Session context: provides session
frontend/src/App.tsx - Session context → Token storage: reads and writes
frontend/src/features/auth/AuthContext.tsx - Session context → API client: restores session
frontend/src/features/auth/AuthContext.tsx - Map workspace → API client: requests data
- Accessibility workspace → API client: requests data
- Logistics workspace → API client: loads and optimizes
frontend/src/pages/LogisticsPage.tsx - Emergency workspace → API client: requests plans
frontend/src/pages/EmergencyPage.tsx - Predictions workspace → API client: requests predictions
- Copilot workspace → API client: queries
- Command center → API client: loads overview
- Data readiness → API client: loads readiness
- API client → FastAPI application: HTTP requests
README.md - FastAPI application → API routes: mounts routes
backend/app/main.py - API routes → Authentication routes: registers
backend/app/api/router.py - API routes → Route planning: routes requests
- API routes → Accessibility analysis: routes requests
- API routes → Fleet optimization: routes requests
- API routes → Emergency planning: routes requests
- API routes → Route predictions: routes requests
- API routes → Verified Copilot: routes requests
- API routes → Command aggregation: routes requests
- API routes → Map data: routes requests
- API routes → Provider readiness: routes requests
- Authentication routes → In-memory accounts: creates and authenticates
backend/app/api/routes/auth.py - Authentication routes → Token security: creates token
backend/app/api/routes/auth.py - Route planning → Graph algorithms: finds path
backend/app/services/routing.py - Graph algorithms → Network graph: searches graph
backend/app/routing/engine.py - Route planning → Route intelligence: scores edges
backend/app/services/routing.py - Route planning → Map data: uses network locations
- Fleet optimization → Route planning: uses routing
- Emergency planning → Route planning: uses routing
- Route predictions → Route planning: uses route context
- Verified Copilot → Route planning: invokes route tool
- Command aggregation → Accessibility analysis: aggregates
- Command aggregation → Fleet optimization: aggregates
- Command aggregation → Emergency planning: aggregates
- Command aggregation → Route predictions: aggregates
- Database session → FastAPI application: available to API