# pgcr-gui/lyron-story-teller architecture

> Architecture diagram of the GitHub repository pgcr-gui/lyron-story-teller, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pgcr-gui/lyron-story-teller
- Repository: https://github.com/pgcr-gui/lyron-story-teller

## Overview

Lyron Story Teller is an Android app for creating and reading stories, managing a personal library, and exploring stories shared online. The main user journey enters through the app, opens a story or editor, and presents it in the reader; the editor delegates chapter editing to a dedicated screen. Other major capabilities include online discovery, profiles and comments, backup/restore, settings, and notifications. The README gives no feature details, and many source files were not sampled, so uncertain subsystem connections are omitted rather than inferred.

Main entry points: [`app/src/main/java/gui/pgcr/storyteller/MainActivity.kt`](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/MainActivity.kt) (App navigation), [`app/src/main/java/gui/pgcr/storyteller/CatalogUi.kt`](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/CatalogUi.kt) (Catalog screens), [`app/src/main/java/gui/pgcr/storyteller/ExploreScreens.kt`](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ExploreScreens.kt) (Explore stories), [`app/src/main/java/gui/pgcr/storyteller/StoryEditorScreen.kt`](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/StoryEditorScreen.kt) (Story editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app_flow["App and reading"]
  node_reader["Story reader<br/>[ReaderScreen.kt]"]
  node_story_details["Story details"]
  node_app_entry["App navigation<br/>[MainActivity.kt]"]
  node_library["Story library<br/>[Shelf.kt]"]
end

subgraph group_authoring["Story authoring"]
  node_story_editor["Story editor"]
  node_chapter_editor["Chapter editor"]
  node_rich_editor["Rich text editing"]
  node_story_format["Story format<br/>[LyrFormat.kt]"]
end

subgraph group_community["Online community"]
  node_explore["Explore stories<br/>[ExploreScreens.kt]"]
  node_catalog["Online catalog<br/>[Catalog.kt]"]
  node_catalog_ui["Catalog screens<br/>[CatalogUi.kt]"]
  node_comments["Story comments<br/>[Comments.kt]"]
  node_profiles["Author profiles<br/>[ProfileScreens.kt]"]
end

subgraph group_account_data["Account and data"]
  node_account["Account screens<br/>[AccountScreens.kt]"]
  node_storage[("Local storage<br/>[Storage.kt]")]
  node_backup["Backup and restore<br/>[Backup.kt]"]
  node_settings["App settings<br/>[SettingsScreens.kt]"]
  node_cloud_sync["Cloud sync<br/>[CloudSync.kt]"]
  node_notifications["Notifications<br/>[Notifications.kt]"]
end

node_user(("Reader or author"))
node_online_service{{"Online service"}}

node_user -->|"opens"| node_app_entry
node_app_entry -->|"routes to"| node_reader
node_app_entry -->|"routes to"| node_story_details
node_app_entry -->|"routes to"| node_story_editor
node_app_entry -->|"restores stories"| node_backup
node_story_editor -->|"opens"| node_chapter_editor
node_chapter_editor -->|"uses"| node_rich_editor
node_settings -->|"offers restore"| node_backup
node_catalog_ui -.->|"uses catalog"| node_catalog
node_explore -.->|"loads stories"| node_online_service
node_catalog -.->|"syncs catalog"| node_online_service
node_comments -.->|"posts comments"| node_online_service
node_profiles -.->|"loads profiles"| node_online_service
node_cloud_sync -.->|"syncs data"| node_online_service
node_notifications -.->|"alerts"| node_user
node_catalog_ui -.->|"shows catalog"| node_online_service
node_explore -.->|"renders cards"| node_catalog_ui

click node_reader "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ReaderScreen.kt"
click node_story_details "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/StoryDetailsScreen.kt"
click node_app_entry "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/MainActivity.kt"
click node_library "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Shelf.kt"
click node_story_editor "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/StoryEditorScreen.kt"
click node_chapter_editor "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ChapterEditorScreen.kt"
click node_rich_editor "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/RichChapterEditor.kt"
click node_story_format "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/LyrFormat.kt"
click node_explore "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ExploreScreens.kt"
click node_catalog "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Catalog.kt"
click node_catalog_ui "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/CatalogUi.kt"
click node_comments "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Comments.kt"
click node_profiles "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ProfileScreens.kt"
click node_account "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/AccountScreens.kt"
click node_storage "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Storage.kt"
click node_backup "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Backup.kt"
click node_settings "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/SettingsScreens.kt"
click node_cloud_sync "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/CloudSync.kt"
click node_notifications "https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Notifications.kt"

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_reader,node_story_details,node_app_entry,node_library toneBlue
class node_story_editor,node_chapter_editor,node_rich_editor,node_story_format toneAmber
class node_explore,node_catalog,node_catalog_ui,node_comments,node_profiles toneMint
class node_account,node_storage,node_backup,node_settings,node_cloud_sync,node_notifications toneRose
class node_user,node_online_service toneIndigo
```

## Components

### App and reading

- [Story reader](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ReaderScreen.kt): `app/src/main/java/gui/pgcr/storyteller/ReaderScreen.kt`
- [Story details](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/StoryDetailsScreen.kt): `app/src/main/java/gui/pgcr/storyteller/StoryDetailsScreen.kt`
- [App navigation](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/MainActivity.kt): `app/src/main/java/gui/pgcr/storyteller/MainActivity.kt`
- [Story library](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Shelf.kt): `app/src/main/java/gui/pgcr/storyteller/Shelf.kt`

### Story authoring

- [Story editor](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/StoryEditorScreen.kt): `app/src/main/java/gui/pgcr/storyteller/StoryEditorScreen.kt`
- [Chapter editor](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ChapterEditorScreen.kt): `app/src/main/java/gui/pgcr/storyteller/ChapterEditorScreen.kt`
- [Rich text editing](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/RichChapterEditor.kt): `app/src/main/java/gui/pgcr/storyteller/RichChapterEditor.kt`
- [Story format](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/LyrFormat.kt): `app/src/main/java/gui/pgcr/storyteller/LyrFormat.kt`

### Online community

- [Explore stories](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ExploreScreens.kt): `app/src/main/java/gui/pgcr/storyteller/ExploreScreens.kt`
- [Online catalog](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Catalog.kt): `app/src/main/java/gui/pgcr/storyteller/Catalog.kt`
- [Catalog screens](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/CatalogUi.kt): `app/src/main/java/gui/pgcr/storyteller/CatalogUi.kt`
- [Story comments](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Comments.kt): `app/src/main/java/gui/pgcr/storyteller/Comments.kt`
- [Author profiles](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/ProfileScreens.kt): `app/src/main/java/gui/pgcr/storyteller/ProfileScreens.kt`

### Account and data

- [Account screens](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/AccountScreens.kt): `app/src/main/java/gui/pgcr/storyteller/AccountScreens.kt`
- [Local storage](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Storage.kt): `app/src/main/java/gui/pgcr/storyteller/Storage.kt`
- [Backup and restore](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Backup.kt): `app/src/main/java/gui/pgcr/storyteller/Backup.kt`
- [App settings](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/SettingsScreens.kt): `app/src/main/java/gui/pgcr/storyteller/SettingsScreens.kt`
- [Cloud sync](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/CloudSync.kt): `app/src/main/java/gui/pgcr/storyteller/CloudSync.kt`
- [Notifications](https://github.com/pgcr-gui/lyron-story-teller/blob/main/app/src/main/java/gui/pgcr/storyteller/Notifications.kt): `app/src/main/java/gui/pgcr/storyteller/Notifications.kt`

### Other components

- **Reader or author**
- **Online service**

## Connections

- Reader or author → App navigation: opens
- App navigation → Story reader: routes to (evidence: `app/src/main/java/gui/pgcr/storyteller/MainActivity.kt`)
- App navigation → Story details: routes to (evidence: `app/src/main/java/gui/pgcr/storyteller/MainActivity.kt`)
- App navigation → Story editor: routes to (evidence: `app/src/main/java/gui/pgcr/storyteller/MainActivity.kt`)
- App navigation → Backup and restore: restores stories (evidence: `app/src/main/java/gui/pgcr/storyteller/MainActivity.kt`)
- Story editor → Chapter editor: opens (evidence: `app/src/main/java/gui/pgcr/storyteller/StoryEditorScreen.kt`)
- Chapter editor → Rich text editing: uses (evidence: `app/src/main/java/gui/pgcr/storyteller/ChapterEditorScreen.kt`)
- App settings → Backup and restore: offers restore (evidence: `app/src/main/java/gui/pgcr/storyteller/SettingsScreens.kt`)
- Catalog screens → Online catalog: uses catalog
- Explore stories → Online service: loads stories
- Online catalog → Online service: syncs catalog
- Story comments → Online service: posts comments
- Author profiles → Online service: loads profiles
- Cloud sync → Online service: syncs data
- Notifications → Reader or author: alerts
- Catalog screens → Online service: shows catalog
- Explore stories → Catalog screens: renders cards
