# anuarsv/cinelearn architecture

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

- Interactive diagram: https://gitdiagram.com/anuarsv/cinelearn
- Repository: https://github.com/anuarsv/cinelearn

## Overview

CineLearn is a Flutter language-learning app centered on learning from video: users work with video and subtitles, inspect speech with linguistic tools, save vocabulary, and review it. The README also describes library subtitle detection, short-form Reels review, and spaced repetition. The graph preserves those capabilities and other visible feature areas. Source inspection was limited to the Android activity; most Dart-level calls and data flows are therefore not verified, so documented relationships use README evidence and uncertain wiring is omitted.

Main entry points: [`lib/features/vocabulary/screens/vocabulary_list_screen.dart`](https://github.com/anuarsv/cinelearn/blob/main/lib/features/vocabulary/screens/vocabulary_list_screen.dart) (Vocabulary list), [`lib/features/player/screens/video_player_screen.dart`](https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/screens/video_player_screen.dart) (Video player), [`lib/features/player/widgets/word_popup.dart`](https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/widgets/word_popup.dart) (Word popup), [`lib/features/home/screens/home_screen.dart`](https://github.com/anuarsv/cinelearn/blob/main/lib/features/home/screens/home_screen.dart) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_video["Video learning"]
  node_library["Video library"]
  node_youtube["YouTube videos"]
  node_player["Video player"]
  node_subtitle_overlay["Subtitle overlay"]
end

subgraph group_lexicon["Vocabulary learning"]
  node_word_popup["Word popup<br/>[word_popup.dart]"]
  node_vocabulary["Vocabulary list"]
end

subgraph group_review["Practice and review"]
  node_flashcards["Flashcards"]
  node_games["Learning games"]
  node_reels["Reels review<br/>[reels_screen.dart]"]
end

subgraph group_app["App experience"]
  node_app_entry["App entry<br/>[main.dart]"]
  node_home["Home<br/>[home_screen.dart]"]
  node_settings["Settings"]
  node_subscription["Subscription"]
end

subgraph group_platform["Platform services"]
  node_video_tools["Video tools<br/>[MainActivity.kt]"]
  node_database[("Local database<br/>[app_database.dart]")]
  node_dictionary["Dictionary service"]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_app_entry
node_app_entry -->|"presents"| node_home
node_home -->|"selects videos"| node_library
node_home -->|"selects videos"| node_youtube
node_library -->|"opens playback"| node_player
node_youtube -->|"opens playback"| node_player
node_player -->|"shows subtitles"| node_subtitle_overlay
node_player -->|"analyzes speech"| node_word_popup
node_word_popup -->|"looks up words"| node_dictionary
node_word_popup -->|"saves words"| node_vocabulary
node_vocabulary -->|"persists lexicon"| node_database
node_vocabulary -->|"reviews words"| node_flashcards
node_vocabulary -->|"practices words"| node_games
node_vocabulary -->|"reviews in clips"| node_reels
node_settings -.->|"stores preferences"| node_database
node_learner -.->|"manages plan"| node_subscription

click node_app_entry "https://github.com/anuarsv/cinelearn/blob/main/lib/main.dart"
click node_home "https://github.com/anuarsv/cinelearn/blob/main/lib/features/home/screens/home_screen.dart"
click node_library "https://github.com/anuarsv/cinelearn/blob/main/lib/features/library/screens/library_screen.dart"
click node_youtube "https://github.com/anuarsv/cinelearn/blob/main/lib/features/youtube/screens/youtube_screen.dart"
click node_player "https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/screens/video_player_screen.dart"
click node_subtitle_overlay "https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/widgets/subtitle_overlay.dart"
click node_word_popup "https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/widgets/word_popup.dart"
click node_video_tools "https://github.com/anuarsv/cinelearn/blob/main/android/app/src/main/kotlin/com/cinelearn/cinelearn/MainActivity.kt"
click node_vocabulary "https://github.com/anuarsv/cinelearn/blob/main/lib/features/vocabulary/screens/vocabulary_list_screen.dart"
click node_flashcards "https://github.com/anuarsv/cinelearn/blob/main/lib/features/vocabulary/screens/flashcard_screen.dart"
click node_games "https://github.com/anuarsv/cinelearn/blob/main/lib/features/games/screens/games_hub_screen.dart"
click node_reels "https://github.com/anuarsv/cinelearn/blob/main/lib/features/reels/screens/reels_screen.dart"
click node_database "https://github.com/anuarsv/cinelearn/blob/main/lib/data/database/app_database.dart"
click node_dictionary "https://github.com/anuarsv/cinelearn/blob/main/lib/core/services/oxford_dictionary_service.dart"
click node_settings "https://github.com/anuarsv/cinelearn/blob/main/lib/features/settings/screens/settings_screen.dart"
click node_subscription "https://github.com/anuarsv/cinelearn/blob/main/lib/features/subscription/screens/subscription_screen.dart"

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_library,node_youtube,node_player,node_subtitle_overlay toneBlue
class node_word_popup,node_vocabulary toneAmber
class node_flashcards,node_games,node_reels toneMint
class node_app_entry,node_home,node_settings,node_subscription toneRose
class node_video_tools,node_database,node_dictionary,node_learner toneIndigo
```

## Components

### Video learning

- [Video library](https://github.com/anuarsv/cinelearn/blob/main/lib/features/library/screens/library_screen.dart): `lib/features/library/screens/library_screen.dart`
- [YouTube videos](https://github.com/anuarsv/cinelearn/blob/main/lib/features/youtube/screens/youtube_screen.dart): `lib/features/youtube/screens/youtube_screen.dart`
- [Video player](https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/screens/video_player_screen.dart): `lib/features/player/screens/video_player_screen.dart`
- [Subtitle overlay](https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/widgets/subtitle_overlay.dart): `lib/features/player/widgets/subtitle_overlay.dart`

### Vocabulary learning

- [Word popup](https://github.com/anuarsv/cinelearn/blob/main/lib/features/player/widgets/word_popup.dart): `lib/features/player/widgets/word_popup.dart`
- [Vocabulary list](https://github.com/anuarsv/cinelearn/blob/main/lib/features/vocabulary/screens/vocabulary_list_screen.dart): `lib/features/vocabulary/screens/vocabulary_list_screen.dart`

### Practice and review

- [Flashcards](https://github.com/anuarsv/cinelearn/blob/main/lib/features/vocabulary/screens/flashcard_screen.dart): `lib/features/vocabulary/screens/flashcard_screen.dart`
- [Learning games](https://github.com/anuarsv/cinelearn/blob/main/lib/features/games/screens/games_hub_screen.dart): `lib/features/games/screens/games_hub_screen.dart`
- [Reels review](https://github.com/anuarsv/cinelearn/blob/main/lib/features/reels/screens/reels_screen.dart): `lib/features/reels/screens/reels_screen.dart`

### App experience

- [App entry](https://github.com/anuarsv/cinelearn/blob/main/lib/main.dart): `lib/main.dart`
- [Home](https://github.com/anuarsv/cinelearn/blob/main/lib/features/home/screens/home_screen.dart): `lib/features/home/screens/home_screen.dart`
- [Settings](https://github.com/anuarsv/cinelearn/blob/main/lib/features/settings/screens/settings_screen.dart): `lib/features/settings/screens/settings_screen.dart`
- [Subscription](https://github.com/anuarsv/cinelearn/blob/main/lib/features/subscription/screens/subscription_screen.dart): `lib/features/subscription/screens/subscription_screen.dart`

### Platform services

- [Video tools](https://github.com/anuarsv/cinelearn/blob/main/android/app/src/main/kotlin/com/cinelearn/cinelearn/MainActivity.kt): `android/app/src/main/kotlin/com/cinelearn/cinelearn/MainActivity.kt`
- [Local database](https://github.com/anuarsv/cinelearn/blob/main/lib/data/database/app_database.dart): `lib/data/database/app_database.dart`
- [Dictionary service](https://github.com/anuarsv/cinelearn/blob/main/lib/core/services/oxford_dictionary_service.dart): `lib/core/services/oxford_dictionary_service.dart`

### Other components

- **Learner**

## Connections

- Learner → App entry: opens (evidence: `README.md`)
- App entry → Home: presents (evidence: `README.md`)
- Home → Video library: selects videos (evidence: `README.md`)
- Home → YouTube videos: selects videos (evidence: `README.md`)
- Video library → Video player: opens playback (evidence: `README.md`)
- YouTube videos → Video player: opens playback (evidence: `README.md`)
- Video player → Subtitle overlay: shows subtitles (evidence: `README.md`)
- Video player → Word popup: analyzes speech (evidence: `README.md`)
- Word popup → Dictionary service: looks up words (evidence: `README.md`)
- Word popup → Vocabulary list: saves words (evidence: `README.md`)
- Vocabulary list → Local database: persists lexicon (evidence: `README.md`)
- Vocabulary list → Flashcards: reviews words (evidence: `README.md`)
- Vocabulary list → Learning games: practices words (evidence: `README.md`)
- Vocabulary list → Reels review: reviews in clips (evidence: `README.md`)
- Settings → Local database: stores preferences
- Learner → Subscription: manages plan
