How pranavparuchur1/ai-stack-atlas works
AI Stack Atlas combines a Python market-data pipeline with a React market-map application. Its user workflow is to explore company and supply-chain relationships, inspect cited exposures, simulate a shock and its hop-by-hop impacts, and review historical backtests. The pipeline gathers curated and market data, computes valuations and analytics, validates quality, and publishes snapshots consumed by the UI. The README documents major views and the pipeline stages; several view implementations were not sampled, so their internal call relationships are not inferred.
Main entry points: run.py Pipeline orchestration · App.tsx Application shell · SimulatorView.tsx Simulator view · snapshot.py JSON snapshots
Components 33
Data pipeline
- Curated inputs
pipeline/extract/curated.py - Daily market extraction
pipeline/extract/providers/yfinance.py - Quote providers
pipeline/extract/providers/base.py - Pipeline orchestration
pipeline/run.py - DuckDB warehouse
pipeline/load/warehouse.py - FX and market caps
pipeline/transform/market_cap.py - Layer attribution
pipeline/transform/attribution.py - Indices and analytics
pipeline/transform/analytics.py - Backtest inputs
pipeline/transform/backtest_inputs.py - Quality checks
pipeline/validate/checks.py - JSON snapshots
pipeline/load/snapshot.py - Data contract
pipeline/models.py
Market map UI
- Application shell
web/src/App.tsx - Snapshot data access
web/src/data/api.ts - Live marks and layers
web/src/data/derived.ts - Browser live store
web/src/live/store.ts
Shock engine
- Shock propagation
web/src/engine/propagate.ts - Edge sensitivities
web/src/engine/channels.ts - Backtest engine
web/src/engine/backtest.ts - Impact explanations
web/src/engine/why.ts
Exploration views
- Stack view
web/src/views/StackView.tsx - Network view
web/src/views/NetworkView.tsx - Value flow view
web/src/views/FlowView.tsx - Company drawer
web/src/components/CompanyDrawer.tsx - Simulator view
web/src/views/SimulatorView.tsx - Analytics view
web/src/views/AnalyticsView.tsx - Pipeline health view
web/src/views/HealthView.tsx - Scenario controls
web/src/components/sim/Controls.tsx - Impact results
web/src/components/sim/ImpactTable.tsx - Backtest panel
web/src/components/sim/BacktestPanel.tsx
Other components
- Visitor
- Market data providers
- Finnhub stream
Connections 40
- Visitor → Application shell: opens
web/src/App.tsx - Application shell → Stack view: routes
web/src/App.tsx - Application shell → Network view: routes
web/src/App.tsx - Application shell → Value flow view: routes
web/src/App.tsx - Application shell → Simulator view: routes
web/src/App.tsx - Application shell → Analytics view: routes
web/src/App.tsx - Application shell → Pipeline health view: routes
web/src/App.tsx - Market data providers → Daily market extraction: supplies prices
- Pipeline orchestration → Curated inputs: loads inputs
pipeline/run.py - Pipeline orchestration → Daily market extraction: requests history
pipeline/run.py - Pipeline orchestration → Quote providers: requests quotes
pipeline/run.py - Pipeline orchestration → DuckDB warehouse: loads and upserts
pipeline/run.py - Pipeline orchestration → FX and market caps: computes marks
pipeline/run.py - Pipeline orchestration → Layer attribution: computes layers
pipeline/run.py - Pipeline orchestration → Indices and analytics: computes analytics
pipeline/run.py - Pipeline orchestration → Backtest inputs: builds inputs
pipeline/run.py - Pipeline orchestration → Quality checks: runs checks
pipeline/run.py - Pipeline orchestration → JSON snapshots: publishes JSON
pipeline/run.py - Curated inputs → Data contract: validates entities
pipeline/extract/curated.py - Quality checks → Layer attribution: checks totals
pipeline/validate/checks.py - Quality checks → Data contract: checks data
pipeline/validate/checks.py - JSON snapshots → Snapshot data access: provides app data
- Snapshot data access → Live marks and layers: supplies snapshot
web/src/data/derived.ts - Browser live store → Live marks and layers: overlays ticks
web/src/data/derived.ts - Live marks and layers → Stack view: provides marked companies
web/src/views/StackView.tsx - Live marks and layers → Simulator view: provides marked companies
web/src/views/SimulatorView.tsx - Live marks and layers → Company drawer: provides exposure data
web/src/components/CompanyDrawer.tsx - Finnhub stream → Browser live store: streams trades
- Visitor → Simulator view: configures shock
web/src/views/SimulatorView.tsx - Simulator view → Shock propagation: computes impacts
web/src/views/SimulatorView.tsx - Shock propagation → Edge sensitivities: uses sensitivities
web/src/engine/propagate.ts - Simulator view → Scenario controls: renders controls
web/src/views/SimulatorView.tsx - Simulator view → Impact results: renders impacts
web/src/views/SimulatorView.tsx - Simulator view → Backtest panel: renders backtests
web/src/views/SimulatorView.tsx - Backtest panel → Backtest engine: replays events
web/src/components/sim/BacktestPanel.tsx - Company drawer → Shock propagation: computes exposures
web/src/components/CompanyDrawer.tsx - Shock propagation → Impact explanations: explains paths
- JSON snapshots → Analytics view: provides analytics
- JSON snapshots → Pipeline health view: provides lineage and checks
- JSON snapshots → Value flow view: provides contracts