# lordskull/fluent-reader architecture

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

- Interactive diagram: https://gitdiagram.com/lordskull/fluent-reader
- Repository: https://github.com/lordskull/fluent-reader

## Overview

Fluent Reader is an Electron desktop RSS reader. Users configure local feeds or a compatible sync service, fetch and organize subscriptions, browse filtered article feeds, and read articles in the built-in view; rules can automate article actions. The graph separates the desktop shell, UI, domain/state models, and persistence/integration layer. README capabilities such as OPML/backup, notifications, and background fetching are retained where the tree supports a subsystem, but unsampled implementation details limit specific call edges.

Main entry points: [`src/scripts/reducer.ts`](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/reducer.ts) (Redux store), [`src/scripts/models/source.ts`](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/source.ts) (Subscriptions), [`src/scripts/models/item.ts`](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/item.ts) (Article actions), [`src/scripts/models/app.ts`](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/app.ts) (App state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Desktop shell"]
  node_bootstrap["App bootstrap<br/>[bootstrap.ts]"]
  node_electron["Electron startup<br/>[electron.ts]"]
  node_window["Window manager<br/>[window.ts]"]
  node_mainsettings["Native settings<br/>[settings.ts]"]
  node_nativeutils["Native utilities<br/>[utils.ts]"]
end

subgraph group_ui["Reader interface"]
  node_renderer["Renderer entry<br/>[index.tsx]"]
  node_page["Reader page<br/>[page.tsx]"]
  node_feedui["Article feeds<br/>[feed.tsx]"]
  node_cards["Article cards<br/>[card.tsx]"]
  node_article["Article view<br/>[article.tsx]"]
  node_search["Article search<br/>[article-search.tsx]"]
  node_settingsui["Settings screens<br/>[service.tsx]"]
end

subgraph group_domain["Reader domain"]
  node_appmodel["App state<br/>[app.ts]"]
  node_reducer["Redux store<br/>[reducer.ts]"]
  node_pagemodel["Page navigation<br/>[page.ts]"]
  node_feedmodel["Feed model<br/>[feed.ts]"]
  node_sourcemodel["Subscriptions<br/>[source.ts]"]
  node_groupmodel["Source groups<br/>[group.ts]"]
  node_itemmodel["Article actions<br/>[item.ts]"]
  node_rulemodel["Automation rules<br/>[rule.ts]"]
end

subgraph group_services["Sync and storage"]
  node_servicemodel["Service sync<br/>[service.ts]"]
  node_adapters["Sync adapters"]
  node_rssutils["RSS parsing<br/>[utils.ts]"]
  node_dbfacade["Database access<br/>[db.ts]"]
  node_maindb[("Desktop database<br/>[db.ts]")]
  node_dbschema["Database schema<br/>[schema.ts]"]
  node_settingsbridge["Settings bridge<br/>[settings.ts]"]
end

node_user(("Reader"))

node_user -->|"launches"| node_renderer
node_bootstrap -->|"starts"| node_electron
node_electron -->|"creates"| node_window
node_window -->|"registers"| node_mainsettings
node_window -->|"registers"| node_nativeutils
node_renderer -->|"renders"| node_page
node_page -->|"renders"| node_feedui
node_page -->|"renders"| node_article
node_page -->|"renders"| node_search
node_page -->|"dispatches"| node_pagemodel
node_feedui -->|"renders"| node_cards
node_feedui -->|"reads state"| node_feedmodel
node_search -->|"filters"| node_pagemodel
node_settingsui -.->|"configures"| node_servicemodel
node_renderer -->|"creates store"| node_reducer
node_reducer -->|"combines"| node_appmodel
node_reducer -->|"combines"| node_pagemodel
node_reducer -->|"combines"| node_feedmodel
node_reducer -->|"combines"| node_sourcemodel
node_reducer -->|"combines"| node_groupmodel
node_reducer -->|"combines"| node_itemmodel
node_reducer -->|"combines"| node_rulemodel
node_reducer -->|"combines"| node_servicemodel
node_appmodel -->|"initializes"| node_sourcemodel
node_appmodel -->|"fetches items"| node_itemmodel
node_appmodel -->|"initializes"| node_feedmodel
node_appmodel -->|"selects articles"| node_pagemodel
node_pagemodel -->|"loads feeds"| node_feedmodel
node_pagemodel -->|"marks read"| node_itemmodel
node_sourcemodel -->|"fetches feeds"| node_rssutils
node_sourcemodel -->|"reads and writes"| node_dbfacade
node_sourcemodel -->|"stores items"| node_itemmodel
node_sourcemodel -->|"initializes rules"| node_rulemodel
node_feedmodel -->|"queries articles"| node_dbfacade
node_feedmodel -->|"hydrates content"| node_itemmodel
node_itemmodel -->|"stores articles"| node_dbfacade
node_itemmodel -->|"dispatches actions"| node_servicemodel
node_itemmodel -->|"applies rules"| node_rulemodel
node_groupmodel -->|"manages sources"| node_sourcemodel
node_groupmodel -->|"updates rules"| node_rulemodel
node_servicemodel -->|"updates subscriptions"| node_sourcemodel
node_servicemodel -->|"saves config"| node_appmodel
node_servicemodel -->|"selects adapter"| node_adapters
node_electron -->|"initializes"| node_maindb
node_maindb -->|"uses schema"| node_dbschema
node_maindb -->|"uses bridge"| node_settingsbridge

click node_bootstrap "https://github.com/lordskull/fluent-reader/blob/master/src/bootstrap.ts"
click node_electron "https://github.com/lordskull/fluent-reader/blob/master/src/electron.ts"
click node_window "https://github.com/lordskull/fluent-reader/blob/master/src/main/window.ts"
click node_mainsettings "https://github.com/lordskull/fluent-reader/blob/master/src/main/settings.ts"
click node_nativeutils "https://github.com/lordskull/fluent-reader/blob/master/src/main/utils.ts"
click node_renderer "https://github.com/lordskull/fluent-reader/blob/master/src/index.tsx"
click node_page "https://github.com/lordskull/fluent-reader/blob/master/src/components/page.tsx"
click node_feedui "https://github.com/lordskull/fluent-reader/blob/master/src/components/feeds/feed.tsx"
click node_cards "https://github.com/lordskull/fluent-reader/blob/master/src/components/cards/card.tsx"
click node_article "https://github.com/lordskull/fluent-reader/blob/master/src/components/article.tsx"
click node_search "https://github.com/lordskull/fluent-reader/blob/master/src/components/utils/article-search.tsx"
click node_settingsui "https://github.com/lordskull/fluent-reader/blob/master/src/components/settings/service.tsx"
click node_appmodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/app.ts"
click node_reducer "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/reducer.ts"
click node_pagemodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/page.ts"
click node_feedmodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/feed.ts"
click node_sourcemodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/source.ts"
click node_groupmodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/group.ts"
click node_itemmodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/item.ts"
click node_rulemodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/rule.ts"
click node_servicemodel "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/service.ts"
click node_adapters "https://github.com/lordskull/fluent-reader/tree/master/src/scripts/models/services"
click node_rssutils "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/utils.ts"
click node_dbfacade "https://github.com/lordskull/fluent-reader/blob/master/src/scripts/db.ts"
click node_maindb "https://github.com/lordskull/fluent-reader/blob/master/src/main/db.ts"
click node_dbschema "https://github.com/lordskull/fluent-reader/blob/master/src/db/schema.ts"
click node_settingsbridge "https://github.com/lordskull/fluent-reader/blob/master/src/bridges/settings.ts"

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_bootstrap,node_electron,node_window,node_mainsettings,node_nativeutils toneBlue
class node_renderer,node_page,node_feedui,node_cards,node_article,node_search,node_settingsui toneAmber
class node_appmodel,node_reducer,node_pagemodel,node_feedmodel,node_sourcemodel,node_groupmodel,node_itemmodel,node_rulemodel toneMint
class node_servicemodel,node_adapters,node_rssutils,node_dbfacade,node_maindb,node_dbschema,node_settingsbridge toneRose
class node_user toneIndigo
```

## Components

### Desktop shell

- [App bootstrap](https://github.com/lordskull/fluent-reader/blob/master/src/bootstrap.ts): `src/bootstrap.ts`
- [Electron startup](https://github.com/lordskull/fluent-reader/blob/master/src/electron.ts): `src/electron.ts`
- [Window manager](https://github.com/lordskull/fluent-reader/blob/master/src/main/window.ts): `src/main/window.ts`
- [Native settings](https://github.com/lordskull/fluent-reader/blob/master/src/main/settings.ts): `src/main/settings.ts`
- [Native utilities](https://github.com/lordskull/fluent-reader/blob/master/src/main/utils.ts): `src/main/utils.ts`

### Reader interface

- [Renderer entry](https://github.com/lordskull/fluent-reader/blob/master/src/index.tsx): `src/index.tsx`
- [Reader page](https://github.com/lordskull/fluent-reader/blob/master/src/components/page.tsx): `src/components/page.tsx`
- [Article feeds](https://github.com/lordskull/fluent-reader/blob/master/src/components/feeds/feed.tsx): `src/components/feeds/feed.tsx`
- [Article cards](https://github.com/lordskull/fluent-reader/blob/master/src/components/cards/card.tsx): `src/components/cards/card.tsx`
- [Article view](https://github.com/lordskull/fluent-reader/blob/master/src/components/article.tsx): `src/components/article.tsx`
- [Article search](https://github.com/lordskull/fluent-reader/blob/master/src/components/utils/article-search.tsx): `src/components/utils/article-search.tsx`
- [Settings screens](https://github.com/lordskull/fluent-reader/blob/master/src/components/settings/service.tsx): `src/components/settings/service.tsx`

### Reader domain

- [App state](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/app.ts): `src/scripts/models/app.ts`
- [Redux store](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/reducer.ts): `src/scripts/reducer.ts`
- [Page navigation](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/page.ts): `src/scripts/models/page.ts`
- [Feed model](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/feed.ts): `src/scripts/models/feed.ts`
- [Subscriptions](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/source.ts): `src/scripts/models/source.ts`
- [Source groups](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/group.ts): `src/scripts/models/group.ts`
- [Article actions](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/item.ts): `src/scripts/models/item.ts`
- [Automation rules](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/rule.ts): `src/scripts/models/rule.ts`

### Sync and storage

- [Service sync](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/models/service.ts): `src/scripts/models/service.ts`
- [Sync adapters](https://github.com/lordskull/fluent-reader/tree/master/src/scripts/models/services): `src/scripts/models/services`
- [RSS parsing](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/utils.ts): `src/scripts/utils.ts`
- [Database access](https://github.com/lordskull/fluent-reader/blob/master/src/scripts/db.ts): `src/scripts/db.ts`
- [Desktop database](https://github.com/lordskull/fluent-reader/blob/master/src/main/db.ts): `src/main/db.ts`
- [Database schema](https://github.com/lordskull/fluent-reader/blob/master/src/db/schema.ts): `src/db/schema.ts`
- [Settings bridge](https://github.com/lordskull/fluent-reader/blob/master/src/bridges/settings.ts): `src/bridges/settings.ts`

### Other components

- **Reader**

## Connections

- Reader → Renderer entry: launches (evidence: `src/index.tsx`)
- App bootstrap → Electron startup: starts (evidence: `src/bootstrap.ts`)
- Electron startup → Window manager: creates (evidence: `src/electron.ts`)
- Window manager → Native settings: registers (evidence: `src/main/window.ts`)
- Window manager → Native utilities: registers (evidence: `src/main/window.ts`)
- Renderer entry → Reader page: renders (evidence: `src/index.tsx`)
- Reader page → Article feeds: renders (evidence: `src/components/page.tsx`)
- Reader page → Article view: renders (evidence: `src/components/page.tsx`)
- Reader page → Article search: renders (evidence: `src/components/page.tsx`)
- Reader page → Page navigation: dispatches (evidence: `src/components/page.tsx`)
- Article feeds → Article cards: renders (evidence: `src/components/feeds/feed.tsx`)
- Article feeds → Feed model: reads state (evidence: `src/components/feeds/feed.tsx`)
- Article search → Page navigation: filters (evidence: `src/components/utils/article-search.tsx`)
- Settings screens → Service sync: configures
- Renderer entry → Redux store: creates store (evidence: `src/index.tsx`)
- Redux store → App state: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Page navigation: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Feed model: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Subscriptions: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Source groups: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Article actions: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Automation rules: combines (evidence: `src/scripts/reducer.ts`)
- Redux store → Service sync: combines (evidence: `src/scripts/reducer.ts`)
- App state → Subscriptions: initializes (evidence: `src/scripts/models/app.ts`)
- App state → Article actions: fetches items (evidence: `src/scripts/models/app.ts`)
- App state → Feed model: initializes (evidence: `src/scripts/models/app.ts`)
- App state → Page navigation: selects articles (evidence: `src/scripts/models/app.ts`)
- Page navigation → Feed model: loads feeds (evidence: `src/scripts/models/page.ts`)
- Page navigation → Article actions: marks read (evidence: `src/scripts/models/page.ts`)
- Subscriptions → RSS parsing: fetches feeds (evidence: `src/scripts/models/source.ts`)
- Subscriptions → Database access: reads and writes (evidence: `src/scripts/models/source.ts`)
- Subscriptions → Article actions: stores items (evidence: `src/scripts/models/source.ts`)
- Subscriptions → Automation rules: initializes rules (evidence: `src/scripts/models/source.ts`)
- Feed model → Database access: queries articles (evidence: `src/scripts/models/feed.ts`)
- Feed model → Article actions: hydrates content (evidence: `src/scripts/models/feed.ts`)
- Article actions → Database access: stores articles (evidence: `src/scripts/models/item.ts`)
- Article actions → Service sync: dispatches actions (evidence: `src/scripts/models/item.ts`)
- Article actions → Automation rules: applies rules (evidence: `src/scripts/models/item.ts`)
- Source groups → Subscriptions: manages sources (evidence: `src/scripts/models/group.ts`)
- Source groups → Automation rules: updates rules (evidence: `src/scripts/models/group.ts`)
- Service sync → Subscriptions: updates subscriptions (evidence: `src/scripts/models/service.ts`)
- Service sync → App state: saves config (evidence: `src/scripts/models/service.ts`)
- Service sync → Sync adapters: selects adapter (evidence: `src/scripts/models/service.ts`)
- Electron startup → Desktop database: initializes (evidence: `src/electron.ts`)
- Desktop database → Database schema: uses schema (evidence: `src/main/db.ts`)
- Desktop database → Settings bridge: uses bridge (evidence: `src/main/db.ts`)
