# alheekmahlib/quran_library architecture

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

- Interactive diagram: https://gitdiagram.com/alheekmahlib/quran_library
- Repository: https://github.com/alheekmahlib/quran_library

## Overview

Quran Library is a Flutter package for embedding Quran reading and related study features in an application. The principal workflow is app initialization, displaying the Quran screen, then reading Quran content with navigation, search, and bookmarks; separate documented branches provide fonts, tafsir, audio, and AI recitation checking. The available source excerpts cover only Android scaffolding, so feature nodes use existing source directories and relationships beyond README-documented usage are omitted.

Main entry points: [`lib/src/quran/presentation`](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation) (Quran screen), [`lib`](https://github.com/alheekmahlib/quran_library/tree/main/lib) (Quran Library API), [`lib/src/quran/data`](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/data) (Quran content), [`lib/src/quran/presentation/controllers`](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/controllers) (Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_reading["Quran Reading"]
  node_library["Quran Library API"]
  node_screen["Quran screen"]
  node_quran_data[("Quran content")]
  node_navigation["Navigation"]
  node_fonts["Font downloads"]
end

subgraph group_study["Study Tools"]
  node_search["Ayah search"]
  node_bookmarks[("Bookmarks")]
  node_tafsir["Tafsir"]
end

subgraph group_media["Audio Features"]
  node_audio["Audio playback"]
  node_word_audio["Word audio"]
  node_tasmee["AI recitation check"]
end

subgraph group_platform["Platform Integration"]
  node_android_plugin["Android plugin"]
end

node_app(("Host app"))

node_app -->|"initializes"| node_library
node_app -->|"displays"| node_screen
node_screen -.->|"presents"| node_quran_data
node_screen -.->|"supports"| node_navigation
node_screen -.->|"offers"| node_search
node_screen -.->|"offers"| node_bookmarks
node_app -.->|"downloads"| node_fonts
node_app -.->|"opens"| node_tafsir
node_app -.->|"plays"| node_audio
node_app -.->|"plays"| node_word_audio
node_app -.->|"checks recitation"| node_tasmee

click node_library "https://github.com/alheekmahlib/quran_library/tree/main/lib"
click node_screen "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation"
click node_quran_data "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/data"
click node_navigation "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/controllers"
click node_search "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/widgets/tabs"
click node_bookmarks "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/controllers/bookmark"
click node_fonts "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/widgets/download_fonts_page"
click node_tafsir "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/tafsir"
click node_audio "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/audio"
click node_word_audio "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/audio"
click node_tasmee "https://github.com/alheekmahlib/quran_library/tree/main/lib/src/tasmee"
click node_android_plugin "https://github.com/alheekmahlib/quran_library/blob/main/android/src/main/java/com/alheekmah/quranPackage/QuranLibraryPlugin.java"

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_screen,node_quran_data,node_navigation,node_fonts toneBlue
class node_search,node_bookmarks,node_tafsir toneAmber
class node_audio,node_word_audio,node_tasmee toneMint
class node_android_plugin toneRose
class node_app toneIndigo
```

## Components

### Quran Reading

- [Quran Library API](https://github.com/alheekmahlib/quran_library/tree/main/lib): `lib`
- [Quran screen](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation): `lib/src/quran/presentation`
- [Quran content](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/data): `lib/src/quran/data`
- [Navigation](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/controllers): `lib/src/quran/presentation/controllers`
- [Font downloads](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/widgets/download_fonts_page): `lib/src/quran/presentation/widgets/download_fonts_page`

### Study Tools

- [Ayah search](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/widgets/tabs): `lib/src/quran/presentation/widgets/tabs`
- [Bookmarks](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/quran/presentation/controllers/bookmark): `lib/src/quran/presentation/controllers/bookmark`
- [Tafsir](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/tafsir): `lib/src/tafsir`

### Audio Features

- [Audio playback](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/audio): `lib/src/audio`
- [Word audio](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/audio): `lib/src/audio`
- [AI recitation check](https://github.com/alheekmahlib/quran_library/tree/main/lib/src/tasmee): `lib/src/tasmee`

### Platform Integration

- [Android plugin](https://github.com/alheekmahlib/quran_library/blob/main/android/src/main/java/com/alheekmah/quranPackage/QuranLibraryPlugin.java): `android/src/main/java/com/alheekmah/quranPackage/QuranLibraryPlugin.java`

### Other components

- **Host app**

## Connections

- Host app → Quran Library API: initializes (evidence: `README.md`)
- Host app → Quran screen: displays (evidence: `README.md`)
- Quran screen → Quran content: presents
- Quran screen → Navigation: supports
- Quran screen → Ayah search: offers (evidence: `README.md`)
- Quran screen → Bookmarks: offers (evidence: `README.md`)
- Host app → Font downloads: downloads (evidence: `README.md`)
- Host app → Tafsir: opens (evidence: `README.md`)
- Host app → Audio playback: plays (evidence: `README.md`)
- Host app → Word audio: plays (evidence: `README.md`)
- Host app → AI recitation check: checks recitation (evidence: `README.md`)
