# inhabluechip/bcmf-nav architecture

> Architecture diagram of the GitHub repository inhabluechip/bcmf-nav, 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/inhabluechip/bcmf-nav
- Repository: https://github.com/inhabluechip/bcmf-nav

## Overview

BCMF NAV is a generated investment dashboard: portfolio holdings and outstanding shares are combined with market data to calculate NAV, AUM, returns, beta, and portfolio weights, then rendered into the page with holdings and allocation charts. The README documents administrators updating portfolio data and shares. The main implementation is in Vite’s HTML transformation plugin; the supplied excerpts do not show the page markup or styling, so those details are not expanded here.

Main entry points: [`vite.config.js`](https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js) (HTML generation), [`data/pdf.csv`](https://github.com/inhabluechip/bcmf-nav/blob/main/data/pdf.csv) (Portfolio holdings), [`data/shares.txt`](https://github.com/inhabluechip/bcmf-nav/blob/main/data/shares.txt) (Outstanding shares), [`index.html`](https://github.com/inhabluechip/bcmf-nav/blob/main/index.html) (NAV dashboard page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Portfolio inputs"]
  node_holdings["Portfolio holdings<br/>[pdf.csv]"]
  node_share_count["Outstanding shares<br/>[shares.txt]"]
end

subgraph group_generation["NAV generation"]
  node_generator["HTML generation<br/>[vite.config.js]"]
  node_pricing["Market prices<br/>[vite.config.js]"]
  node_beta["Market beta<br/>[vite.config.js]"]
  node_metrics["NAV and metrics<br/>[vite.config.js]"]
  node_charts["Allocation charts<br/>[vite.config.js]"]
end

subgraph group_dashboard["Investor dashboard"]
  node_page["NAV dashboard page<br/>[index.html]"]
end

node_admin(("Administrator"))
node_naver["Naver market data"]
node_wisereport["WiseReport beta data"]

node_admin -->|"updates"| node_holdings
node_admin -->|"updates"| node_share_count
node_generator -->|"reads"| node_holdings
node_generator -->|"reads"| node_share_count
node_generator -->|"fetches"| node_pricing
node_pricing -->|"requests prices"| node_naver
node_generator -->|"fetches"| node_beta
node_beta -->|"requests beta"| node_wisereport
node_generator -->|"calculates"| node_metrics
node_generator -->|"renders"| node_charts
node_generator -->|"injects dashboard data"| node_page

click node_holdings "https://github.com/inhabluechip/bcmf-nav/blob/main/data/pdf.csv"
click node_share_count "https://github.com/inhabluechip/bcmf-nav/blob/main/data/shares.txt"
click node_generator "https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js"
click node_pricing "https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js"
click node_beta "https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js"
click node_metrics "https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js"
click node_charts "https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js"
click node_page "https://github.com/inhabluechip/bcmf-nav/blob/main/index.html"

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_holdings,node_share_count toneBlue
class node_generator,node_pricing,node_beta,node_metrics,node_charts toneAmber
class node_page toneMint
class node_admin,node_naver,node_wisereport toneIndigo
```

## Components

### Portfolio inputs

- [Portfolio holdings](https://github.com/inhabluechip/bcmf-nav/blob/main/data/pdf.csv): `data/pdf.csv`
- [Outstanding shares](https://github.com/inhabluechip/bcmf-nav/blob/main/data/shares.txt): `data/shares.txt`

### NAV generation

- [HTML generation](https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js): `vite.config.js`
- [Market prices](https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js): `vite.config.js`
- [Market beta](https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js): `vite.config.js`
- [NAV and metrics](https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js): `vite.config.js`
- [Allocation charts](https://github.com/inhabluechip/bcmf-nav/blob/main/vite.config.js): `vite.config.js`

### Investor dashboard

- [NAV dashboard page](https://github.com/inhabluechip/bcmf-nav/blob/main/index.html): `index.html`

### Other components

- **Administrator**
- **Naver market data**
- **WiseReport beta data**

## Connections

- Administrator → Portfolio holdings: updates (evidence: `README.md`)
- Administrator → Outstanding shares: updates (evidence: `README.md`)
- HTML generation → Portfolio holdings: reads (evidence: `vite.config.js`)
- HTML generation → Outstanding shares: reads (evidence: `vite.config.js`)
- HTML generation → Market prices: fetches (evidence: `vite.config.js`)
- Market prices → Naver market data: requests prices (evidence: `vite.config.js`)
- HTML generation → Market beta: fetches (evidence: `vite.config.js`)
- Market beta → WiseReport beta data: requests beta (evidence: `vite.config.js`)
- HTML generation → NAV and metrics: calculates (evidence: `vite.config.js`)
- HTML generation → Allocation charts: renders (evidence: `vite.config.js`)
- HTML generation → NAV dashboard page: injects dashboard data (evidence: `vite.config.js`)
