# iriskoo0214/whats_new_today_project architecture

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

## Overview

오늘머니 is a portfolio-focused market briefing product. The daily pipeline loads holdings, fetches prices and stock and market news, creates summaries and time-slot commentary, then emits browser data and a Markdown record; the web prototype renders that data, while completed briefings can trigger Kakao notifications. The README documents optional Toss holdings sync. Edges follow the shown orchestrator references and README workflow; some internal calls are not visible in the sampled excerpts, so those links are omitted.

Main entry points: [`pipeline/run_daily.py`](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/run_daily.py) (Daily orchestrator), [`index.html`](https://github.com/iriskoo0214/whats_new_today_project/blob/main/index.html) (Briefing page), [`pipeline/news.py`](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/news.py) (Stock news), [`pipeline/market_news.py`](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/market_news.py) (Market news)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Briefing pipeline"]
  node_entry["Daily orchestrator<br/>[run_daily.py]"]
  node_holdings["Holdings loader<br/>[portfolio.py]"]
  node_price["Market prices<br/>[prices.py]"]
  node_intraday["Intraday slots<br/>[intraday.py]"]
  node_stocknews["Stock news<br/>[news.py]"]
  node_translation["Headline translation<br/>[translate.py]"]
  node_marketnews["Market news<br/>[market_news.py]"]
  node_stocksummary["Stock summaries<br/>[summarize.py]"]
  node_marketsummary["Market summary<br/>[market_summary.py]"]
  node_slottext["Slot commentary"]
  node_assembly["Brief assembly<br/>[brief.py]"]
  node_notification["Kakao notifier<br/>[notify.py]"]
end

subgraph group_content["Briefing output"]
  node_emit["Data emitter<br/>[emit.py]"]
  node_archive["Markdown archive"]
  node_webdata["Briefing data<br/>[briefing.js]"]
  node_portfoliofile["Holdings config<br/>[portfolio.json]"]
end

subgraph group_web["Web prototype"]
  node_site["Briefing page<br/>[index.html]"]
  node_ui["Interactive UI<br/>[app.js]"]
  node_styles["Visual styling<br/>[styles.css]"]
end

subgraph group_integrations["External services"]
  node_quoteservice["Price data providers"]
  node_newsservice["Google News / Yahoo"]
  node_claude["Claude API"]
  node_kakao["Kakao messaging"]
  node_toss["Toss Securities"]
end

node_operator(("Investor / operator"))
node_scheduler(("Scheduled run"))

node_operator -->|"views"| node_site
node_scheduler -->|"starts run"| node_entry
node_operator -->|"runs manually"| node_entry
node_entry -->|"loads holdings"| node_holdings
node_holdings -->|"reads"| node_portfoliofile
node_entry -->|"fetches quotes"| node_price
node_price -->|"fetches prices"| node_quoteservice
node_entry -->|"fetches slots"| node_intraday
node_intraday -->|"fetches bars"| node_quoteservice
node_entry -->|"fetches news"| node_stocknews
node_stocknews -->|"searches headlines"| node_newsservice
node_stocknews -->|"translates headlines"| node_translation
node_translation -->|"translates"| node_claude
node_entry -->|"fetches market news"| node_marketnews
node_marketnews -->|"searches headlines"| node_newsservice
node_entry -->|"summarizes stocks"| node_stocksummary
node_stocksummary -->|"summarizes"| node_claude
node_entry -->|"summarizes market"| node_marketsummary
node_marketnews -->|"supplies news slots"| node_marketsummary
node_marketsummary -->|"summarizes"| node_claude
node_entry -->|"writes slot commentary"| node_slottext
node_slottext -->|"writes commentary"| node_claude
node_entry -->|"builds briefing"| node_assembly
node_assembly -->|"uses headlines"| node_stocknews
node_assembly -->|"uses quotes"| node_price
node_entry -->|"writes site data"| node_emit
node_emit -->|"writes"| node_webdata
node_entry -->|"writes Markdown"| node_archive
node_site -->|"loads script"| node_webdata
node_site -->|"loads app"| node_ui
node_ui -->|"renders briefing"| node_webdata
node_site -->|"uses styles"| node_styles
node_entry -->|"sends after output"| node_notification
node_notification -->|"sends message"| node_kakao
node_toss -.->|"syncs holdings"| node_portfoliofile

click node_entry "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/run_daily.py"
click node_holdings "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/portfolio.py"
click node_price "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/prices.py"
click node_intraday "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/intraday.py"
click node_stocknews "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/news.py"
click node_translation "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/translate.py"
click node_marketnews "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/market_news.py"
click node_stocksummary "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/summarize.py"
click node_marketsummary "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/market_summary.py"
click node_slottext "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/intraday_summary.py"
click node_assembly "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/brief.py"
click node_emit "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/emit.py"
click node_archive "https://github.com/iriskoo0214/whats_new_today_project/tree/main/briefings"
click node_webdata "https://github.com/iriskoo0214/whats_new_today_project/blob/main/data/briefing.js"
click node_portfoliofile "https://github.com/iriskoo0214/whats_new_today_project/blob/main/data/portfolio.json"
click node_site "https://github.com/iriskoo0214/whats_new_today_project/blob/main/index.html"
click node_ui "https://github.com/iriskoo0214/whats_new_today_project/blob/main/app.js"
click node_styles "https://github.com/iriskoo0214/whats_new_today_project/blob/main/styles.css"
click node_notification "https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/notify.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_entry,node_holdings,node_price,node_intraday,node_stocknews,node_translation,node_marketnews,node_stocksummary,node_marketsummary,node_slottext,node_assembly,node_notification toneBlue
class node_emit,node_archive,node_webdata,node_portfoliofile toneAmber
class node_site,node_ui,node_styles toneMint
class node_quoteservice,node_newsservice,node_claude,node_kakao,node_toss toneRose
class node_operator,node_scheduler toneIndigo
```

## Components

### Briefing pipeline

- [Daily orchestrator](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/run_daily.py): `pipeline/run_daily.py`
- [Holdings loader](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/portfolio.py): `pipeline/portfolio.py`
- [Market prices](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/prices.py): `pipeline/prices.py`
- [Intraday slots](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/intraday.py): `pipeline/intraday.py`
- [Stock news](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/news.py): `pipeline/news.py`
- [Headline translation](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/translate.py): `pipeline/translate.py`
- [Market news](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/market_news.py): `pipeline/market_news.py`
- [Stock summaries](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/summarize.py): `pipeline/summarize.py`
- [Market summary](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/market_summary.py): `pipeline/market_summary.py`
- [Slot commentary](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/intraday_summary.py): `pipeline/intraday_summary.py`
- [Brief assembly](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/brief.py): `pipeline/brief.py`
- [Kakao notifier](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/notify.py): `pipeline/notify.py`

### Briefing output

- [Data emitter](https://github.com/iriskoo0214/whats_new_today_project/blob/main/pipeline/emit.py): `pipeline/emit.py`
- [Markdown archive](https://github.com/iriskoo0214/whats_new_today_project/tree/main/briefings): `briefings`
- [Briefing data](https://github.com/iriskoo0214/whats_new_today_project/blob/main/data/briefing.js): `data/briefing.js`
- [Holdings config](https://github.com/iriskoo0214/whats_new_today_project/blob/main/data/portfolio.json): `data/portfolio.json`

### Web prototype

- [Briefing page](https://github.com/iriskoo0214/whats_new_today_project/blob/main/index.html): `index.html`
- [Interactive UI](https://github.com/iriskoo0214/whats_new_today_project/blob/main/app.js): `app.js`
- [Visual styling](https://github.com/iriskoo0214/whats_new_today_project/blob/main/styles.css): `styles.css`

### External services

- **Price data providers**
- **Google News / Yahoo**
- **Claude API**
- **Kakao messaging**
- **Toss Securities**

### Other components

- **Investor / operator**
- **Scheduled run**

## Connections

- Investor / operator → Briefing page: views (evidence: `README.md`)
- Scheduled run → Daily orchestrator: starts run (evidence: `README.md`)
- Investor / operator → Daily orchestrator: runs manually (evidence: `README.md`)
- Daily orchestrator → Holdings loader: loads holdings (evidence: `pipeline/run_daily.py`)
- Holdings loader → Holdings config: reads (evidence: `pipeline/portfolio.py`)
- Daily orchestrator → Market prices: fetches quotes (evidence: `pipeline/run_daily.py`)
- Market prices → Price data providers: fetches prices (evidence: `README.md`)
- Daily orchestrator → Intraday slots: fetches slots (evidence: `pipeline/run_daily.py`)
- Intraday slots → Price data providers: fetches bars (evidence: `README.md`)
- Daily orchestrator → Stock news: fetches news (evidence: `pipeline/run_daily.py`)
- Stock news → Google News / Yahoo: searches headlines (evidence: `pipeline/news.py`)
- Stock news → Headline translation: translates headlines (evidence: `pipeline/news.py`)
- Headline translation → Claude API: translates (evidence: `README.md`)
- Daily orchestrator → Market news: fetches market news (evidence: `pipeline/run_daily.py`)
- Market news → Google News / Yahoo: searches headlines (evidence: `pipeline/market_news.py`)
- Daily orchestrator → Stock summaries: summarizes stocks (evidence: `pipeline/run_daily.py`)
- Stock summaries → Claude API: summarizes (evidence: `README.md`)
- Daily orchestrator → Market summary: summarizes market (evidence: `pipeline/run_daily.py`)
- Market news → Market summary: supplies news slots (evidence: `pipeline/market_news.py`)
- Market summary → Claude API: summarizes (evidence: `README.md`)
- Daily orchestrator → Slot commentary: writes slot commentary (evidence: `pipeline/run_daily.py`)
- Slot commentary → Claude API: writes commentary (evidence: `README.md`)
- Daily orchestrator → Brief assembly: builds briefing (evidence: `pipeline/run_daily.py`)
- Brief assembly → Stock news: uses headlines (evidence: `pipeline/brief.py`)
- Brief assembly → Market prices: uses quotes (evidence: `pipeline/brief.py`)
- Daily orchestrator → Data emitter: writes site data (evidence: `pipeline/run_daily.py`)
- Data emitter → Briefing data: writes (evidence: `pipeline/emit.py`)
- Daily orchestrator → Markdown archive: writes Markdown (evidence: `pipeline/run_daily.py`)
- Briefing page → Briefing data: loads script (evidence: `README.md`)
- Briefing page → Interactive UI: loads app (evidence: `README.md`)
- Interactive UI → Briefing data: renders briefing (evidence: `README.md`)
- Briefing page → Visual styling: uses styles (evidence: `README.md`)
- Daily orchestrator → Kakao notifier: sends after output (evidence: `README.md`)
- Kakao notifier → Kakao messaging: sends message (evidence: `README.md`)
- Toss Securities → Holdings config: syncs holdings (evidence: `README.md`)
