# renggadiansa/al-quran architecture

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

- Interactive diagram: https://gitdiagram.com/renggadiansa/al-quran
- Repository: https://github.com/renggadiansa/al-quran

## Overview

This is a cross-platform Flutter Quran app. The tree indicates an entry point, navigation, Quran-reading views, search, onboarding, last-read and bookmark functionality, but the README is only a Flutter-project template and no Dart source was excerpted. Accordingly, the feature nodes reflect the module names, while their runtime connections are left unasserted. The shown platform code supports app startup/window hosting; it does not establish how those shells connect to individual Dart features.

Main entry points: [`windows/runner/main.cpp`](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/main.cpp) (Windows startup), [`windows/runner/flutter_window.h`](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/win32_window.cpp`](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/win32_window.cpp) (Win32 window), [`linux/main.cc`](https://github.com/renggadiansa/al-quran/blob/main/linux/main.cc) (Linux startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_entry["App entry<br/>[main.dart]"]
  node_routes["App routes<br/>[app_pages.dart]"]
  node_route_names["Route names<br/>[app_routes.dart]"]
  node_intro["Introduction"]
end

subgraph group_reading["Quran reading"]
  node_surah_detail["Surah reading"]
  node_juz_detail["Juz reading"]
  node_surah_model["Surah data<br/>[surah.dart]"]
  node_detail_model["Surah detail data<br/>[detail_surah.dart]"]
  node_ayat_model["Ayat data<br/>[ayat.dart]"]
  node_juz_model["Juz data<br/>[juz.dart]"]
end

subgraph group_navigation["Discovery and navigation"]
  node_home["Home<br/>[home_view.dart]"]
  node_search["Quran search"]
end

subgraph group_state["Reading state"]
  node_last_read["Last read"]
  node_bookmark[("Bookmarks<br/>[bookmark.dart]")]
end

subgraph group_platform["Platform shells"]
  node_win_main["Windows startup<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win_window["Win32 window<br/>[win32_window.cpp]"]
  node_win_header["Win32 window API<br/>[win32_window.h]"]
  node_win_utils["Windows utilities<br/>[utils.h]"]
  node_linux_main["Linux startup<br/>[main.cc]"]
  node_linux_app["Linux application API<br/>[my_application.h]"]
  node_linux_plugins["Linux plugin API"]
  node_windows_plugins["Windows plugin API"]
  node_mac_plugins["macOS plugin registration"]
  node_ios_delegate["iOS app delegate<br/>[AppDelegate.swift]"]
end

node_user(("Reader"))

node_win_main -->|"creates"| node_flutter_window
node_win_main -->|"gets arguments"| node_win_utils
node_flutter_window -->|"inherits"| node_win_window
node_win_window -->|"implements"| node_win_header
node_linux_main -->|"creates app"| node_linux_app

click node_entry "https://github.com/renggadiansa/al-quran/blob/main/lib/main.dart"
click node_routes "https://github.com/renggadiansa/al-quran/blob/main/lib/app/routes/app_pages.dart"
click node_route_names "https://github.com/renggadiansa/al-quran/blob/main/lib/app/routes/app_routes.dart"
click node_intro "https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/introduction/views/introduction_view.dart"
click node_home "https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/home/views/home_view.dart"
click node_search "https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/find_page/views/find_page_view.dart"
click node_surah_detail "https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/detail_surah/views/detail_surah_view.dart"
click node_juz_detail "https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/detail_juz/views/detail_juz_view.dart"
click node_last_read "https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/last_read/views/last_read_view.dart"
click node_bookmark "https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/db/bookmark.dart"
click node_surah_model "https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/surah.dart"
click node_detail_model "https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/detail_surah.dart"
click node_ayat_model "https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/ayat.dart"
click node_juz_model "https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/juz.dart"
click node_win_main "https://github.com/renggadiansa/al-quran/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/renggadiansa/al-quran/blob/main/windows/runner/flutter_window.h"
click node_win_window "https://github.com/renggadiansa/al-quran/blob/main/windows/runner/win32_window.cpp"
click node_win_header "https://github.com/renggadiansa/al-quran/blob/main/windows/runner/win32_window.h"
click node_win_utils "https://github.com/renggadiansa/al-quran/blob/main/windows/runner/utils.h"
click node_linux_main "https://github.com/renggadiansa/al-quran/blob/main/linux/main.cc"
click node_linux_app "https://github.com/renggadiansa/al-quran/blob/main/linux/my_application.h"
click node_linux_plugins "https://github.com/renggadiansa/al-quran/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_windows_plugins "https://github.com/renggadiansa/al-quran/blob/main/windows/flutter/generated_plugin_registrant.h"
click node_mac_plugins "https://github.com/renggadiansa/al-quran/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_ios_delegate "https://github.com/renggadiansa/al-quran/blob/main/ios/Runner/AppDelegate.swift"

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_entry,node_routes,node_route_names,node_intro toneBlue
class node_surah_detail,node_juz_detail,node_surah_model,node_detail_model,node_ayat_model,node_juz_model toneAmber
class node_home,node_search toneMint
class node_last_read,node_bookmark toneRose
class node_win_main,node_flutter_window,node_win_window,node_win_header,node_win_utils,node_linux_main,node_linux_app,node_linux_plugins,node_windows_plugins,node_mac_plugins,node_ios_delegate,node_user toneIndigo
```

## Components

### Flutter app

- [App entry](https://github.com/renggadiansa/al-quran/blob/main/lib/main.dart): `lib/main.dart`
- [App routes](https://github.com/renggadiansa/al-quran/blob/main/lib/app/routes/app_pages.dart): `lib/app/routes/app_pages.dart`
- [Route names](https://github.com/renggadiansa/al-quran/blob/main/lib/app/routes/app_routes.dart): `lib/app/routes/app_routes.dart`
- [Introduction](https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/introduction/views/introduction_view.dart): `lib/app/modules/introduction/views/introduction_view.dart`

### Quran reading

- [Surah reading](https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/detail_surah/views/detail_surah_view.dart): `lib/app/modules/detail_surah/views/detail_surah_view.dart`
- [Juz reading](https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/detail_juz/views/detail_juz_view.dart): `lib/app/modules/detail_juz/views/detail_juz_view.dart`
- [Surah data](https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/surah.dart): `lib/app/data/models/surah.dart`
- [Surah detail data](https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/detail_surah.dart): `lib/app/data/models/detail_surah.dart`
- [Ayat data](https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/ayat.dart): `lib/app/data/models/ayat.dart`
- [Juz data](https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/models/juz.dart): `lib/app/data/models/juz.dart`

### Discovery and navigation

- [Home](https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/home/views/home_view.dart): `lib/app/modules/home/views/home_view.dart`
- [Quran search](https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/find_page/views/find_page_view.dart): `lib/app/modules/find_page/views/find_page_view.dart`

### Reading state

- [Last read](https://github.com/renggadiansa/al-quran/blob/main/lib/app/modules/last_read/views/last_read_view.dart): `lib/app/modules/last_read/views/last_read_view.dart`
- [Bookmarks](https://github.com/renggadiansa/al-quran/blob/main/lib/app/data/db/bookmark.dart): `lib/app/data/db/bookmark.dart`

### Platform shells

- [Windows startup](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Win32 window API](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Windows utilities](https://github.com/renggadiansa/al-quran/blob/main/windows/runner/utils.h): `windows/runner/utils.h`
- [Linux startup](https://github.com/renggadiansa/al-quran/blob/main/linux/main.cc): `linux/main.cc`
- [Linux application API](https://github.com/renggadiansa/al-quran/blob/main/linux/my_application.h): `linux/my_application.h`
- [Linux plugin API](https://github.com/renggadiansa/al-quran/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugin API](https://github.com/renggadiansa/al-quran/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`
- [macOS plugin registration](https://github.com/renggadiansa/al-quran/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [iOS app delegate](https://github.com/renggadiansa/al-quran/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`

### Other components

- **Reader**

## Connections

- Windows startup → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Windows startup → Windows utilities: gets arguments (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits (evidence: `windows/runner/flutter_window.h`)
- Win32 window → Win32 window API: implements (evidence: `windows/runner/win32_window.cpp`)
- Linux startup → Linux application API: creates app (evidence: `linux/main.cc`)
