How divejikan-yuvarajah/infraos works
INFRAOS is a national infrastructure coordination platform. Its documented operational journey runs from project planning through geospatial work-conflict detection, inter-agency resolution, progress tracking, inspection, finance, and asset handover. The web and API support those workflows alongside identity, document management, AI processing and Q&A, risk, and public reporting. The README establishes the domain sequence and capabilities; source excerpts establish selected project, identity, document-AI, and AI-service calls. Unsampled feature links are therefore documented rather than inferred from module names.
Main entry points: document.common.ts Document management · coordination.engine.ts RoadSync coordination · main.py AI service · pipeline.ts Document AI processing
Components 30
User experience
- Project workspace
apps/web/src/components/projects/projects-page-client.tsx - AI copilot
apps/web/src/components/copilot/copilot-page-client.tsx - Platform users
apps/web/src/components/profile/profile-page-client.tsx
Identity and governance
- Authentication
apps/api/src/modules/identity/auth/require-authenticated.ts - Permission checks
apps/api/src/modules/identity/authorization/require-permission.ts - Role records
apps/api/src/modules/identity/models/role.model.ts - Audit records
apps/api/src/modules/audit/models/audit-log.model.ts - Agency records
apps/api/src/modules/agencies/models/agency.model.ts
Infrastructure operations
- Project lifecycle
apps/api/src/modules/projects/projects.service.ts - Project endpoints
apps/api/src/modules/projects/projects.routes.ts - RoadSync coordination
apps/api/src/modules/roadsync/coordination.engine.ts - InfraMap
apps/api/src/modules/inframap/inframap.context.service.ts - Milestones and progress
apps/api/src/modules/projects/milestones.service.ts - Field inspections
apps/api/src/modules/inspections/inspection.service.ts - Finance ledger
apps/api/src/modules/finance/payment.service.ts
Documents and intelligence
- Document management
apps/api/src/modules/documents/document.common.ts - Document AI processing
apps/api/src/modules/ai/processing/pipeline.ts - Grounded document Q&A
apps/api/src/modules/ai/rag/rag.service.ts - Risk analysis
apps/api/src/modules/risk/risk.routes.ts - Document versions
apps/api/src/modules/documents/models/document-version.model.ts - Document records
apps/api/src/modules/documents/models/document.model.ts - AI configuration
apps/api/src/modules/ai/ai.config.ts
API and services
- API application
apps/api/src/app.ts - AI service
apps/ai-service/app/main.py - File extraction
apps/ai-service/app/extraction/service.py - Vector index
apps/ai-service/app/vectorstore/qdrant_store.py - API configuration
apps/api/src/config/env.ts - HTTP envelopes
apps/api/src/shared/http/envelope.ts - Redacting logger
apps/api/src/shared/logger.ts
Other components
- Agency users
Connections 27
- Agency users → Project workspace: plan projects
README.md - Project workspace → Project endpoints: manage projects
- Project endpoints → Project lifecycle: calls services
apps/api/src/modules/projects/projects.routes.ts - Project lifecycle → RoadSync coordination: file work requests
- RoadSync coordination → RoadSync coordination: detect and resolve clashes
README.md - RoadSync coordination → Milestones and progress: track milestones
README.md - Milestones and progress → Field inspections: verify field work
README.md - Field inspections → Finance ledger: inform disbursement
README.md - Finance ledger → Project lifecycle: complete lifecycle
README.md - Agency users → AI copilot: ask questions
README.md - AI copilot → Grounded document Q&A: submit document questions
- Grounded document Q&A → Document management: checks access
apps/api/src/modules/ai/rag/rag.service.ts - Grounded document Q&A → AI service: retrieves and answers
- Document management → Document AI processing: processes documents
apps/api/src/modules/ai/processing/pipeline.ts - Document AI processing → AI service: indexes chunks
apps/api/src/modules/ai/processing/pipeline.ts - AI service → File extraction: routes extraction
apps/ai-service/app/main.py - AI service → Vector index: routes indexing
apps/ai-service/app/main.py - Agency users → InfraMap: inspect geospatial data
README.md - Agency users → Risk analysis: review risk
README.md - Authentication → Agency records: loads agency
apps/api/src/modules/identity/auth/require-authenticated.ts - Authentication → Role records: loads role
apps/api/src/modules/identity/auth/require-authenticated.ts - Permission checks → Role records: checks grants
apps/api/src/modules/identity/authorization/require-permission.ts - Document management → Document records: reads document context
apps/api/src/modules/documents/document.common.ts - Document management → Document versions: resolves current version
apps/api/src/modules/documents/document.common.ts - API application → HTTP envelopes: returns API responses
- API configuration → Redacting logger: configures logging
apps/api/src/shared/logger.ts - Document AI processing → AI configuration: uses AI settings
apps/api/src/modules/ai/processing/pipeline.ts