# x47-cmd/personal-wealth-center architecture

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

- Interactive diagram: https://gitdiagram.com/x47-cmd/personal-wealth-center
- Repository: https://github.com/x47-cmd/personal-wealth-center

## Overview

Personal Wealth Center is a browser-based personal-finance dashboard. Users navigate financial views, enter and update wealth, investment, spending, dividend, and settings data, then review summaries and analysis. The shared store persists normalized data in browser local storage; page modules render views and, where shown, update that store. The README only gives the product name, and the excerpts do not show page-to-navigation wiring, so those links are omitted; several module interactions are represented only where their calls are visible.

Main entry points: [`js/store.js`](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/store.js) (Unified store), [`js/ui.js`](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/ui.js) (UI components), [`js/events.js`](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/events.js) (Event bus), [`js/utils.js`](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/utils.js) (Financial utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and presentation"]
  node_controller["App controller<br/>[app.js]"]
  node_ui["UI components<br/>[ui.js]"]
end

subgraph group_shared["Shared runtime services"]
  node_store[("Unified store<br/>[store.js]")]
  node_localstorage[("Browser storage")]
  node_events["Event bus<br/>[events.js]"]
  node_config["App configuration<br/>[config.js]"]
  node_utils["Financial utilities<br/>[utils.js]"]
end

subgraph group_tracking["Financial tracking"]
  node_home["Home dashboard<br/>[home.js]"]
  node_wealth["Assets and net worth<br/>[assets.js]"]
  node_portfolio["Investment portfolio<br/>[portfolio.js]"]
  node_spending["Spending and budget<br/>[spending.js]"]
  node_dividends["Dividend income<br/>[dividends.js]"]
  node_liabilities["Liabilities<br/>[liabilities.js]"]
  node_settings["Financial settings<br/>[settings.js]"]
end

subgraph group_analysis["Analysis and planning"]
  node_reports["Financial reports<br/>[reports.js]"]
  node_goals["Financial goals<br/>[goals.js]"]
  node_quick["Quick actions<br/>[quick.js]"]
end

node_user(("User"))

node_user -.->|"opens app"| node_controller
node_controller -->|"loads and saves"| node_store
node_controller -->|"emits page change"| node_events
node_store -->|"reads and writes"| node_localstorage
node_ui -->|"reads version"| node_config
node_ui -->|"formats values"| node_utils
node_home -->|"reads data"| node_store
node_wealth -->|"reads and updates"| node_store
node_wealth -->|"renders with"| node_ui
node_wealth -->|"formats values"| node_utils
node_wealth -->|"subscribes to changes"| node_events
node_spending -->|"reads and updates"| node_store
node_spending -->|"renders with"| node_ui
node_spending -->|"formats values"| node_utils
node_spending -->|"subscribes to changes"| node_events
node_dividends -->|"reads and updates"| node_store
node_dividends -->|"renders with"| node_ui
node_dividends -->|"formats values"| node_utils
node_dividends -->|"subscribes to changes"| node_events
node_portfolio -->|"reads and updates"| node_store
node_settings -->|"reads and updates"| node_store
node_settings -->|"subscribes to changes"| node_events
node_reports -->|"reads data"| node_store
node_reports -->|"renders with"| node_ui
node_reports -->|"formats values"| node_utils
node_reports -->|"subscribes to changes"| node_events

click node_controller "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/app.js"
click node_ui "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/ui.js"
click node_store "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/store.js"
click node_events "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/events.js"
click node_config "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/config.js"
click node_utils "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/utils.js"
click node_home "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/home.js"
click node_wealth "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/assets.js"
click node_portfolio "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/portfolio.js"
click node_spending "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/spending.js"
click node_dividends "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/dividends.js"
click node_liabilities "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/liabilities.js"
click node_settings "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/settings.js"
click node_reports "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/reports.js"
click node_goals "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/goals.js"
click node_quick "https://github.com/x47-cmd/personal-wealth-center/blob/main/js/quick.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_controller,node_ui,node_user toneBlue
class node_store,node_localstorage,node_events,node_config,node_utils toneAmber
class node_home,node_wealth,node_portfolio,node_spending,node_dividends,node_liabilities,node_settings toneMint
class node_reports,node_goals,node_quick toneRose
```

## Components

### Navigation and presentation

- [App controller](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/app.js): `js/app.js`
- [UI components](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/ui.js): `js/ui.js`

### Shared runtime services

- [Unified store](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/store.js): `js/store.js`
- **Browser storage**
- [Event bus](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/events.js): `js/events.js`
- [App configuration](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/config.js): `js/config.js`
- [Financial utilities](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/utils.js): `js/utils.js`

### Financial tracking

- [Home dashboard](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/home.js): `js/home.js`
- [Assets and net worth](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/assets.js): `js/assets.js`
- [Investment portfolio](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/portfolio.js): `js/portfolio.js`
- [Spending and budget](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/spending.js): `js/spending.js`
- [Dividend income](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/dividends.js): `js/dividends.js`
- [Liabilities](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/liabilities.js): `js/liabilities.js`
- [Financial settings](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/settings.js): `js/settings.js`

### Analysis and planning

- [Financial reports](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/reports.js): `js/reports.js`
- [Financial goals](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/goals.js): `js/goals.js`
- [Quick actions](https://github.com/x47-cmd/personal-wealth-center/blob/main/js/quick.js): `js/quick.js`

### Other components

- **User**

## Connections

- User → App controller: opens app
- App controller → Unified store: loads and saves (evidence: `js/app.js`)
- App controller → Event bus: emits page change (evidence: `js/app.js`)
- Unified store → Browser storage: reads and writes (evidence: `js/store.js`)
- UI components → App configuration: reads version (evidence: `js/ui.js`)
- UI components → Financial utilities: formats values (evidence: `js/ui.js`)
- Home dashboard → Unified store: reads data (evidence: `js/home.js`)
- Assets and net worth → Unified store: reads and updates (evidence: `js/assets.js`)
- Assets and net worth → UI components: renders with (evidence: `js/assets.js`)
- Assets and net worth → Financial utilities: formats values (evidence: `js/assets.js`)
- Assets and net worth → Event bus: subscribes to changes (evidence: `js/assets.js`)
- Spending and budget → Unified store: reads and updates (evidence: `js/spending.js`)
- Spending and budget → UI components: renders with (evidence: `js/spending.js`)
- Spending and budget → Financial utilities: formats values (evidence: `js/spending.js`)
- Spending and budget → Event bus: subscribes to changes (evidence: `js/spending.js`)
- Dividend income → Unified store: reads and updates (evidence: `js/dividends.js`)
- Dividend income → UI components: renders with (evidence: `js/dividends.js`)
- Dividend income → Financial utilities: formats values (evidence: `js/dividends.js`)
- Dividend income → Event bus: subscribes to changes (evidence: `js/dividends.js`)
- Investment portfolio → Unified store: reads and updates (evidence: `js/portfolio.js`)
- Financial settings → Unified store: reads and updates (evidence: `js/settings.js`)
- Financial settings → Event bus: subscribes to changes (evidence: `js/settings.js`)
- Financial reports → Unified store: reads data (evidence: `js/reports.js`)
- Financial reports → UI components: renders with (evidence: `js/reports.js`)
- Financial reports → Financial utilities: formats values (evidence: `js/reports.js`)
- Financial reports → Event bus: subscribes to changes (evidence: `js/reports.js`)
