Explore the codebase at /Users/pantelis/Desktop/project-atlas and provide a comprehensive overview of:
The overall project structure (apps, libs, etc.)
Any backend simulated scenarios - look for files related to simulation, scenarios, mock data
Any frontend telemetry data - look for hardcoded telemetry values, charts, dashboards
How the frontend and backend communicate (APIs, websockets, etc.)
Any existing streaming/real-time data connections
Please be thorough and look at key files. Return file paths, relevant code snippets, and a clear explanation of what you found.
Assistant
Now I have a thorough picture of the entire codebase. Here is the comprehensive overview:
Project Atlas — Comprehensive Codebase Overview
1. Overall Project Structure
This is an Nx monorepo (Bun as package manager) modeling an AI-driven facilities management / data-center operations platform. Three separate runtimes communicate to form a three-tier system:
The IngressControllerService.pullGenesisPayload() method is entirely hardcoded simulation data. It returns 16 pre-defined asset groups covering a complete data center ("Facility Alpha") across 3 floors:
A generate() function produces synthetic time-series telemetry (30 days, 5-min ticks) using a daily sinusoid + AR(1) correlated noise model. It can also inject a drift fault on a specific asset:
The AnomalyPanel renders a Recharts ComposedChart with q05/q50/q95 quantile bands plus the actual temperature line. It uses forecastData from the store, a live countdown timer (setInterval every 1 second), and a ReferenceLine at the 12°C threshold.
Frontend API client (/Users/pantelis/Desktop/project-atlas/projects/frontend/src/lib/atlasApi.ts):
Uses @atlas/api-client (openapi-fetch) with types generated from the backend OpenAPI schema. All calls go through /api/pipeline/... — fully type-safe against @atlas/api-types:
typescript
atlasApi.simulateIncident("CHILLER-A-03")
// → POST /api/pipeline/incidents/simulate
// → NestJS PipelineController
// → NestJS PipelineService (HTTP proxy to Python)
// → POST http://localhost:8000/incidents/simulate (FastAPI)
The backend is purely a typed proxy — PipelineService forwards every call to the Python FastAPI engine at http://localhost:8000.
Import Flow (Separate Module)
The ImportFlowModule handles the component catalog workflow (pull from Genesis, AI matching, technician review, PDF upload, commit) and writes to PostgreSQL via Drizzle ORM — this does NOT proxy to Python; it is NestJS-native with a real database.
5. Streaming / Real-Time Data Connections
There are currently no WebSocket or SSE streaming connections anywhere in the codebase. All communication is request/response HTTP.
What exists as simulated real-time:
Client-side countdown timer in AnomalyPanel.tsx — setInterval at 1-second intervals decrements the "time to failure" counter locally:
Client-side pipeline run — The entire anomaly detection + forecasting pipeline runs once in JavaScript at page load, not from a live data stream.
Python engine warmup() — On FastAPI startup, it generates 30 days of synthetic telemetry with synthetic.generate(), seeds baselines, and trains LightGBM models from the synthetic data. This happens once, not continuously.
No polling — The frontend does not poll the backend for telemetry updates. The PipelineConsole page (/ops/approvals) is the only UI that actually calls atlasApi over HTTP (manually, via button clicks). All other pages consume the static mock data from the store.