# shailifadadu/wealthverse architecture

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

- Interactive diagram: https://gitdiagram.com/shailifadadu/wealthverse
- Repository: https://github.com/shailifadadu/wealthverse

## Overview

WealthVerse is a financial and carbon-impact tracker. Users sign in, manage or import transactions, then review spending and carbon summaries; the frontend also offers a budget planner and chatbot. The graph follows documented routes and sampled frontend calls. The README describes a Spring Boot/MySQL service, but its source is absent from this tree, so backend internals and most dashboard data relationships are not represented. The Python chatbot implementation is present, but its route-level relationship to the frontend is only documented.

Main entry points: [`frontend/src/App.jsx`](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/App.jsx) (Route application), [`frontend/src/api/api.js`](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/api/api.js) (API client), [`frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx`](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx) (Carbon footprint page), [`frontend/src/context/TransactionContext.jsx`](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/context/TransactionContext.jsx) (Transaction state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["Route application<br/>[App.jsx]"]
  node_landing["Landing and team<br/>[LandingPage.jsx]"]
  node_planner["Budget planner<br/>[BudgetPlanner.jsx]"]
  node_theme["Theme state<br/>[ThemeContext.jsx]"]
  node_featurelayout["Feature navigation<br/>[FeatureLayout.jsx]"]
end

subgraph group_identity["Authentication"]
  node_authpages["Login and signup<br/>[LoginPage.jsx]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_api["API client<br/>[api.js]"]
end

subgraph group_money["Transactions and spending"]
  node_transactionstate["Transaction state"]
  node_transactionui["Transaction history"]
  node_transactionroute["Transaction page<br/>[Transactions.jsx]"]
  node_addtransaction["Add and import<br/>[AddTransaction.jsx]"]
  node_spending["Spend analysis"]
  node_spendingroute["Spending page<br/>[SpendAnalysis.jsx]"]
end

subgraph group_climate["Carbon insights"]
  node_carbonpage["Carbon footprint page"]
  node_carbonoverview["Monthly footprint<br/>[OverviewTab.jsx]"]
  node_carboncalc["Carbon calculator<br/>[CalculatorTab.jsx]"]
  node_offsets["Carbon offsets<br/>[OffsetsTab.jsx]"]
end

subgraph group_assistant["Chat assistant"]
  node_chatui["Chat interface<br/>[ChatBot.jsx]"]
  node_chatservice["Chat service<br/>[ChatService.js]"]
  node_flask["Flask chatbot<br/>[main.py]"]
end

node_user(("User"))
node_backend{{"Financial API"}}
node_chatapi{{"Chatbot API"}}
node_financialdb[("Financial database")]

node_user -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_authpages
node_app -->|"routes to"| node_spendingroute
node_app -->|"routes to"| node_transactionroute
node_app -->|"routes to"| node_carbonpage
node_app -->|"routes to"| node_planner
node_app -->|"renders for signed-in user"| node_chatui
node_app -->|"provides state"| node_transactionstate
node_user -->|"submits credentials"| node_authpages
node_authpages -->|"uses auth"| node_authstate
node_authstate -->|"sends auth requests"| node_api
node_authstate -.->|"authenticates"| node_backend
node_featurelayout -->|"hosts feature pages"| node_app
node_transactionroute -->|"renders"| node_transactionui
node_transactionui -->|"reads and updates"| node_transactionstate
node_addtransaction -->|"adds transactions"| node_transactionstate
node_featurelayout -->|"offers add form"| node_addtransaction
node_transactionstate -->|"requests transaction data"| node_api
node_api -.->|"calls financial endpoints"| node_backend
node_spendingroute -->|"renders"| node_spending
node_spending -->|"requests analysis"| node_api
node_carbonpage -->|"renders"| node_carbonoverview
node_carbonpage -->|"renders"| node_carboncalc
node_carbonpage -->|"renders"| node_offsets
node_carbonoverview -->|"requests monthly report"| node_api
node_carboncalc -->|"requests calculations"| node_api
node_backend -.->|"persists financial data"| node_financialdb
node_chatui -->|"uses"| node_chatservice
node_chatservice -->|"sends chat requests"| node_chatapi
node_chatapi -.->|"implemented by"| node_flask
node_flask -.->|"serves chatbot API"| node_chatapi
node_landing -->|"uses theme"| node_theme
node_user -.->|"sets preference"| node_theme

click node_app "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/App.jsx"
click node_landing "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/LandingPage.jsx"
click node_planner "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/BudgetPlanner.jsx"
click node_theme "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/context/ThemeContext.jsx"
click node_authpages "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/authentication/LoginPage.jsx"
click node_authstate "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/auth/AuthContext.jsx"
click node_api "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/api/api.js"
click node_featurelayout "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/FeatureLayout.jsx"
click node_transactionstate "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/context/TransactionContext.jsx"
click node_transactionui "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/transactions/TransactionTable.jsx"
click node_transactionroute "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/transactions/Transactions.jsx"
click node_addtransaction "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/spendAnalysis/AddTransaction.jsx"
click node_spending "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/spendAnalysis/TransactionAnalysis.jsx"
click node_spendingroute "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/spendAnalysis/SpendAnalysis.jsx"
click node_carbonpage "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx"
click node_carbonoverview "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/OverviewTab.jsx"
click node_carboncalc "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/CalculatorTab.jsx"
click node_offsets "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/OffsetsTab.jsx"
click node_chatui "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/chatbot/ChatBot.jsx"
click node_chatservice "https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/chatbot/ChatService.js"
click node_flask "https://github.com/shailifadadu/wealthverse/blob/main/python/main.py"

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_landing,node_planner,node_theme,node_featurelayout,node_user toneBlue
class node_authpages,node_authstate,node_api,node_financialdb toneAmber
class node_transactionstate,node_transactionui,node_transactionroute,node_addtransaction,node_spending,node_spendingroute,node_backend,node_chatapi toneMint
class node_carbonpage,node_carbonoverview,node_carboncalc,node_offsets toneRose
class node_chatui,node_chatservice,node_flask toneIndigo
```

## Components

### App experience

- [Route application](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Landing and team](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/LandingPage.jsx): `frontend/src/pages/LandingPage.jsx`
- [Budget planner](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/BudgetPlanner.jsx): `frontend/src/pages/features/BudgetPlanner.jsx`
- [Theme state](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/context/ThemeContext.jsx): `frontend/src/context/ThemeContext.jsx`
- [Feature navigation](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/FeatureLayout.jsx): `frontend/src/pages/features/FeatureLayout.jsx`

### Authentication

- [Login and signup](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/authentication/LoginPage.jsx): `frontend/src/pages/authentication/LoginPage.jsx`
- [Auth state](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/auth/AuthContext.jsx): `frontend/src/auth/AuthContext.jsx`
- [API client](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/api/api.js): `frontend/src/api/api.js`

### Transactions and spending

- [Transaction state](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/context/TransactionContext.jsx): `frontend/src/context/TransactionContext.jsx`
- [Transaction history](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/transactions/TransactionTable.jsx): `frontend/src/pages/features/transactions/TransactionTable.jsx`
- [Transaction page](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/transactions/Transactions.jsx): `frontend/src/pages/features/transactions/Transactions.jsx`
- [Add and import](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/spendAnalysis/AddTransaction.jsx): `frontend/src/pages/features/spendAnalysis/AddTransaction.jsx`
- [Spend analysis](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/spendAnalysis/TransactionAnalysis.jsx): `frontend/src/pages/features/spendAnalysis/TransactionAnalysis.jsx`
- [Spending page](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/spendAnalysis/SpendAnalysis.jsx): `frontend/src/pages/features/spendAnalysis/SpendAnalysis.jsx`

### Carbon insights

- [Carbon footprint page](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx): `frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx`
- [Monthly footprint](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/OverviewTab.jsx): `frontend/src/pages/features/carbonFootprint/OverviewTab.jsx`
- [Carbon calculator](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/CalculatorTab.jsx): `frontend/src/pages/features/carbonFootprint/CalculatorTab.jsx`
- [Carbon offsets](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/features/carbonFootprint/OffsetsTab.jsx): `frontend/src/pages/features/carbonFootprint/OffsetsTab.jsx`

### Chat assistant

- [Chat interface](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/chatbot/ChatBot.jsx): `frontend/src/pages/chatbot/ChatBot.jsx`
- [Chat service](https://github.com/shailifadadu/wealthverse/blob/main/frontend/src/pages/chatbot/ChatService.js): `frontend/src/pages/chatbot/ChatService.js`
- [Flask chatbot](https://github.com/shailifadadu/wealthverse/blob/main/python/main.py): `python/main.py`

### Other components

- **User**
- **Financial API**
- **Chatbot API**
- **Financial database**

## Connections

- User → Route application: opens (evidence: `frontend/src/App.jsx`)
- Route application → Landing and team: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Login and signup: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Spending page: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Transaction page: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Carbon footprint page: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Budget planner: routes to (evidence: `frontend/src/App.jsx`)
- Route application → Chat interface: renders for signed-in user (evidence: `frontend/src/App.jsx`)
- Route application → Transaction state: provides state (evidence: `frontend/src/App.jsx`)
- User → Login and signup: submits credentials (evidence: `frontend/src/pages/authentication/LoginPage.jsx`)
- Login and signup → Auth state: uses auth (evidence: `frontend/src/pages/authentication/LoginPage.jsx`)
- Auth state → API client: sends auth requests (evidence: `frontend/src/auth/AuthContext.jsx`)
- Auth state → Financial API: authenticates (evidence: `frontend/src/auth/AuthContext.jsx`)
- Feature navigation → Route application: hosts feature pages (evidence: `frontend/src/App.jsx`)
- Transaction page → Transaction history: renders (evidence: `frontend/src/pages/features/transactions/Transactions.jsx`)
- Transaction history → Transaction state: reads and updates (evidence: `frontend/src/pages/features/transactions/TransactionTable.jsx`)
- Add and import → Transaction state: adds transactions (evidence: `frontend/src/pages/features/FeaturesNavbar.jsx`)
- Feature navigation → Add and import: offers add form
- Transaction state → API client: requests transaction data (evidence: `frontend/src/context/TransactionContext.jsx`)
- API client → Financial API: calls financial endpoints (evidence: `frontend/src/api/api.js`)
- Spending page → Spend analysis: renders (evidence: `frontend/src/pages/features/spendAnalysis/SpendAnalysis.jsx`)
- Spend analysis → API client: requests analysis (evidence: `frontend/src/pages/features/spendAnalysis/TransactionAnalysis.jsx`)
- Carbon footprint page → Monthly footprint: renders (evidence: `frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx`)
- Carbon footprint page → Carbon calculator: renders (evidence: `frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx`)
- Carbon footprint page → Carbon offsets: renders (evidence: `frontend/src/pages/features/carbonFootprint/CarbonFootprint.jsx`)
- Monthly footprint → API client: requests monthly report (evidence: `frontend/src/pages/features/carbonFootprint/OverviewTab.jsx`)
- Carbon calculator → API client: requests calculations (evidence: `frontend/src/pages/features/carbonFootprint/CalculatorTab.jsx`)
- Financial API → Financial database: persists financial data (evidence: `README.md`)
- Chat interface → Chat service: uses (evidence: `frontend/src/pages/chatbot/ChatBot.jsx`)
- Chat service → Chatbot API: sends chat requests (evidence: `frontend/src/pages/chatbot/ChatService.js`)
- Chatbot API → Flask chatbot: implemented by (evidence: `README.md`)
- Flask chatbot → Chatbot API: serves chatbot API (evidence: `README.md`)
- Landing and team → Theme state: uses theme (evidence: `frontend/src/pages/LandingPage.jsx`)
- User → Theme state: sets preference (evidence: `frontend/src/context/ThemeContext.jsx`)
