# iialvdr/jurnal_ibadah architecture

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

- Interactive diagram: https://gitdiagram.com/iialvdr/jurnal_ibadah
- Repository: https://github.com/iialvdr/jurnal_ibadah

## Overview

Jurnal Ibadah is a mobile-friendly PWA for recording worship and accessing devotional tools. Users enter through the app shell, which loads views and initializes routing and authentication; they then use feature modules for daily tracking, reading, schedules, and other worship needs. Tracking, calendar, account, reminder, and synchronization capabilities are represented alongside the README’s broader feature set. Relationships for unsampled features are limited to documented capabilities; source excerpts do not establish their internal call paths.

Main entry points: [`js/modules/home.js`](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/home.js) (Prayer dashboard), [`js/app.js`](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/app.js) (App bootstrap), [`js/modules/tracker.js`](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/tracker.js) (Prayer journal), [`js/modules/streak.js`](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/streak.js) (Streak statistics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App shell"]
  node_app["App bootstrap<br/>[app.js]"]
  node_router["View router<br/>[router.js]"]
  node_views["Feature views"]
  node_state["Shared state<br/>[state.js]"]
end

subgraph group_daily["Daily practice"]
  node_tracker["Prayer journal<br/>[tracker.js]"]
  node_fasting["Fasting calendar<br/>[fasting.js]"]
  node_streak["Streak statistics<br/>[streak.js]"]
  node_reminder["Prayer reminders<br/>[reminder.js]"]
  node_home["Prayer dashboard<br/>[home.js]"]
  node_dateutils["Hijri date utility<br/>[date-utils.js]"]
end

subgraph group_library["Worship library"]
  node_quran["Quran reader<br/>[quran.js]"]
  node_hadith["Hadith library<br/>[hadith.js]"]
  node_doa["Prayer collection<br/>[doa.js]"]
  node_asma["Names of Allah<br/>[asmaul_husna.js]"]
  node_tasbih["Digital tasbih<br/>[tasbih.js]"]
  node_qibla["Qibla compass<br/>[qibla.js]"]
  node_zakat["Zakat calculator<br/>[zakat.js]"]
end

subgraph group_account["Account and sync"]
  node_auth["Authentication<br/>[auth.js]"]
  node_profile["Profile settings<br/>[profile.js]"]
  node_push["Push notifications<br/>[push.js]"]
  node_firebase["Firebase services<br/>[config.js]"]
end

subgraph group_support["Guidance and PWA"]
  node_faq["Help center<br/>[faq.js]"]
  node_changelog["Changelog<br/>[changelog.js]"]
  node_credits["Data credits<br/>[credits.js]"]
  node_serviceworker["Offline cache<br/>[sw.js]"]
end

node_user(("Worshipper"))
node_quranapi(("EQuran.id"))
node_hadithapi(("Gading Hadith API"))
node_geocoder(("BigDataCloud"))
node_adhan(("Adhan.js"))
node_firestore[("Firestore")]
node_localasma["Local names data<br/>[asmaul-husna.json]"]

node_user -->|"opens"| node_app
node_app -->|"initializes"| node_router
node_app -->|"initializes"| node_auth
node_app -->|"loads module"| node_home
node_app -->|"loads module"| node_tracker
node_app -->|"loads markup"| node_views
node_router -->|"switches view"| node_views
node_app -->|"sets user"| node_state
node_tracker -->|"updates records"| node_state
node_tracker -->|"gets fasting info"| node_fasting
node_tracker -->|"updates streak"| node_streak
node_tracker -->|"gets Hijri date"| node_dateutils
node_fasting -->|"gets Hijri date"| node_dateutils
node_home -->|"gets fasting info"| node_fasting
node_home -->|"calculates streak"| node_streak
node_home -->|"syncs subscription"| node_push
node_profile -->|"links account"| node_auth
node_profile -->|"updates preferences"| node_home
node_profile -->|"renders badges"| node_streak
node_auth -->|"uses auth"| node_firebase
node_home -->|"reads and writes"| node_firestore
node_tracker -->|"reads and writes"| node_firestore
node_streak -->|"reads and writes"| node_firestore
node_push -->|"uses configuration"| node_firebase
node_quran -.->|"loads Quran data"| node_quranapi
node_doa -.->|"loads doa data"| node_quranapi
node_hadith -.->|"loads hadith"| node_hadithapi
node_home -->|"resolves location"| node_geocoder
node_home -.->|"calculates prayer times"| node_adhan
node_asma -.->|"uses local data"| node_localasma
node_user -->|"installs PWA"| node_serviceworker

click node_app "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/app.js"
click node_router "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/router.js"
click node_views "https://github.com/iialvdr/jurnal_ibadah/tree/main/views"
click node_state "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/state.js"
click node_tracker "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/tracker.js"
click node_fasting "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/fasting.js"
click node_streak "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/streak.js"
click node_reminder "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/reminder.js"
click node_home "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/home.js"
click node_dateutils "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/utils/date-utils.js"
click node_quran "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/quran.js"
click node_hadith "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/hadith.js"
click node_doa "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/doa.js"
click node_asma "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/asmaul_husna.js"
click node_tasbih "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/tasbih.js"
click node_qibla "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/qibla.js"
click node_zakat "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/zakat.js"
click node_auth "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/auth.js"
click node_profile "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/profile.js"
click node_push "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/push.js"
click node_firebase "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/config.js"
click node_faq "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/faq.js"
click node_changelog "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/changelog.js"
click node_credits "https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/credits.js"
click node_serviceworker "https://github.com/iialvdr/jurnal_ibadah/blob/main/sw.js"
click node_localasma "https://github.com/iialvdr/jurnal_ibadah/blob/main/assets/data/asmaul-husna.json"

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_app,node_router,node_views,node_state toneBlue
class node_tracker,node_fasting,node_streak,node_reminder,node_home,node_dateutils,node_firestore toneAmber
class node_quran,node_hadith,node_doa,node_asma,node_tasbih,node_qibla,node_zakat,node_hadithapi toneMint
class node_auth,node_profile,node_push,node_firebase toneRose
class node_faq,node_changelog,node_credits,node_serviceworker,node_user,node_quranapi,node_geocoder,node_adhan toneIndigo
class node_localasma toneTeal
```

## Components

### App shell

- [App bootstrap](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/app.js): `js/app.js`
- [View router](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/router.js): `js/router.js`
- [Feature views](https://github.com/iialvdr/jurnal_ibadah/tree/main/views): `views`
- [Shared state](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/state.js): `js/state.js`

### Daily practice

- [Prayer journal](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/tracker.js): `js/modules/tracker.js`
- [Fasting calendar](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/fasting.js): `js/modules/fasting.js`
- [Streak statistics](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/streak.js): `js/modules/streak.js`
- [Prayer reminders](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/reminder.js): `js/modules/reminder.js`
- [Prayer dashboard](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/home.js): `js/modules/home.js`
- [Hijri date utility](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/utils/date-utils.js): `js/utils/date-utils.js`

### Worship library

- [Quran reader](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/quran.js): `js/modules/quran.js`
- [Hadith library](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/hadith.js): `js/modules/hadith.js`
- [Prayer collection](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/doa.js): `js/modules/doa.js`
- [Names of Allah](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/asmaul_husna.js): `js/modules/asmaul_husna.js`
- [Digital tasbih](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/tasbih.js): `js/modules/tasbih.js`
- [Qibla compass](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/qibla.js): `js/modules/qibla.js`
- [Zakat calculator](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/zakat.js): `js/modules/zakat.js`

### Account and sync

- [Authentication](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/auth.js): `js/modules/auth.js`
- [Profile settings](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/profile.js): `js/modules/profile.js`
- [Push notifications](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/push.js): `js/modules/push.js`
- [Firebase services](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/config.js): `js/config.js`

### Guidance and PWA

- [Help center](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/faq.js): `js/modules/faq.js`
- [Changelog](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/changelog.js): `js/modules/changelog.js`
- [Data credits](https://github.com/iialvdr/jurnal_ibadah/blob/main/js/modules/credits.js): `js/modules/credits.js`
- [Offline cache](https://github.com/iialvdr/jurnal_ibadah/blob/main/sw.js): `sw.js`

### Other components

- **Worshipper**
- **EQuran.id**
- **Gading Hadith API**
- **BigDataCloud**
- **Adhan.js**
- **Firestore**
- [Local names data](https://github.com/iialvdr/jurnal_ibadah/blob/main/assets/data/asmaul-husna.json): `assets/data/asmaul-husna.json`

## Connections

- Worshipper → App bootstrap: opens (evidence: `README.md`)
- App bootstrap → View router: initializes (evidence: `js/app.js`)
- App bootstrap → Authentication: initializes (evidence: `js/app.js`)
- App bootstrap → Prayer dashboard: loads module (evidence: `js/app.js`)
- App bootstrap → Prayer journal: loads module (evidence: `js/app.js`)
- App bootstrap → Feature views: loads markup (evidence: `js/app.js`)
- View router → Feature views: switches view (evidence: `js/router.js`)
- App bootstrap → Shared state: sets user (evidence: `js/app.js`)
- Prayer journal → Shared state: updates records (evidence: `js/modules/tracker.js`)
- Prayer journal → Fasting calendar: gets fasting info (evidence: `js/modules/tracker.js`)
- Prayer journal → Streak statistics: updates streak (evidence: `js/modules/tracker.js`)
- Prayer journal → Hijri date utility: gets Hijri date (evidence: `js/modules/tracker.js`)
- Fasting calendar → Hijri date utility: gets Hijri date (evidence: `js/modules/fasting.js`)
- Prayer dashboard → Fasting calendar: gets fasting info (evidence: `js/modules/home.js`)
- Prayer dashboard → Streak statistics: calculates streak (evidence: `js/modules/home.js`)
- Prayer dashboard → Push notifications: syncs subscription (evidence: `js/modules/home.js`)
- Profile settings → Authentication: links account (evidence: `js/modules/profile.js`)
- Profile settings → Prayer dashboard: updates preferences (evidence: `js/modules/profile.js`)
- Profile settings → Streak statistics: renders badges (evidence: `js/modules/profile.js`)
- Authentication → Firebase services: uses auth (evidence: `js/modules/auth.js`)
- Prayer dashboard → Firestore: reads and writes (evidence: `js/modules/home.js`)
- Prayer journal → Firestore: reads and writes (evidence: `js/modules/tracker.js`)
- Streak statistics → Firestore: reads and writes (evidence: `js/modules/streak.js`)
- Push notifications → Firebase services: uses configuration (evidence: `js/modules/push.js`)
- Quran reader → EQuran.id: loads Quran data (evidence: `README.md`)
- Prayer collection → EQuran.id: loads doa data (evidence: `README.md`)
- Hadith library → Gading Hadith API: loads hadith (evidence: `README.md`)
- Prayer dashboard → BigDataCloud: resolves location (evidence: `js/modules/home.js`)
- Prayer dashboard → Adhan.js: calculates prayer times (evidence: `README.md`)
- Names of Allah → Local names data: uses local data (evidence: `README.md`)
- Worshipper → Offline cache: installs PWA (evidence: `README.md`)
