# blocher/dailyoffice2019 architecture

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

- Interactive diagram: https://gitdiagram.com/blocher/dailyoffice2019
- Repository: https://github.com/blocher/dailyoffice2019

## Overview

Daily Office is a prayer service for following the Anglican Book of Common Prayer: users open a day or office, receive prayer text and readings, and can listen or continue offline. The Vue/Capacitor app presents the experience; Django supplies office content and related services. Distinct branches support calendar and Bible material, audio and podcasts, offline downloads, voice and car access, and psalm chanting. The tree and excerpts establish several native and cache relationships; many backend and frontend routes were not sampled, so their wiring is shown only where evidence supports it.

Main entry points: [`site/office/api/views/index.py`](https://github.com/blocher/dailyoffice2019/blob/master/site/office/api/views/index.py) (Office API), [`app/src/main.js`](https://github.com/blocher/dailyoffice2019/blob/master/app/src/main.js) (App bootstrap), [`app/ios/App/App/MainViewController.swift`](https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/MainViewController.swift) (iOS app plugins), [`app/src/App.vue`](https://github.com/blocher/dailyoffice2019/blob/master/app/src/App.vue) (Prayer reader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["App experience"]
  node_reader["Prayer reader<br/>[App.vue]"]
  node_bootstrap["App bootstrap<br/>[main.js]"]
  node_routes["Prayer views"]
  node_settings["Display preferences"]
end

subgraph group_prayer["Prayer content"]
  node_office_api["Office API<br/>[index.py]"]
  node_office_data[("Office content<br/>[models.py]")]
  node_calendar["Church calendar<br/>[calculations.py]"]
  node_bible["Bible passages<br/>[sources.py]"]
  node_response_cache[("Office response cache<br/>[response_cache.py]")]
  node_edge_cache["Edge cache<br/>[edge_cache.py]"]
end

subgraph group_media["Audio and offline"]
  node_web_offline["Web offline support"]
  node_offline_content[("Offline change log<br/>[offline_content.py]")]
  node_audio["Audio player<br/>[AudioPlayer.vue]"]
  node_podcasts["Podcast service"]
end

subgraph group_chant["Chant and psalms"]
  node_chant_service["Chant pointing<br/>[service.py]"]
  node_chant_models[("Psalm data<br/>[models.py]")]
end

subgraph group_native["Native access"]
  node_android_player["Android playback"]
  node_android_library["Android Auto library<br/>[OfficeLibrary.kt]"]
  node_android_voice["Android voice playback"]
  node_android_sync["Android offline sync"]
  node_ios_plugins["iOS app plugins"]
  node_ios_audio["iOS audio player<br/>[OfficePlayer.swift]"]
  node_ios_sync["iOS offline sync"]
  node_ios_voice["iOS voice intents<br/>[VoiceIntents.swift]"]
end

node_reader_actor(("Prayer reader"))

node_reader_actor -->|"opens app"| node_bootstrap
node_bootstrap -->|"mounts"| node_reader
node_bootstrap -->|"installs router"| node_routes
node_bootstrap -->|"installs"| node_web_offline
node_reader -->|"requests settings"| node_office_api
node_reader -->|"applies preferences"| node_settings
node_routes -.->|"loads prayer content"| node_office_api
node_office_api -.->|"reads content"| node_office_data
node_office_api -.->|"uses calendar"| node_calendar
node_office_api -.->|"gets passages"| node_bible
node_office_api -.->|"caches responses"| node_response_cache
node_response_cache -->|"purges"| node_edge_cache
node_offline_content -->|"tracks changes"| node_office_data
node_android_sync -.->|"fetches updates"| node_office_api
node_android_sync -.->|"checks changes"| node_offline_content
node_audio -.->|"native playback"| node_android_player
node_android_player -->|"registers library"| node_android_library
node_android_voice -->|"starts playback"| node_android_player
node_ios_plugins -->|"registers plugin"| node_ios_audio
node_ios_plugins -->|"registers plugin"| node_ios_sync
node_ios_plugins -->|"registers launch plugin"| node_ios_voice
node_chant_service -->|"reads and saves"| node_chant_models

click node_reader "https://github.com/blocher/dailyoffice2019/blob/master/app/src/App.vue"
click node_bootstrap "https://github.com/blocher/dailyoffice2019/blob/master/app/src/main.js"
click node_routes "https://github.com/blocher/dailyoffice2019/tree/master/app/src/views"
click node_settings "https://github.com/blocher/dailyoffice2019/blob/master/app/src/helpers/displayPreferences.js"
click node_web_offline "https://github.com/blocher/dailyoffice2019/tree/master/app/src/offline"
click node_office_api "https://github.com/blocher/dailyoffice2019/blob/master/site/office/api/views/index.py"
click node_office_data "https://github.com/blocher/dailyoffice2019/blob/master/site/office/models.py"
click node_calendar "https://github.com/blocher/dailyoffice2019/blob/master/site/churchcal/calculations.py"
click node_bible "https://github.com/blocher/dailyoffice2019/blob/master/site/bible/sources.py"
click node_offline_content "https://github.com/blocher/dailyoffice2019/blob/master/site/office/offline_content.py"
click node_response_cache "https://github.com/blocher/dailyoffice2019/blob/master/site/office/response_cache.py"
click node_edge_cache "https://github.com/blocher/dailyoffice2019/blob/master/site/website/edge_cache.py"
click node_audio "https://github.com/blocher/dailyoffice2019/blob/master/app/src/components/AudioPlayer.vue"
click node_podcasts "https://github.com/blocher/dailyoffice2019/tree/master/site/podcasts"
click node_chant_service "https://github.com/blocher/dailyoffice2019/blob/master/site/psalter/chant/service.py"
click node_chant_models "https://github.com/blocher/dailyoffice2019/blob/master/site/psalter/models.py"
click node_android_player "https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/audio/PlaybackService.java"
click node_android_library "https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/car/OfficeLibrary.kt"
click node_android_voice "https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/voice/VoicePlayActivity.kt"
click node_android_sync "https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/offline/OfflineSyncWorker.java"
click node_ios_plugins "https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/MainViewController.swift"
click node_ios_audio "https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/OfficePlayer.swift"
click node_ios_sync "https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/OfflineSyncPlugin.swift"
click node_ios_voice "https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/Voice/VoiceIntents.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_reader,node_bootstrap,node_routes,node_settings toneBlue
class node_office_api,node_office_data,node_calendar,node_bible,node_response_cache,node_edge_cache toneAmber
class node_web_offline,node_offline_content,node_audio,node_podcasts toneMint
class node_chant_service,node_chant_models toneRose
class node_android_player,node_android_library,node_android_voice,node_android_sync,node_ios_plugins,node_ios_audio,node_ios_sync,node_ios_voice,node_reader_actor toneIndigo
```

## Components

### App experience

- [Prayer reader](https://github.com/blocher/dailyoffice2019/blob/master/app/src/App.vue): `app/src/App.vue`
- [App bootstrap](https://github.com/blocher/dailyoffice2019/blob/master/app/src/main.js): `app/src/main.js`
- [Prayer views](https://github.com/blocher/dailyoffice2019/tree/master/app/src/views): `app/src/views`
- [Display preferences](https://github.com/blocher/dailyoffice2019/blob/master/app/src/helpers/displayPreferences.js): `app/src/helpers/displayPreferences.js`

### Prayer content

- [Office API](https://github.com/blocher/dailyoffice2019/blob/master/site/office/api/views/index.py): `site/office/api/views/index.py`
- [Office content](https://github.com/blocher/dailyoffice2019/blob/master/site/office/models.py): `site/office/models.py`
- [Church calendar](https://github.com/blocher/dailyoffice2019/blob/master/site/churchcal/calculations.py): `site/churchcal/calculations.py`
- [Bible passages](https://github.com/blocher/dailyoffice2019/blob/master/site/bible/sources.py): `site/bible/sources.py`
- [Office response cache](https://github.com/blocher/dailyoffice2019/blob/master/site/office/response_cache.py): `site/office/response_cache.py`
- [Edge cache](https://github.com/blocher/dailyoffice2019/blob/master/site/website/edge_cache.py): `site/website/edge_cache.py`

### Audio and offline

- [Web offline support](https://github.com/blocher/dailyoffice2019/tree/master/app/src/offline): `app/src/offline`
- [Offline change log](https://github.com/blocher/dailyoffice2019/blob/master/site/office/offline_content.py): `site/office/offline_content.py`
- [Audio player](https://github.com/blocher/dailyoffice2019/blob/master/app/src/components/AudioPlayer.vue): `app/src/components/AudioPlayer.vue`
- [Podcast service](https://github.com/blocher/dailyoffice2019/tree/master/site/podcasts): `site/podcasts`

### Chant and psalms

- [Chant pointing](https://github.com/blocher/dailyoffice2019/blob/master/site/psalter/chant/service.py): `site/psalter/chant/service.py`
- [Psalm data](https://github.com/blocher/dailyoffice2019/blob/master/site/psalter/models.py): `site/psalter/models.py`

### Native access

- [Android playback](https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/audio/PlaybackService.java): `app/android/app/src/main/java/com/dailyoffice2019/app/audio/PlaybackService.java`
- [Android Auto library](https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/car/OfficeLibrary.kt): `app/android/app/src/main/java/com/dailyoffice2019/app/car/OfficeLibrary.kt`
- [Android voice playback](https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/voice/VoicePlayActivity.kt): `app/android/app/src/main/java/com/dailyoffice2019/app/voice/VoicePlayActivity.kt`
- [Android offline sync](https://github.com/blocher/dailyoffice2019/blob/master/app/android/app/src/main/java/com/dailyoffice2019/app/offline/OfflineSyncWorker.java): `app/android/app/src/main/java/com/dailyoffice2019/app/offline/OfflineSyncWorker.java`
- [iOS app plugins](https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/MainViewController.swift): `app/ios/App/App/MainViewController.swift`
- [iOS audio player](https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/OfficePlayer.swift): `app/ios/App/App/OfficePlayer.swift`
- [iOS offline sync](https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/OfflineSyncPlugin.swift): `app/ios/App/App/OfflineSyncPlugin.swift`
- [iOS voice intents](https://github.com/blocher/dailyoffice2019/blob/master/app/ios/App/App/Voice/VoiceIntents.swift): `app/ios/App/App/Voice/VoiceIntents.swift`

### Other components

- **Prayer reader**

## Connections

- Prayer reader → App bootstrap: opens app (evidence: `app/src/main.js`)
- App bootstrap → Prayer reader: mounts (evidence: `app/src/main.js`)
- App bootstrap → Prayer views: installs router (evidence: `app/src/main.js`)
- App bootstrap → Web offline support: installs (evidence: `app/src/main.js`)
- Prayer reader → Office API: requests settings (evidence: `app/src/App.vue`)
- Prayer reader → Display preferences: applies preferences (evidence: `app/src/App.vue`)
- Prayer views → Office API: loads prayer content
- Office API → Office content: reads content
- Office API → Church calendar: uses calendar
- Office API → Bible passages: gets passages
- Office API → Office response cache: caches responses
- Office response cache → Edge cache: purges (evidence: `site/office/response_cache.py`)
- Offline change log → Office content: tracks changes (evidence: `site/office/offline_content.py`)
- Android offline sync → Office API: fetches updates
- Android offline sync → Offline change log: checks changes
- Audio player → Android playback: native playback
- Android playback → Android Auto library: registers library (evidence: `app/android/app/src/main/java/com/dailyoffice2019/app/audio/PlaybackService.java`)
- Android voice playback → Android playback: starts playback (evidence: `app/android/app/src/main/java/com/dailyoffice2019/app/voice/VoicePlayActivity.kt`)
- iOS app plugins → iOS audio player: registers plugin (evidence: `app/ios/App/App/MainViewController.swift`)
- iOS app plugins → iOS offline sync: registers plugin (evidence: `app/ios/App/App/MainViewController.swift`)
- iOS app plugins → iOS voice intents: registers launch plugin (evidence: `app/ios/App/App/MainViewController.swift`)
- Chant pointing → Psalm data: reads and saves (evidence: `site/psalter/chant/service.py`)
