# geosphereweb/congregationplaner architecture

> Architecture diagram of the GitHub repository geosphereweb/congregationplaner, 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/geosphereweb/congregationplaner
- Repository: https://github.com/geosphereweb/congregationplaner

## Overview

CongregationPlaner is a Kotlin Multiplatform congregation-management and planning app. The principal flow is platform launch → shared app/session and access gates → congregation selection → feature screens backed by repositories and Firebase. The tree also shows substantial planning, import/export, organization, and notification features beyond the README’s explicitly implemented capabilities. Connections are limited to relationships stated in the README or visible in the supplied source/index; unsampled feature wiring is not inferred.

Main entry points: [`shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`](https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt) (Shared app), [`shared/src/androidMain/kotlin/de/geosphere/congregationplaner`](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/androidMain/kotlin/de/geosphere/congregationplaner) (Firestore repositories), [`androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt`](https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt) (Android launch), [`androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationCheckWorker.kt`](https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationCheckWorker.kt) (Notification worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Platform entry"]
  node_android["Android launch<br/>[MainActivity.kt]"]
  node_desktop["Desktop launch<br/>[main.kt]"]
  node_worker["Notification worker"]
  node_presenter["Notification presenter"]
end

subgraph group_shared["App and access"]
  node_app["Shared app<br/>[App.kt]"]
  node_auth["Authentication"]
  node_access["User access gate"]
end

subgraph group_features["Planning features"]
  node_congregations["Congregation management"]
  node_organization["Organization selection"]
  node_home["Home summary"]
  node_talk["Talk planning"]
  node_events["Events and types"]
  node_importexport["Import and export"]
  node_notifications["Notifications"]
end

subgraph group_backend["Data and services"]
  node_firebase_auth["Platform auth adapters"]
  node_firestore["Firestore repositories"]
end

subgraph group_experience["Shared experience"]
  node_theme["App theme<br/>[AppTheme.kt]"]
  node_uilib["UI components"]
end

node_user(("App user"))
node_firebase[("Firebase services")]

node_user -->|"opens app"| node_android
node_user -->|"opens app"| node_desktop
node_android -->|"launches"| node_app
node_desktop -->|"launches"| node_app
node_app -->|"routes to"| node_auth
node_app -->|"routes to"| node_organization
node_app -->|"checks access"| node_access
node_app -->|"loads summary"| node_home
node_auth -.->|"uses adapter"| node_firebase_auth
node_firebase_auth -->|"auth requests"| node_firebase
node_congregations -.->|"repository access"| node_firestore
node_organization -.->|"repository access"| node_firestore
node_talk -.->|"repository access"| node_firestore
node_events -.->|"repository access"| node_firestore
node_importexport -.->|"imports schedules"| node_talk
node_android -->|"checks now"| node_worker
node_worker -->|"shows alerts"| node_presenter
node_worker -.->|"checks notifications"| node_firestore
node_app -->|"applies theme"| node_theme
node_theme -.->|"styles components"| node_uilib

click node_android "https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt"
click node_desktop "https://github.com/geosphereweb/congregationplaner/blob/master/desktopApp/src/main/kotlin/de/geosphere/congregationplaner/main.kt"
click node_app "https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt"
click node_auth "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/auth/presentation"
click node_access "https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/user/presentation/access/UserAccessGateScreen.kt"
click node_congregations "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/congregation/presentation"
click node_organization "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/organization/presentation"
click node_home "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/home/presentation"
click node_talk "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/talk"
click node_events "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/event/presentation"
click node_importexport "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/importer"
click node_notifications "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/notification"
click node_firebase_auth "https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/androidMain/kotlin/de/geosphere/congregationplaner/auth/data/AndroidFirebaseAuthRepository.kt"
click node_firestore "https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/androidMain/kotlin/de/geosphere/congregationplaner"
click node_worker "https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationCheckWorker.kt"
click node_presenter "https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationPresenter.kt"
click node_theme "https://github.com/geosphereweb/congregationplaner/blob/master/theming/src/commonMain/kotlin/de/geosphere/congregationplaner/theming/AppTheme.kt"
click node_uilib "https://github.com/geosphereweb/congregationplaner/tree/master/uilib/src/commonMain/kotlin/de/geosphere/congregationplaner/ui"

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_android,node_desktop,node_worker,node_presenter,node_user toneBlue
class node_app,node_auth,node_access,node_firebase toneAmber
class node_congregations,node_organization,node_home,node_talk,node_events,node_importexport,node_notifications toneMint
class node_firebase_auth,node_firestore toneRose
class node_theme,node_uilib toneIndigo
```

## Components

### Platform entry

- [Android launch](https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt): `androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt`
- [Desktop launch](https://github.com/geosphereweb/congregationplaner/blob/master/desktopApp/src/main/kotlin/de/geosphere/congregationplaner/main.kt): `desktopApp/src/main/kotlin/de/geosphere/congregationplaner/main.kt`
- [Notification worker](https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationCheckWorker.kt): `androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationCheckWorker.kt`
- [Notification presenter](https://github.com/geosphereweb/congregationplaner/blob/master/androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationPresenter.kt): `androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationPresenter.kt`

### App and access

- [Shared app](https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`
- [Authentication](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/auth/presentation): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/auth/presentation`
- [User access gate](https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/user/presentation/access/UserAccessGateScreen.kt): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/user/presentation/access/UserAccessGateScreen.kt`

### Planning features

- [Congregation management](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/congregation/presentation): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/congregation/presentation`
- [Organization selection](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/organization/presentation): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/organization/presentation`
- [Home summary](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/home/presentation): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/home/presentation`
- [Talk planning](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/talk): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/talk`
- [Events and types](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/event/presentation): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/event/presentation`
- [Import and export](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/importer): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/importer`
- [Notifications](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/commonMain/kotlin/de/geosphere/congregationplaner/notification): `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/notification`

### Data and services

- [Platform auth adapters](https://github.com/geosphereweb/congregationplaner/blob/master/shared/src/androidMain/kotlin/de/geosphere/congregationplaner/auth/data/AndroidFirebaseAuthRepository.kt): `shared/src/androidMain/kotlin/de/geosphere/congregationplaner/auth/data/AndroidFirebaseAuthRepository.kt`
- [Firestore repositories](https://github.com/geosphereweb/congregationplaner/tree/master/shared/src/androidMain/kotlin/de/geosphere/congregationplaner): `shared/src/androidMain/kotlin/de/geosphere/congregationplaner`

### Shared experience

- [App theme](https://github.com/geosphereweb/congregationplaner/blob/master/theming/src/commonMain/kotlin/de/geosphere/congregationplaner/theming/AppTheme.kt): `theming/src/commonMain/kotlin/de/geosphere/congregationplaner/theming/AppTheme.kt`
- [UI components](https://github.com/geosphereweb/congregationplaner/tree/master/uilib/src/commonMain/kotlin/de/geosphere/congregationplaner/ui): `uilib/src/commonMain/kotlin/de/geosphere/congregationplaner/ui`

### Other components

- **App user**
- **Firebase services**

## Connections

- App user → Android launch: opens app (evidence: `androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt`)
- App user → Desktop launch: opens app (evidence: `desktopApp/src/main/kotlin/de/geosphere/congregationplaner/main.kt`)
- Android launch → Shared app: launches (evidence: `androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt`)
- Desktop launch → Shared app: launches (evidence: `desktopApp/src/main/kotlin/de/geosphere/congregationplaner/main.kt`)
- Shared app → Authentication: routes to (evidence: `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`)
- Shared app → Organization selection: routes to (evidence: `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`)
- Shared app → User access gate: checks access (evidence: `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`)
- Shared app → Home summary: loads summary (evidence: `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`)
- Authentication → Platform auth adapters: uses adapter
- Platform auth adapters → Firebase services: auth requests
- Congregation management → Firestore repositories: repository access
- Organization selection → Firestore repositories: repository access
- Talk planning → Firestore repositories: repository access
- Events and types → Firestore repositories: repository access
- Import and export → Talk planning: imports schedules
- Android launch → Notification worker: checks now (evidence: `androidApp/src/main/kotlin/de/geosphere/congregationplaner/MainActivity.kt`)
- Notification worker → Notification presenter: shows alerts (evidence: `androidApp/src/main/kotlin/de/geosphere/congregationplaner/notification/NotificationCheckWorker.kt`)
- Notification worker → Firestore repositories: checks notifications
- Shared app → App theme: applies theme (evidence: `shared/src/commonMain/kotlin/de/geosphere/congregationplaner/App.kt`)
- App theme → UI components: styles components (evidence: `uilib/src/commonMain/kotlin/de/geosphere/congregationplaner/ui/pane/ListDetailPane.kt`)
