How jaden-corda/civitrust works
CiviTrust is a web platform for country and regional intelligence, forecasting, market relevance, and AI-assisted analysis. Users enter through the application, choose an intelligence or exploration view, and request reports or forecasts; the server exposes supporting live, model, and AI capabilities. The map preserves the major product branches visible in the tree and source index. Several UI and server modules were not excerpted, so connections for those branches rely only on the shown imports or documented scope, not inferred internal call sequences.
Main entry points: server.ts HTTP server · App.tsx CiviTrust app · civiaiHybridRouter.ts Intent arbitration · pipeline.ts ML pipeline
Components 23
User experience
- CiviTrust app
src/App.tsx - Landing experience
src/components/CiviTrustLanding.tsx - Explore insights
src/components/ExploreInsights.tsx - Report generator
src/components/ReportGenerator.tsx - Entity picker
src/components/SearchableEntityPicker.tsx
Intelligence and outlooks
- Live situations
src/server/liveSituation.ts - CiviTrust outlook
src/server/civitrustOutlook.ts - Model research
src/server/modelResearch.ts - Structural resilience
src/server/structuralResilience.ts - Production forecasts
src/server/productionMl.ts
Market analysis
- Market relevance
src/server/marketRelevance.ts - Market stream
src/server/marketStream.ts
AI assistance
- CiviAI service
src/server/civiai.ts - Intent arbitration
src/server/civiaiHybridRouter.ts - Request facts
src/server/civiaiRequestFacts.ts - Question routing
src/server/civiaiRouter.ts - Semantic routing
src/server/civiaiSemanticRouter.ts
Forecasting models
- ML pipeline
src/ml/pipeline.ts - Data ingestion
src/ml/dataIngestion.ts - Feature engineering
src/ml/featureEngineering.ts - Forecast models
src/ml/models.ts
Other components
- Analyst or user
- HTTP server
server.ts
Connections 21
- Analyst or user → CiviTrust app: uses
src/App.tsx - CiviTrust app → Landing experience: shows
src/App.tsx - CiviTrust app → Explore insights: navigates to
src/App.tsx - CiviTrust app → Report generator: opens
src/App.tsx - Report generator → Entity picker: uses
src/components/ReportGenerator.tsx - HTTP server → Live situations: registers routes
server.ts - HTTP server → CiviTrust outlook: imports
server.ts - HTTP server → Model research: imports
server.ts - HTTP server → Structural resilience: imports
server.ts - HTTP server → Production forecasts: loads models
server.ts - HTTP server → Market relevance: imports
server.ts - HTTP server → Market stream: imports
server.ts - HTTP server → CiviAI service: imports
server.ts - CiviAI service → Intent arbitration: dispatches to
- Intent arbitration → Request facts: extracts facts
src/server/civiaiHybridRouter.ts - Intent arbitration → Question routing: routes questions
src/server/civiaiHybridRouter.ts - Intent arbitration → Semantic routing: uses decisions
src/server/civiaiHybridRouter.ts - Question routing → Production forecasts: loads forecasts
src/server/civiaiRouter.ts - ML pipeline → Data ingestion: fetches series
src/ml/pipeline.ts - ML pipeline → Feature engineering: extracts features
src/ml/pipeline.ts - ML pipeline → Forecast models: trains models
src/ml/pipeline.ts