# abdbaseer911-oss/rizqvest architecture

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

- Interactive diagram: https://gitdiagram.com/abdbaseer911-oss/rizqvest
- Repository: https://github.com/abdbaseer911-oss/rizqvest

## Overview

RizqVest is an Islamic-finance investing terminal. Users enter through authentication, then navigate to a dashboard, stock screener, Gulf-market view, portfolio, learning area, or individual stock details; stock screening applies Shariah criteria. The graph shows routes and calls visible in the excerpts or SOURCE INDEX. Several substantial modules are represented, but their internal behavior and connections are not inferred where source was unsampled; README provides no further capability details.

Main entry points: [`src/App.jsx`](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/App.jsx) (App routing), [`src/components/Navbar.jsx`](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/Navbar.jsx) (Search navigation), [`src/pages/StockDetail.jsx`](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/StockDetail.jsx) (Stock details), [`src/pages/Dashboard.jsx`](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Dashboard.jsx) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["App entry<br/>[main.jsx]"]
  node_router["App routing<br/>[App.jsx]"]
  node_navigation["Sidebar navigation<br/>[Sidebar.jsx]"]
  node_navbar["Search navigation<br/>[Navbar.jsx]"]
end

subgraph group_markets["Market experience"]
  node_ticker["Market ticker<br/>[MarketTicker.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_gulf["Gulf markets<br/>[Gulf.jsx]"]
  node_portfolio["Portfolio<br/>[Portfolio.jsx]"]
  node_learning["Learning<br/>[Learn.jsx]"]
  node_detail["Stock details<br/>[StockDetail.jsx]"]
  node_stockcard["Stock card<br/>[StockCard.jsx]"]
  node_formatters["Value formatters<br/>[formatters.js]"]
  node_stockdata["Stock data hook<br/>[useStockData.js]"]
end

subgraph group_shariah["Shariah screening"]
  node_screener["Stock screener<br/>[Screener.jsx]"]
  node_badge["Halal badge<br/>[HalalBadge.jsx]"]
  node_screening["Shariah rules<br/>[halalScreener.js]"]
end

subgraph group_account["Account services"]
  node_auth["Sign-in and registration<br/>[Auth.jsx]"]
  node_supabase["Supabase client<br/>[supabase.js]"]
end

node_investor(("Investor"))
node_marketdata["Alpha Vantage"]

node_investor -->|"opens app"| node_entry
node_entry -->|"renders"| node_router
node_router -->|"routes unauthenticated"| node_auth
node_router -->|"renders"| node_navigation
node_router -->|"renders"| node_ticker
node_router -->|"routes"| node_dashboard
node_router -->|"routes"| node_screener
node_router -->|"routes"| node_gulf
node_router -->|"routes"| node_portfolio
node_router -->|"routes"| node_learning
node_router -->|"routes"| node_detail
node_router -->|"checks session"| node_supabase
node_auth -->|"authenticates"| node_supabase
node_navigation -->|"signs out"| node_supabase
node_dashboard -->|"renders"| node_navbar
node_dashboard -->|"renders"| node_stockcard
node_screener -->|"renders"| node_navbar
node_screener -->|"screens stocks"| node_screening
node_gulf -->|"renders"| node_navbar
node_portfolio -->|"renders"| node_navbar
node_learning -->|"renders"| node_navbar
node_detail -->|"renders"| node_navbar
node_detail -->|"screens stock"| node_screening
node_detail -->|"formats values"| node_formatters
node_stockcard -->|"screens stock"| node_screening
node_detail -->|"fetches history"| node_marketdata

click node_entry "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/main.jsx"
click node_router "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/App.jsx"
click node_ticker "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/MarketTicker.jsx"
click node_navigation "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/Sidebar.jsx"
click node_dashboard "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Dashboard.jsx"
click node_screener "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Screener.jsx"
click node_gulf "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Gulf.jsx"
click node_portfolio "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Portfolio.jsx"
click node_learning "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Learn.jsx"
click node_detail "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/StockDetail.jsx"
click node_navbar "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/Navbar.jsx"
click node_stockcard "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/StockCard.jsx"
click node_badge "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/HalalBadge.jsx"
click node_screening "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/utils/halalScreener.js"
click node_formatters "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/utils/formatters.js"
click node_stockdata "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/hooks/useStockData.js"
click node_auth "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Auth.jsx"
click node_supabase "https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/supabase.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_entry,node_router,node_navigation,node_navbar toneBlue
class node_ticker,node_dashboard,node_gulf,node_portfolio,node_learning,node_detail,node_stockcard,node_formatters,node_stockdata toneAmber
class node_screener,node_badge,node_screening toneMint
class node_auth,node_supabase toneRose
class node_investor,node_marketdata toneIndigo
```

## Components

### Application shell

- [App entry](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/main.jsx): `src/main.jsx`
- [App routing](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/App.jsx): `src/App.jsx`
- [Sidebar navigation](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/Sidebar.jsx): `src/components/Sidebar.jsx`
- [Search navigation](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`

### Market experience

- [Market ticker](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/MarketTicker.jsx): `src/components/MarketTicker.jsx`
- [Dashboard](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Gulf markets](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Gulf.jsx): `src/pages/Gulf.jsx`
- [Portfolio](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Portfolio.jsx): `src/pages/Portfolio.jsx`
- [Learning](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Learn.jsx): `src/pages/Learn.jsx`
- [Stock details](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/StockDetail.jsx): `src/pages/StockDetail.jsx`
- [Stock card](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/StockCard.jsx): `src/components/StockCard.jsx`
- [Value formatters](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/utils/formatters.js): `src/utils/formatters.js`
- [Stock data hook](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/hooks/useStockData.js): `src/hooks/useStockData.js`

### Shariah screening

- [Stock screener](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Screener.jsx): `src/pages/Screener.jsx`
- [Halal badge](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/components/HalalBadge.jsx): `src/components/HalalBadge.jsx`
- [Shariah rules](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/utils/halalScreener.js): `src/utils/halalScreener.js`

### Account services

- [Sign-in and registration](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/pages/Auth.jsx): `src/pages/Auth.jsx`
- [Supabase client](https://github.com/abdbaseer911-oss/rizqvest/blob/main/src/supabase.js): `src/supabase.js`

### Other components

- **Investor**
- **Alpha Vantage**

## Connections

- Investor → App entry: opens app (evidence: `src/main.jsx`)
- App entry → App routing: renders (evidence: `src/main.jsx`)
- App routing → Sign-in and registration: routes unauthenticated (evidence: `src/App.jsx`)
- App routing → Sidebar navigation: renders (evidence: `src/App.jsx`)
- App routing → Market ticker: renders (evidence: `src/App.jsx`)
- App routing → Dashboard: routes (evidence: `src/App.jsx`)
- App routing → Stock screener: routes (evidence: `src/App.jsx`)
- App routing → Gulf markets: routes (evidence: `src/App.jsx`)
- App routing → Portfolio: routes (evidence: `src/App.jsx`)
- App routing → Learning: routes (evidence: `src/App.jsx`)
- App routing → Stock details: routes (evidence: `src/App.jsx`)
- App routing → Supabase client: checks session (evidence: `src/App.jsx`)
- Sign-in and registration → Supabase client: authenticates (evidence: `src/pages/Auth.jsx`)
- Sidebar navigation → Supabase client: signs out (evidence: `src/components/Sidebar.jsx`)
- Dashboard → Search navigation: renders (evidence: `src/pages/Dashboard.jsx`)
- Dashboard → Stock card: renders (evidence: `src/pages/Dashboard.jsx`)
- Stock screener → Search navigation: renders (evidence: `src/pages/Screener.jsx`)
- Stock screener → Shariah rules: screens stocks (evidence: `src/pages/Screener.jsx`)
- Gulf markets → Search navigation: renders (evidence: `src/pages/Gulf.jsx`)
- Portfolio → Search navigation: renders (evidence: `src/pages/Portfolio.jsx`)
- Learning → Search navigation: renders (evidence: `src/pages/Learn.jsx`)
- Stock details → Search navigation: renders (evidence: `src/pages/StockDetail.jsx`)
- Stock details → Shariah rules: screens stock (evidence: `src/pages/StockDetail.jsx`)
- Stock details → Value formatters: formats values (evidence: `src/pages/StockDetail.jsx`)
- Stock card → Shariah rules: screens stock (evidence: `src/components/StockCard.jsx`)
- Stock details → Alpha Vantage: fetches history (evidence: `src/pages/StockDetail.jsx`)
