# rajat07august/portfolio-stocks architecture

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

- Interactive diagram: https://gitdiagram.com/rajat07august/portfolio-stocks
- Repository: https://github.com/rajat07august/portfolio-stocks

## Overview

This is a personal Indian-equity research watchlist, presented as a browser dashboard and four sector-batch Word reports. The documented user workflow is to inspect the dashboard’s stock summaries, filter and compare them, then consult detailed reports for deeper thesis, risk and valuation analysis. A separate internal layer generates those reports from stock commentary and metrics. The README also describes periodic Cowork-based refreshes, but no refresh implementation is present in the sampled source; those links are shown as documented, external activity rather than repository runtime code.

Main entry points: [`dashboard/index.html`](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/index.html) (Watchlist dashboard), [`reports/Equity_Watchlist_Batch1_PowerMiningRealtyOthers.docx`](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch1_PowerMiningRealtyOthers.docx) (Batch 1 report), [`reports/Equity_Watchlist_Batch2_DefenceEngineeringAuto.docx`](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch2_DefenceEngineeringAuto.docx) (Batch 2 report), [`reports/Equity_Watchlist_Batch3_SpecialtyChemPharma.docx`](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch3_SpecialtyChemPharma.docx) (Batch 3 report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_research["Research dashboard"]
  node_dashboard["Watchlist dashboard<br/>[index.html]"]
  node_calendar["Calendar view<br/>[index.html]"]
  node_fisher["Fisher screen<br/>[index.html]"]
  node_lynch["Lynch screen<br/>[index.html]"]
  node_weinstein["Weinstein screen<br/>[index.html]"]
  node_profile_view["Profile view<br/>[profile.html]"]
end

subgraph group_coverage["Stock research content"]
  node_stock_data["Stock data<br/>[deep-dived.json]"]
  node_profiles["Company profiles"]
  node_explainers["Stock explainers"]
end

subgraph group_reports["Deep-dive reports"]
  node_report1["Batch 1 report"]
  node_report2["Batch 2 report"]
  node_report3["Batch 3 report"]
  node_report4["Batch 4 report"]
end

subgraph group_generation["Report generation"]
  node_builder1["Batch 1 generator<br/>[build_batch1.js]"]
  node_builder2["Batch 2 generator<br/>[build_batch2.js]"]
  node_builder3["Batch 3 generator<br/>[build_batch3.js]"]
  node_builder4["Batch 4 generator<br/>[build_batch4.js]"]
end

node_investor(("Research user"))
node_cowork(("Cowork refresh"))

node_investor -->|"reviews and filters"| node_dashboard
node_investor -->|"reads deep dive"| node_report1
node_investor -->|"reads deep dive"| node_report2
node_investor -->|"reads deep dive"| node_report3
node_investor -->|"reads deep dive"| node_report4
node_builder1 -->|"generates"| node_report1
node_builder2 -->|"generates"| node_report2
node_builder3 -->|"generates"| node_report3
node_builder4 -->|"generates"| node_report4
node_cowork -.->|"updates snapshot"| node_dashboard

click node_dashboard "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/index.html"
click node_calendar "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/calendar/index.html"
click node_fisher "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/fisher/index.html"
click node_lynch "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/lynch/index.html"
click node_weinstein "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/weinstein/index.html"
click node_stock_data "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/deep-dived.json"
click node_profiles "https://github.com/rajat07august/portfolio-stocks/tree/main/dashboard/profiles"
click node_explainers "https://github.com/rajat07august/portfolio-stocks/tree/main/dashboard/explainers"
click node_profile_view "https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/profile.html"
click node_report1 "https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch1_PowerMiningRealtyOthers.docx"
click node_report2 "https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch2_DefenceEngineeringAuto.docx"
click node_report3 "https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch3_SpecialtyChemPharma.docx"
click node_report4 "https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch4_EMSElectronicsTech.docx"
click node_builder1 "https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch1.js"
click node_builder2 "https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch2.js"
click node_builder3 "https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch3.js"
click node_builder4 "https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch4.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_dashboard,node_calendar,node_fisher,node_lynch,node_weinstein,node_profile_view,node_investor toneBlue
class node_stock_data,node_profiles,node_explainers toneAmber
class node_report1,node_report2,node_report3,node_report4 toneMint
class node_builder1,node_builder2,node_builder3,node_builder4 toneRose
class node_cowork toneIndigo
```

## Components

### Research dashboard

- [Watchlist dashboard](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/index.html): `dashboard/index.html`
- [Calendar view](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/calendar/index.html): `dashboard/calendar/index.html`
- [Fisher screen](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/fisher/index.html): `dashboard/fisher/index.html`
- [Lynch screen](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/lynch/index.html): `dashboard/lynch/index.html`
- [Weinstein screen](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/weinstein/index.html): `dashboard/weinstein/index.html`
- [Profile view](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/profile.html): `dashboard/profile.html`

### Stock research content

- [Stock data](https://github.com/rajat07august/portfolio-stocks/blob/main/dashboard/deep-dived.json): `dashboard/deep-dived.json`
- [Company profiles](https://github.com/rajat07august/portfolio-stocks/tree/main/dashboard/profiles): `dashboard/profiles`
- [Stock explainers](https://github.com/rajat07august/portfolio-stocks/tree/main/dashboard/explainers): `dashboard/explainers`

### Deep-dive reports

- [Batch 1 report](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch1_PowerMiningRealtyOthers.docx): `reports/Equity_Watchlist_Batch1_PowerMiningRealtyOthers.docx`
- [Batch 2 report](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch2_DefenceEngineeringAuto.docx): `reports/Equity_Watchlist_Batch2_DefenceEngineeringAuto.docx`
- [Batch 3 report](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch3_SpecialtyChemPharma.docx): `reports/Equity_Watchlist_Batch3_SpecialtyChemPharma.docx`
- [Batch 4 report](https://github.com/rajat07august/portfolio-stocks/blob/main/reports/Equity_Watchlist_Batch4_EMSElectronicsTech.docx): `reports/Equity_Watchlist_Batch4_EMSElectronicsTech.docx`

### Report generation

- [Batch 1 generator](https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch1.js): `build-scripts/build_batch1.js`
- [Batch 2 generator](https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch2.js): `build-scripts/build_batch2.js`
- [Batch 3 generator](https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch3.js): `build-scripts/build_batch3.js`
- [Batch 4 generator](https://github.com/rajat07august/portfolio-stocks/blob/main/build-scripts/build_batch4.js): `build-scripts/build_batch4.js`

### Other components

- **Research user**
- **Cowork refresh**

## Connections

- Research user → Watchlist dashboard: reviews and filters (evidence: `README.md`)
- Research user → Batch 1 report: reads deep dive (evidence: `README.md`)
- Research user → Batch 2 report: reads deep dive (evidence: `README.md`)
- Research user → Batch 3 report: reads deep dive (evidence: `README.md`)
- Research user → Batch 4 report: reads deep dive (evidence: `README.md`)
- Batch 1 generator → Batch 1 report: generates (evidence: `README.md`)
- Batch 2 generator → Batch 2 report: generates (evidence: `README.md`)
- Batch 3 generator → Batch 3 report: generates (evidence: `README.md`)
- Batch 4 generator → Batch 4 report: generates (evidence: `README.md`)
- Cowork refresh → Watchlist dashboard: updates snapshot (evidence: `README.md`)
