# priyasri07/hackhere_t088 architecture

> Architecture diagram of the GitHub repository priyasri07/hackhere_t088, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/priyasri07/hackhere_t088
- Repository: https://github.com/priyasri07/hackhere_t088

## Overview

QuantX is a browser-based multi-asset research dashboard. Users select assets and a date range, inspect market and quantitative analysis, configure strategies, and review backtests, robustness, regimes, data quality, and AI-generated research. The central state provider filters historical series and computes shared results for the application. The README documents optional Alpha Vantage live data and Featherless AI; some page-to-engine wiring and the live-data call path were not shown, so those links are omitted or marked unverified.

Main entry points: [`src/App.tsx`](https://github.com/priyasri07/hackhere_t088/blob/main/src/App.tsx) (App Router), [`src/context/QuantContext.tsx`](https://github.com/priyasri07/hackhere_t088/blob/main/src/context/QuantContext.tsx) (Quant State), [`src/config/apiConfig.ts`](https://github.com/priyasri07/hackhere_t088/blob/main/src/config/apiConfig.ts) (API Configuration), [`src/engine/backtestEngine.ts`](https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/backtestEngine.ts) (Backtest Engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_application["Application UI"]
  node_app["App Router<br/>[App.tsx]"]
  node_shared_ui["Navigation UI<br/>[GlobalHeader.tsx]"]
  node_state["Quant State<br/>[QuantContext.tsx]"]
end

subgraph group_research["Research Views"]
  node_overview["Overview<br/>[OverviewPage.tsx]"]
  node_markets["Markets<br/>[MarketsPage.tsx]"]
  node_quant_view["Quant Analysis"]
  node_strategy["Strategy Lab"]
  node_backtesting["Backtesting"]
  node_robustness["Robustness<br/>[RobustnessPage.tsx]"]
  node_regimes["Market Regimes"]
  node_ai_research["AI Research<br/>[AIResearchPage.tsx]"]
  node_quality_view["Data Quality"]
  node_settings["Settings<br/>[SettingsPage.tsx]"]
  node_visualizations["Charts"]
end

subgraph group_data["Market Data"]
  node_asset_registry["Asset Registry<br/>[assets.ts]"]
  node_historical_data[("Historical Data<br/>[historicalData.ts]")]
  node_alpha_service["Alpha Vantage Client"]
  node_data_audit["Data Validation<br/>[dataQuality.ts]"]
end

subgraph group_analytics["Quant Engines"]
  node_math["Quant Math<br/>[quantMath.ts]"]
  node_backtest_engine["Backtest Engine<br/>[backtestEngine.ts]"]
  node_regime_engine["Regime Engine<br/>[regimeEngine.ts]"]
  node_robustness_engine["Robustness Engine"]
  node_ai_engine["AI Engine<br/>[aiEngine.ts]"]
end

subgraph group_integrations["External Services"]
  node_api_config["API Configuration<br/>[apiConfig.ts]"]
  node_featherless["Featherless AI"]
  node_alpha_vantage["Alpha Vantage"]
end

node_researcher(("Researcher"))

node_researcher -->|"uses"| node_app
node_app -->|"renders"| node_shared_ui
node_app -->|"provides state"| node_state
node_app -->|"routes to"| node_overview
node_app -->|"routes to"| node_markets
node_app -->|"routes to"| node_quant_view
node_app -->|"routes to"| node_strategy
node_app -->|"routes to"| node_backtesting
node_app -->|"routes to"| node_robustness
node_app -->|"routes to"| node_regimes
node_app -->|"routes to"| node_ai_research
node_app -->|"routes to"| node_quality_view
node_app -->|"routes to"| node_settings
node_state -->|"filters series"| node_historical_data
node_state -->|"uses registry"| node_asset_registry
node_state -->|"computes metrics"| node_math
node_state -->|"runs backtests"| node_backtest_engine
node_state -->|"sweeps parameters"| node_robustness_engine
node_state -->|"classifies regimes"| node_regime_engine
node_state -->|"audits data"| node_data_audit
node_backtest_engine -->|"uses calculations"| node_math
node_robustness_engine -->|"runs variants"| node_backtest_engine
node_regime_engine -->|"uses calculations"| node_math
node_ai_engine -->|"requests explanations"| node_featherless
node_settings -->|"reads settings"| node_api_config
node_api_config -.->|"configures access"| node_alpha_vantage
node_api_config -.->|"configures access"| node_featherless
node_alpha_service -.->|"fetches live data"| node_alpha_vantage
node_markets -.->|"displays charts"| node_visualizations

click node_app "https://github.com/priyasri07/hackhere_t088/blob/main/src/App.tsx"
click node_shared_ui "https://github.com/priyasri07/hackhere_t088/blob/main/src/components/GlobalHeader.tsx"
click node_state "https://github.com/priyasri07/hackhere_t088/blob/main/src/context/QuantContext.tsx"
click node_overview "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/OverviewPage.tsx"
click node_markets "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/MarketsPage.tsx"
click node_quant_view "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/QuantAnalysisPage.tsx"
click node_strategy "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/StrategyLabPage.tsx"
click node_backtesting "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/BacktestingPage.tsx"
click node_robustness "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/RobustnessPage.tsx"
click node_regimes "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/MarketRegimesPage.tsx"
click node_ai_research "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/AIResearchPage.tsx"
click node_quality_view "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/DataQualityPage.tsx"
click node_settings "https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/SettingsPage.tsx"
click node_visualizations "https://github.com/priyasri07/hackhere_t088/tree/main/src/components/charts"
click node_asset_registry "https://github.com/priyasri07/hackhere_t088/blob/main/src/data/assets.ts"
click node_historical_data "https://github.com/priyasri07/hackhere_t088/blob/main/src/data/historicalData.ts"
click node_alpha_service "https://github.com/priyasri07/hackhere_t088/blob/main/src/data/alphaVantageService.ts"
click node_data_audit "https://github.com/priyasri07/hackhere_t088/blob/main/src/data/dataQuality.ts"
click node_math "https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/quantMath.ts"
click node_backtest_engine "https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/backtestEngine.ts"
click node_regime_engine "https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/regimeEngine.ts"
click node_robustness_engine "https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/robustnessEngine.ts"
click node_ai_engine "https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/aiEngine.ts"
click node_api_config "https://github.com/priyasri07/hackhere_t088/blob/main/src/config/apiConfig.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_shared_ui,node_state toneBlue
class node_overview,node_markets,node_quant_view,node_strategy,node_backtesting,node_robustness,node_regimes,node_ai_research,node_quality_view,node_settings,node_visualizations toneAmber
class node_asset_registry,node_historical_data,node_alpha_service,node_data_audit toneMint
class node_math,node_backtest_engine,node_regime_engine,node_robustness_engine,node_ai_engine toneRose
class node_api_config,node_featherless,node_alpha_vantage,node_researcher toneIndigo
```

## Components

### Application UI

- [App Router](https://github.com/priyasri07/hackhere_t088/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation UI](https://github.com/priyasri07/hackhere_t088/blob/main/src/components/GlobalHeader.tsx): `src/components/GlobalHeader.tsx`
- [Quant State](https://github.com/priyasri07/hackhere_t088/blob/main/src/context/QuantContext.tsx): `src/context/QuantContext.tsx`

### Research Views

- [Overview](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/OverviewPage.tsx): `src/pages/OverviewPage.tsx`
- [Markets](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/MarketsPage.tsx): `src/pages/MarketsPage.tsx`
- [Quant Analysis](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/QuantAnalysisPage.tsx): `src/pages/QuantAnalysisPage.tsx`
- [Strategy Lab](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/StrategyLabPage.tsx): `src/pages/StrategyLabPage.tsx`
- [Backtesting](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/BacktestingPage.tsx): `src/pages/BacktestingPage.tsx`
- [Robustness](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/RobustnessPage.tsx): `src/pages/RobustnessPage.tsx`
- [Market Regimes](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/MarketRegimesPage.tsx): `src/pages/MarketRegimesPage.tsx`
- [AI Research](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/AIResearchPage.tsx): `src/pages/AIResearchPage.tsx`
- [Data Quality](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/DataQualityPage.tsx): `src/pages/DataQualityPage.tsx`
- [Settings](https://github.com/priyasri07/hackhere_t088/blob/main/src/pages/SettingsPage.tsx): `src/pages/SettingsPage.tsx`
- [Charts](https://github.com/priyasri07/hackhere_t088/tree/main/src/components/charts): `src/components/charts`

### Market Data

- [Asset Registry](https://github.com/priyasri07/hackhere_t088/blob/main/src/data/assets.ts): `src/data/assets.ts`
- [Historical Data](https://github.com/priyasri07/hackhere_t088/blob/main/src/data/historicalData.ts): `src/data/historicalData.ts`
- [Alpha Vantage Client](https://github.com/priyasri07/hackhere_t088/blob/main/src/data/alphaVantageService.ts): `src/data/alphaVantageService.ts`
- [Data Validation](https://github.com/priyasri07/hackhere_t088/blob/main/src/data/dataQuality.ts): `src/data/dataQuality.ts`

### Quant Engines

- [Quant Math](https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/quantMath.ts): `src/engine/quantMath.ts`
- [Backtest Engine](https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/backtestEngine.ts): `src/engine/backtestEngine.ts`
- [Regime Engine](https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/regimeEngine.ts): `src/engine/regimeEngine.ts`
- [Robustness Engine](https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/robustnessEngine.ts): `src/engine/robustnessEngine.ts`
- [AI Engine](https://github.com/priyasri07/hackhere_t088/blob/main/src/engine/aiEngine.ts): `src/engine/aiEngine.ts`

### External Services

- [API Configuration](https://github.com/priyasri07/hackhere_t088/blob/main/src/config/apiConfig.ts): `src/config/apiConfig.ts`
- **Featherless AI**
- **Alpha Vantage**

### Other components

- **Researcher**

## Connections

- Researcher → App Router: uses (evidence: `src/App.tsx`)
- App Router → Navigation UI: renders (evidence: `src/App.tsx`)
- App Router → Quant State: provides state (evidence: `src/App.tsx`)
- App Router → Overview: routes to (evidence: `src/App.tsx`)
- App Router → Markets: routes to (evidence: `src/App.tsx`)
- App Router → Quant Analysis: routes to (evidence: `src/App.tsx`)
- App Router → Strategy Lab: routes to (evidence: `src/App.tsx`)
- App Router → Backtesting: routes to (evidence: `src/App.tsx`)
- App Router → Robustness: routes to (evidence: `src/App.tsx`)
- App Router → Market Regimes: routes to (evidence: `src/App.tsx`)
- App Router → AI Research: routes to (evidence: `src/App.tsx`)
- App Router → Data Quality: routes to (evidence: `src/App.tsx`)
- App Router → Settings: routes to (evidence: `src/App.tsx`)
- Quant State → Historical Data: filters series (evidence: `src/context/QuantContext.tsx`)
- Quant State → Asset Registry: uses registry (evidence: `src/context/QuantContext.tsx`)
- Quant State → Quant Math: computes metrics (evidence: `src/context/QuantContext.tsx`)
- Quant State → Backtest Engine: runs backtests (evidence: `src/context/QuantContext.tsx`)
- Quant State → Robustness Engine: sweeps parameters (evidence: `src/context/QuantContext.tsx`)
- Quant State → Regime Engine: classifies regimes (evidence: `src/context/QuantContext.tsx`)
- Quant State → Data Validation: audits data (evidence: `src/context/QuantContext.tsx`)
- Backtest Engine → Quant Math: uses calculations (evidence: `src/engine/backtestEngine.ts`)
- Robustness Engine → Backtest Engine: runs variants (evidence: `src/engine/robustnessEngine.ts`)
- Regime Engine → Quant Math: uses calculations (evidence: `src/engine/regimeEngine.ts`)
- AI Engine → Featherless AI: requests explanations (evidence: `src/engine/aiEngine.ts`)
- Settings → API Configuration: reads settings (evidence: `src/pages/SettingsPage.tsx`)
- API Configuration → Alpha Vantage: configures access (evidence: `README.md`)
- API Configuration → Featherless AI: configures access (evidence: `README.md`)
- Alpha Vantage Client → Alpha Vantage: fetches live data
- Markets → Charts: displays charts
