# tirupathic/finvision architecture

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

- Interactive diagram: https://gitdiagram.com/tirupathic/finvision
- Repository: https://github.com/tirupathic/finvision

## Overview

FinVision is a React financial dashboard whose main workflow is navigating market and asset pages, retrieving quotes and related financial content, and presenting those results as summaries, charts, screeners, calendars, and trade ideas. Routing and shared symbol-tab state sit above feature pages; data hooks and provider/parser services form the shared data layer. The README documents the breadth of features and data sources; some page implementations and provider wiring were not sampled, so their internal relationships are not expanded beyond documented or indexed references.

Main entry points: [`src/App.jsx`](https://github.com/tirupathic/finvision/blob/main/src/App.jsx) (Routes and shell), [`src/hooks/useYahoo.js`](https://github.com/tirupathic/finvision/blob/main/src/hooks/useYahoo.js) (Data hooks and cache), [`src/pages/StockDetail.jsx`](https://github.com/tirupathic/finvision/blob/main/src/pages/StockDetail.jsx) (Stock detail), [`src/components/PerformanceTab.jsx`](https://github.com/tirupathic/finvision/blob/main/src/components/PerformanceTab.jsx) (Performance analysis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["Routes and shell<br/>[App.jsx]"]
  node_tabs["Symbol tabs<br/>[TabsContext.jsx]"]
  node_navbar["Navigation and search<br/>[Navbar.jsx]"]
end

subgraph group_markets["Market exploration"]
  node_markets["Market overview<br/>[Markets.jsx]"]
  node_stocks["Stock browser<br/>[Stocks.jsx]"]
  node_screener["Stock screener<br/>[Screener.jsx]"]
  node_etfs["ETF explorer<br/>[ETFs.jsx]"]
  node_crypto["Crypto prices<br/>[Crypto.jsx]"]
  node_portfolio["Portfolio tracker<br/>[Portfolio.jsx]"]
end

subgraph group_analysis["Asset analysis"]
  node_detail["Stock detail<br/>[StockDetail.jsx]"]
  node_chart["Advanced charts<br/>[AdvancedChart.jsx]"]
  node_performance["Performance analysis<br/>[PerformanceTab.jsx]"]
  node_compare["Compare symbols<br/>[CompareBar.jsx]"]
  node_comparecharts["Chart comparison hook"]
  node_rolling["Rolling returns"]
  node_strategies["Strategy analysis<br/>[Strategies.jsx]"]
  node_strategyview["Trade ideas view<br/>[StrategiesTab.jsx]"]
end

subgraph group_insights["Research and insights"]
  node_earnings["Earnings calendar<br/>[Earnings.jsx]"]
  node_news["Market news<br/>[News.jsx]"]
  node_newscard["News cards<br/>[NewsCard.jsx]"]
  node_education["Learning resources<br/>[Education.jsx]"]
end

subgraph group_data["Data services"]
  node_quotes["Data hooks and cache<br/>[useYahoo.js]"]
  node_stockdata["Stock data<br/>[stockData.js]"]
  node_etfdata["ETF reference data<br/>[etfData.js]"]
  node_calendardata["Calendar data<br/>[calendarData.js]"]
  node_providers["Provider dispatch<br/>[index.js]"]
  node_yahoo["Yahoo provider<br/>[index.js]"]
  node_fetcher["Yahoo fetcher<br/>[fetcher.js]"]
  node_parser["Yahoo response parser<br/>[parser.js]"]
  node_yahooapi["Yahoo data facade<br/>[yahooApi.js]"]
end

node_user(("Dashboard user"))
node_nasdaq[("NASDAQ data service")]
node_yahoosvc(("Yahoo Finance"))
node_googlenews(("Google News RSS"))

node_user -->|"uses dashboard"| node_app
node_app -->|"routes to"| node_markets
node_app -->|"routes to"| node_stocks
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_screener
node_app -->|"routes to"| node_etfs
node_app -->|"routes to"| node_crypto
node_app -->|"routes to"| node_portfolio
node_app -->|"routes to"| node_earnings
node_app -->|"routes to"| node_education
node_app -->|"routes to"| node_news
node_app -->|"routes to"| node_strategies
node_navbar -->|"searches symbols"| node_quotes
node_navbar -->|"opens symbol tabs"| node_tabs
node_detail -->|"manages tabs"| node_tabs
node_markets -->|"loads market data"| node_quotes
node_markets -->|"reads stock data"| node_stockdata
node_stocks -->|"loads quotes"| node_quotes
node_screener -->|"reads stock universe"| node_stockdata
node_etfs -->|"reads fund metadata"| node_etfdata
node_crypto -->|"loads prices"| node_quotes
node_portfolio -->|"reads stock data"| node_stockdata
node_detail -->|"loads asset data"| node_quotes
node_detail -->|"renders charts"| node_chart
node_detail -->|"renders analysis"| node_performance
node_detail -->|"renders strategies"| node_strategyview
node_detail -->|"renders news"| node_newscard
node_compare -->|"loads comparisons"| node_comparecharts
node_comparecharts -->|"requests chart data"| node_quotes
node_performance -->|"loads chart data"| node_quotes
node_performance -->|"uses symbol input"| node_compare
node_performance -->|"shows distribution"| node_rolling
node_strategies -->|"presents trade ideas"| node_strategyview
node_strategyview -->|"loads chart and news"| node_quotes
node_earnings -->|"loads calendar data"| node_calendardata
node_earnings -->|"loads earnings data"| node_quotes
node_news -->|"loads news"| node_quotes
node_news -->|"renders articles"| node_newscard
node_quotes -->|"dispatches requests"| node_providers
node_providers -->|"selects provider"| node_yahoo
node_yahoo -.->|"fetches responses"| node_fetcher
node_yahoo -.->|"parses responses"| node_parser
node_yahooapi -->|"re-exports parsers"| node_parser
node_yahooapi -->|"supplements fundamentals"| node_yahoosvc
node_yahoo -->|"retrieves market data"| node_yahoosvc
node_quotes -->|"loads primary data"| node_nasdaq
node_news -->|"fetches news feed"| node_googlenews

click node_app "https://github.com/tirupathic/finvision/blob/main/src/App.jsx"
click node_tabs "https://github.com/tirupathic/finvision/blob/main/src/context/TabsContext.jsx"
click node_navbar "https://github.com/tirupathic/finvision/blob/main/src/components/Navbar.jsx"
click node_markets "https://github.com/tirupathic/finvision/blob/main/src/pages/Markets.jsx"
click node_stocks "https://github.com/tirupathic/finvision/blob/main/src/pages/Stocks.jsx"
click node_screener "https://github.com/tirupathic/finvision/blob/main/src/pages/Screener.jsx"
click node_etfs "https://github.com/tirupathic/finvision/blob/main/src/pages/ETFs.jsx"
click node_crypto "https://github.com/tirupathic/finvision/blob/main/src/pages/Crypto.jsx"
click node_portfolio "https://github.com/tirupathic/finvision/blob/main/src/pages/Portfolio.jsx"
click node_detail "https://github.com/tirupathic/finvision/blob/main/src/pages/StockDetail.jsx"
click node_chart "https://github.com/tirupathic/finvision/blob/main/src/components/AdvancedChart.jsx"
click node_performance "https://github.com/tirupathic/finvision/blob/main/src/components/PerformanceTab.jsx"
click node_compare "https://github.com/tirupathic/finvision/blob/main/src/components/CompareBar.jsx"
click node_comparecharts "https://github.com/tirupathic/finvision/blob/main/src/hooks/useCompareCharts.js"
click node_rolling "https://github.com/tirupathic/finvision/blob/main/src/components/RollingReturnProbability.jsx"
click node_strategies "https://github.com/tirupathic/finvision/blob/main/src/pages/Strategies.jsx"
click node_strategyview "https://github.com/tirupathic/finvision/blob/main/src/components/StrategiesTab.jsx"
click node_earnings "https://github.com/tirupathic/finvision/blob/main/src/pages/Earnings.jsx"
click node_news "https://github.com/tirupathic/finvision/blob/main/src/pages/News.jsx"
click node_newscard "https://github.com/tirupathic/finvision/blob/main/src/components/NewsCard.jsx"
click node_education "https://github.com/tirupathic/finvision/blob/main/src/pages/Education.jsx"
click node_quotes "https://github.com/tirupathic/finvision/blob/main/src/hooks/useYahoo.js"
click node_stockdata "https://github.com/tirupathic/finvision/blob/main/src/services/stockData.js"
click node_etfdata "https://github.com/tirupathic/finvision/blob/main/src/services/etfData.js"
click node_calendardata "https://github.com/tirupathic/finvision/blob/main/src/services/calendarData.js"
click node_providers "https://github.com/tirupathic/finvision/blob/main/src/services/providers/index.js"
click node_yahoo "https://github.com/tirupathic/finvision/blob/main/src/services/providers/yahoo/index.js"
click node_fetcher "https://github.com/tirupathic/finvision/blob/main/src/services/providers/yahoo/fetcher.js"
click node_parser "https://github.com/tirupathic/finvision/blob/main/src/services/providers/yahoo/parser.js"
click node_yahooapi "https://github.com/tirupathic/finvision/blob/main/src/services/yahooApi.js"

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_tabs,node_navbar,node_user toneBlue
class node_markets,node_stocks,node_screener,node_etfs,node_crypto,node_portfolio,node_nasdaq toneAmber
class node_detail,node_chart,node_performance,node_compare,node_comparecharts,node_rolling,node_strategies,node_strategyview toneMint
class node_earnings,node_news,node_newscard,node_education toneRose
class node_quotes,node_stockdata,node_etfdata,node_calendardata,node_providers,node_yahoo,node_fetcher,node_parser,node_yahooapi,node_yahoosvc,node_googlenews toneIndigo
```

## Components

### Application shell

- [Routes and shell](https://github.com/tirupathic/finvision/blob/main/src/App.jsx): `src/App.jsx`
- [Symbol tabs](https://github.com/tirupathic/finvision/blob/main/src/context/TabsContext.jsx): `src/context/TabsContext.jsx`
- [Navigation and search](https://github.com/tirupathic/finvision/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`

### Market exploration

- [Market overview](https://github.com/tirupathic/finvision/blob/main/src/pages/Markets.jsx): `src/pages/Markets.jsx`
- [Stock browser](https://github.com/tirupathic/finvision/blob/main/src/pages/Stocks.jsx): `src/pages/Stocks.jsx`
- [Stock screener](https://github.com/tirupathic/finvision/blob/main/src/pages/Screener.jsx): `src/pages/Screener.jsx`
- [ETF explorer](https://github.com/tirupathic/finvision/blob/main/src/pages/ETFs.jsx): `src/pages/ETFs.jsx`
- [Crypto prices](https://github.com/tirupathic/finvision/blob/main/src/pages/Crypto.jsx): `src/pages/Crypto.jsx`
- [Portfolio tracker](https://github.com/tirupathic/finvision/blob/main/src/pages/Portfolio.jsx): `src/pages/Portfolio.jsx`

### Asset analysis

- [Stock detail](https://github.com/tirupathic/finvision/blob/main/src/pages/StockDetail.jsx): `src/pages/StockDetail.jsx`
- [Advanced charts](https://github.com/tirupathic/finvision/blob/main/src/components/AdvancedChart.jsx): `src/components/AdvancedChart.jsx`
- [Performance analysis](https://github.com/tirupathic/finvision/blob/main/src/components/PerformanceTab.jsx): `src/components/PerformanceTab.jsx`
- [Compare symbols](https://github.com/tirupathic/finvision/blob/main/src/components/CompareBar.jsx): `src/components/CompareBar.jsx`
- [Chart comparison hook](https://github.com/tirupathic/finvision/blob/main/src/hooks/useCompareCharts.js): `src/hooks/useCompareCharts.js`
- [Rolling returns](https://github.com/tirupathic/finvision/blob/main/src/components/RollingReturnProbability.jsx): `src/components/RollingReturnProbability.jsx`
- [Strategy analysis](https://github.com/tirupathic/finvision/blob/main/src/pages/Strategies.jsx): `src/pages/Strategies.jsx`
- [Trade ideas view](https://github.com/tirupathic/finvision/blob/main/src/components/StrategiesTab.jsx): `src/components/StrategiesTab.jsx`

### Research and insights

- [Earnings calendar](https://github.com/tirupathic/finvision/blob/main/src/pages/Earnings.jsx): `src/pages/Earnings.jsx`
- [Market news](https://github.com/tirupathic/finvision/blob/main/src/pages/News.jsx): `src/pages/News.jsx`
- [News cards](https://github.com/tirupathic/finvision/blob/main/src/components/NewsCard.jsx): `src/components/NewsCard.jsx`
- [Learning resources](https://github.com/tirupathic/finvision/blob/main/src/pages/Education.jsx): `src/pages/Education.jsx`

### Data services

- [Data hooks and cache](https://github.com/tirupathic/finvision/blob/main/src/hooks/useYahoo.js): `src/hooks/useYahoo.js`
- [Stock data](https://github.com/tirupathic/finvision/blob/main/src/services/stockData.js): `src/services/stockData.js`
- [ETF reference data](https://github.com/tirupathic/finvision/blob/main/src/services/etfData.js): `src/services/etfData.js`
- [Calendar data](https://github.com/tirupathic/finvision/blob/main/src/services/calendarData.js): `src/services/calendarData.js`
- [Provider dispatch](https://github.com/tirupathic/finvision/blob/main/src/services/providers/index.js): `src/services/providers/index.js`
- [Yahoo provider](https://github.com/tirupathic/finvision/blob/main/src/services/providers/yahoo/index.js): `src/services/providers/yahoo/index.js`
- [Yahoo fetcher](https://github.com/tirupathic/finvision/blob/main/src/services/providers/yahoo/fetcher.js): `src/services/providers/yahoo/fetcher.js`
- [Yahoo response parser](https://github.com/tirupathic/finvision/blob/main/src/services/providers/yahoo/parser.js): `src/services/providers/yahoo/parser.js`
- [Yahoo data facade](https://github.com/tirupathic/finvision/blob/main/src/services/yahooApi.js): `src/services/yahooApi.js`

### Other components

- **Dashboard user**
- **NASDAQ data service**
- **Yahoo Finance**
- **Google News RSS**

## Connections

- Dashboard user → Routes and shell: uses dashboard (evidence: `README.md`)
- Routes and shell → Market overview: routes to (evidence: `src/App.jsx`)
- Routes and shell → Stock browser: routes to (evidence: `src/App.jsx`)
- Routes and shell → Stock detail: routes to (evidence: `src/App.jsx`)
- Routes and shell → Stock screener: routes to (evidence: `src/App.jsx`)
- Routes and shell → ETF explorer: routes to (evidence: `src/App.jsx`)
- Routes and shell → Crypto prices: routes to (evidence: `src/App.jsx`)
- Routes and shell → Portfolio tracker: routes to (evidence: `src/App.jsx`)
- Routes and shell → Earnings calendar: routes to (evidence: `src/App.jsx`)
- Routes and shell → Learning resources: routes to (evidence: `src/App.jsx`)
- Routes and shell → Market news: routes to (evidence: `src/App.jsx`)
- Routes and shell → Strategy analysis: routes to (evidence: `src/App.jsx`)
- Navigation and search → Data hooks and cache: searches symbols (evidence: `src/components/Navbar.jsx`)
- Navigation and search → Symbol tabs: opens symbol tabs (evidence: `src/components/Navbar.jsx`)
- Stock detail → Symbol tabs: manages tabs (evidence: `src/pages/StockDetail.jsx`)
- Market overview → Data hooks and cache: loads market data (evidence: `src/pages/Markets.jsx`)
- Market overview → Stock data: reads stock data (evidence: `src/pages/Markets.jsx`)
- Stock browser → Data hooks and cache: loads quotes (evidence: `src/pages/Stocks.jsx`)
- Stock screener → Stock data: reads stock universe (evidence: `src/pages/Screener.jsx`)
- ETF explorer → ETF reference data: reads fund metadata (evidence: `src/pages/ETFs.jsx`)
- Crypto prices → Data hooks and cache: loads prices (evidence: `src/pages/Crypto.jsx`)
- Portfolio tracker → Stock data: reads stock data (evidence: `src/pages/Portfolio.jsx`)
- Stock detail → Data hooks and cache: loads asset data (evidence: `src/pages/StockDetail.jsx`)
- Stock detail → Advanced charts: renders charts (evidence: `src/pages/StockDetail.jsx`)
- Stock detail → Performance analysis: renders analysis (evidence: `src/pages/StockDetail.jsx`)
- Stock detail → Trade ideas view: renders strategies (evidence: `src/pages/StockDetail.jsx`)
- Stock detail → News cards: renders news (evidence: `src/pages/StockDetail.jsx`)
- Compare symbols → Chart comparison hook: loads comparisons (evidence: `src/components/CompareBar.jsx`)
- Chart comparison hook → Data hooks and cache: requests chart data (evidence: `src/hooks/useCompareCharts.js`)
- Performance analysis → Data hooks and cache: loads chart data (evidence: `src/components/PerformanceTab.jsx`)
- Performance analysis → Compare symbols: uses symbol input (evidence: `src/components/PerformanceTab.jsx`)
- Performance analysis → Rolling returns: shows distribution (evidence: `README.md`)
- Strategy analysis → Trade ideas view: presents trade ideas (evidence: `README.md`)
- Trade ideas view → Data hooks and cache: loads chart and news (evidence: `src/components/StrategiesTab.jsx`)
- Earnings calendar → Calendar data: loads calendar data (evidence: `src/pages/Earnings.jsx`)
- Earnings calendar → Data hooks and cache: loads earnings data (evidence: `src/pages/Earnings.jsx`)
- Market news → Data hooks and cache: loads news (evidence: `src/pages/News.jsx`)
- Market news → News cards: renders articles (evidence: `src/pages/News.jsx`)
- Data hooks and cache → Provider dispatch: dispatches requests (evidence: `src/hooks/useYahoo.js`)
- Provider dispatch → Yahoo provider: selects provider (evidence: `src/services/providers/index.js`)
- Yahoo provider → Yahoo fetcher: fetches responses
- Yahoo provider → Yahoo response parser: parses responses
- Yahoo data facade → Yahoo response parser: re-exports parsers (evidence: `src/services/yahooApi.js`)
- Yahoo data facade → Yahoo Finance: supplements fundamentals (evidence: `README.md`)
- Yahoo provider → Yahoo Finance: retrieves market data (evidence: `README.md`)
- Data hooks and cache → NASDAQ data service: loads primary data (evidence: `README.md`)
- Market news → Google News RSS: fetches news feed (evidence: `README.md`)
