# kovacevicemir/important-news architecture

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

- Interactive diagram: https://gitdiagram.com/kovacevicemir/important-news
- Repository: https://github.com/kovacevicemir/important-news

## Overview

Tech Intelligence Digest turns RSS articles into a filtered, ranked, enriched digest served through a lightweight web interface. The main workflow is feed collection and early blocklisting, ranking and deduplication, enrichment, then API and UI delivery; persisted raw, ranked, and detailed datasets also support historical browsing and search. The README documents the broader API and digest features. Some paths and links are based on documentation rather than sampled implementation, especially the frontend behavior.

Main entry points: [`src/server.js`](https://github.com/kovacevicemir/important-news/blob/master/src/server.js) (API and Pipeline), [`src/scraper.js`](https://github.com/kovacevicemir/important-news/blob/master/src/scraper.js) (RSS Scraper), [`src/summarizer.js`](https://github.com/kovacevicemir/important-news/blob/master/src/summarizer.js) (Summary Enrichment), [`src/ranker.js`](https://github.com/kovacevicemir/important-news/blob/master/src/ranker.js) (Scoring and Ranking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collect["Collection"]
  node_feed_config["Feed Catalog<br/>[sources.js]"]
  node_blocklist["Blocklist Rules<br/>[blocklist.js]"]
  node_scraper["RSS Scraper<br/>[scraper.js]"]
end

subgraph group_process["Article Processing"]
  node_ranker["Scoring and Ranking<br/>[ranker.js]"]
  node_summarizer["Summary Enrichment<br/>[summarizer.js]"]
end

subgraph group_serve["Serving and Discovery"]
  node_server["API and Pipeline<br/>[server.js]"]
  node_frontend["Digest Interface<br/>[index.html]"]
end

subgraph group_state["Digest Data"]
  node_raw_data[("Raw Articles")]
  node_ranked_data[("Ranked Articles")]
  node_detailed_data[("Enriched Articles")]
end

node_reader(("Digest Reader"))
node_rss{{"RSS Feeds"}}
node_ollama{{"Ollama Model"}}

node_reader -->|"browses"| node_frontend
node_rss -->|"provides feeds"| node_scraper
node_scraper -->|"loads sources"| node_feed_config
node_scraper -->|"filters articles"| node_blocklist
node_scraper -->|"saves raw"| node_raw_data
node_server -->|"runs scrape"| node_scraper
node_ranker -->|"reads raw"| node_raw_data
node_ranker -->|"saves ranked"| node_ranked_data
node_server -->|"runs ranking"| node_ranker
node_summarizer -->|"enriches ranked"| node_ranked_data
node_summarizer -.->|"requests generation"| node_ollama
node_summarizer -->|"saves enriched"| node_detailed_data
node_server -->|"runs enrichment"| node_summarizer
node_server -->|"browses datasets"| node_raw_data
node_server -->|"reads articles"| node_ranked_data
node_server -->|"reads articles"| node_detailed_data
node_server -->|"serves interface"| node_frontend
node_frontend -->|"queries API"| node_server

click node_feed_config "https://github.com/kovacevicemir/important-news/blob/master/src/sources.js"
click node_blocklist "https://github.com/kovacevicemir/important-news/blob/master/src/blocklist.js"
click node_scraper "https://github.com/kovacevicemir/important-news/blob/master/src/scraper.js"
click node_ranker "https://github.com/kovacevicemir/important-news/blob/master/src/ranker.js"
click node_summarizer "https://github.com/kovacevicemir/important-news/blob/master/src/summarizer.js"
click node_server "https://github.com/kovacevicemir/important-news/blob/master/src/server.js"
click node_frontend "https://github.com/kovacevicemir/important-news/blob/master/public/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_feed_config,node_blocklist,node_scraper toneBlue
class node_ranker,node_summarizer toneAmber
class node_server,node_frontend toneMint
class node_raw_data,node_ranked_data,node_detailed_data toneRose
class node_reader,node_rss,node_ollama toneIndigo
```

## Components

### Collection

- [Feed Catalog](https://github.com/kovacevicemir/important-news/blob/master/src/sources.js): `src/sources.js`
- [Blocklist Rules](https://github.com/kovacevicemir/important-news/blob/master/src/blocklist.js): `src/blocklist.js`
- [RSS Scraper](https://github.com/kovacevicemir/important-news/blob/master/src/scraper.js): `src/scraper.js`

### Article Processing

- [Scoring and Ranking](https://github.com/kovacevicemir/important-news/blob/master/src/ranker.js): `src/ranker.js`
- [Summary Enrichment](https://github.com/kovacevicemir/important-news/blob/master/src/summarizer.js): `src/summarizer.js`

### Serving and Discovery

- [API and Pipeline](https://github.com/kovacevicemir/important-news/blob/master/src/server.js): `src/server.js`
- [Digest Interface](https://github.com/kovacevicemir/important-news/blob/master/public/index.html): `public/index.html`

### Digest Data

- **Raw Articles**
- **Ranked Articles**
- **Enriched Articles**

### Other components

- **Digest Reader**
- **RSS Feeds**
- **Ollama Model**

## Connections

- Digest Reader → Digest Interface: browses (evidence: `README.md`)
- RSS Feeds → RSS Scraper: provides feeds (evidence: `README.md`)
- RSS Scraper → Feed Catalog: loads sources (evidence: `src/scraper.js`)
- RSS Scraper → Blocklist Rules: filters articles (evidence: `src/scraper.js`)
- RSS Scraper → Raw Articles: saves raw (evidence: `README.md`)
- API and Pipeline → RSS Scraper: runs scrape (evidence: `src/server.js`)
- Scoring and Ranking → Raw Articles: reads raw (evidence: `README.md`)
- Scoring and Ranking → Ranked Articles: saves ranked (evidence: `README.md`)
- API and Pipeline → Scoring and Ranking: runs ranking (evidence: `src/server.js`)
- Summary Enrichment → Ranked Articles: enriches ranked (evidence: `README.md`)
- Summary Enrichment → Ollama Model: requests generation (evidence: `src/summarizer.js`)
- Summary Enrichment → Enriched Articles: saves enriched (evidence: `README.md`)
- API and Pipeline → Summary Enrichment: runs enrichment (evidence: `src/server.js`)
- API and Pipeline → Raw Articles: browses datasets (evidence: `src/server.js`)
- API and Pipeline → Ranked Articles: reads articles (evidence: `src/server.js`)
- API and Pipeline → Enriched Articles: reads articles (evidence: `src/server.js`)
- API and Pipeline → Digest Interface: serves interface (evidence: `README.md`)
- Digest Interface → API and Pipeline: queries API (evidence: `README.md`)
