How rashvandhappukutty/enginex works
EngineX is a campus emergency coordination and helpdesk system with a React interface and FastAPI backend. Its principal workflow is incident reporting, classification and risk assessment, followed by response recommendations, team coordination, and hazard-aware routing; users can also manage routine helpdesk requests and view operational metrics and notifications. The graph includes the documented AI reasoning stages and the frontend’s demo-state/API boundary. Source excerpts do not establish most router-to-service calls or frontend-to-backend transport, so those connections are omitted; README claims preserve the broader product capabilities.
Main entry points: engine.py AI analysis engine · routers API routers · App.tsx Application routes · classification_service.py Classification service
Components 24
Operations interface
- Application routes
src/App.tsx - Operations pages
src/pages - Demo state
src/store/demoState.tsx - API client
src/services/api.ts
API and coordination
- FastAPI application
app/main.py - API routers
app/routers - Classification service
app/services/classification_service.py - Incident and response services
app/services - AI endpoint
app/routers/ai.py - Live notifications
app/services/notification_service.py - Dashboard analytics
app/routers/dashboard.py
AI decision support
- AI analysis engine
ai/engine.py - Incident classification
ai/classifier.py - Risk assessment
ai/risk_assessment.py - Response planning
ai/decision_support.py - AI evacuation advice
ai/evacuation.py - AI result schemas
ai/schemas.py
Persistent state
- SQL database
app/db/database.py - Domain records
app/db/models.py
Campus operations
- Campus graph and hazards
app/routers/campus.py - Route computation
app/services/routing_service.py - Campus helpdesk
app/services/helpdesk_service.py
Other components
- Campus operator
- Optional AI service
Connections 21
- Campus operator → Application routes: uses
src/App.tsx - Application routes → Operations pages: routes to
src/App.tsx - Application routes → Demo state: provides state
src/App.tsx - Demo state → API client: requests analysis
src/store/demoState.tsx - FastAPI application → API routers: registers
app/main.py - FastAPI application → SQL database: initializes
app/main.py - SQL database → Domain records: creates tables
app/db/models.py - API routers → Campus graph and hazards: includes campus routes
app/main.py - API routers → Dashboard analytics: includes dashboard routes
app/main.py - API routers → AI endpoint: includes AI routes
app/main.py - AI endpoint → AI analysis engine: invokes analysis
app/routers/ai.py - Classification service → AI analysis engine: uses internal engine
app/services/classification_service.py - Classification service → Optional AI service: tries HTTP classification
app/services/classification_service.py - AI analysis engine → Incident classification: classifies
ai/engine.py - AI analysis engine → Risk assessment: assesses risk
ai/engine.py - AI analysis engine → Response planning: plans response
ai/engine.py - AI analysis engine → AI evacuation advice: recommends routes
ai/engine.py - AI analysis engine → AI result schemas: returns structured results
ai/schemas.py - API routers → Route computation: routes calculation
app/routers/routing.py - Campus helpdesk → Classification service: classifies requests
app/services/helpdesk_service.py - Incident and response services → Live notifications: emits updates
app/services/assignment_service.py