# markebora/precenter architecture

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

- Interactive diagram: https://gitdiagram.com/markebora/precenter
- Repository: https://github.com/markebora/precenter

## Overview

Disciples PreCenter is church-service presentation software delivered as an Electron desktop app. The presenter works in the app to prepare and run songs, Bible passages, announcements, timers, messages, and media; the app provides audience and stage screens. Separate desktop capabilities include saving/opening files, Wi-Fi remote control and broadcast pages, NDI video output, and account sign-in/library-settings sync. The renderer implementation and several integrations are not excerpted, so those capabilities are represented at their supported paths; unverified links are omitted or dashed.

Main entry points: [`precenter-desktop/main.js`](https://github.com/markebora/precenter/blob/main/precenter-desktop/main.js) (Electron shell), [`precenter-desktop/app/index.html`](https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html) (Service workspace), [`precenter-desktop/lib/appupdate.js`](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/appupdate.js) (App updater), [`precenter-desktop/lib/lanserver.js`](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/lanserver.js) (Wi-Fi remote server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Service presentation"]
  node_renderer["Service workspace<br/>[index.html]"]
  node_songs["Songs and library<br/>[index.html]"]
  node_bible["Bible passages"]
  node_service_content["Service content<br/>[index.html]"]
  node_audience_stage["Audience and stage<br/>[index.html]"]
end

subgraph group_desktop["Desktop runtime"]
  node_shell["Electron shell<br/>[main.js]"]
  node_save_files["Service file saving<br/>[savebridge.js]"]
  node_link_bridge["WebSocket link bridge<br/>[linkbridge.js]"]
  node_app_updates["App updater<br/>[appupdate.js]"]
end

subgraph group_remote["Remote and broadcast"]
  node_lan_server["Wi-Fi remote server<br/>[lanserver.js]"]
  node_phone_page["Phone remote page<br/>[lanpage.js]"]
  node_lan_pages["Remote and broadcast pages"]
end

subgraph group_integrations["External integrations"]
  node_ndi_manager["NDI screen manager<br/>[manager.js]"]
  node_ndi_sender["NDI video sender<br/>[sender.js]"]
  node_account_sync["Account and team sync<br/>[index.html]"]
  node_firebase[("Firebase service")]
  node_update_service["GitHub Releases"]
end

subgraph group_support["Runtime support"]
  node_config["App configuration<br/>[config.js]"]
  node_url_policy["URL policy<br/>[urls.js]"]
  node_file_access["App file access<br/>[files.js]"]
  node_permissions["Permission checks<br/>[permissions.js]"]
  node_logging["Runtime logging<br/>[log.js]"]
end

node_presenter(("Presenter"))

node_presenter -->|"starts app"| node_shell
node_shell -->|"loads workspace"| node_renderer
node_shell -->|"loads settings"| node_config
node_shell -->|"creates policy"| node_url_policy
node_shell -->|"serves app files"| node_file_access
node_shell -->|"checks permissions"| node_permissions
node_renderer -.->|"manages library"| node_songs
node_renderer -.->|"presents passages"| node_bible
node_renderer -.->|"prepares service"| node_service_content
node_renderer -.->|"shows screens"| node_audience_stage
node_shell -->|"registers saving"| node_save_files
node_shell -->|"registers links"| node_link_bridge
node_shell -->|"starts remote server"| node_lan_server
node_shell -->|"configures page updates"| node_phone_page
node_shell -->|"syncs screen outputs"| node_ndi_manager
node_ndi_manager -->|"creates video stream"| node_ndi_sender
node_lan_server -.->|"serves remote pages"| node_lan_pages
node_phone_page -->|"builds phone page"| node_lan_pages
node_renderer -->|"provides sign-in and sync"| node_account_sync
node_account_sync -->|"syncs team data"| node_firebase
node_shell -->|"starts updater"| node_app_updates
node_app_updates -->|"checks releases"| node_update_service
node_shell -->|"records runtime events"| node_logging

click node_shell "https://github.com/markebora/precenter/blob/main/precenter-desktop/main.js"
click node_renderer "https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html"
click node_songs "https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html"
click node_bible "https://github.com/markebora/precenter/tree/main/bible"
click node_service_content "https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html"
click node_audience_stage "https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html"
click node_config "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/config.js"
click node_url_policy "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/urls.js"
click node_file_access "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/files.js"
click node_permissions "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/permissions.js"
click node_save_files "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/savebridge.js"
click node_link_bridge "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/linkbridge.js"
click node_lan_server "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/lanserver.js"
click node_phone_page "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/lanpage.js"
click node_lan_pages "https://github.com/markebora/precenter/tree/main/precenter-desktop/lan"
click node_ndi_manager "https://github.com/markebora/precenter/blob/main/precenter-desktop/ndi/manager.js"
click node_ndi_sender "https://github.com/markebora/precenter/blob/main/precenter-desktop/ndi/sender.js"
click node_account_sync "https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html"
click node_app_updates "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/appupdate.js"
click node_logging "https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/log.js"

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_renderer,node_songs,node_bible,node_service_content,node_audience_stage toneBlue
class node_shell,node_save_files,node_link_bridge,node_app_updates toneAmber
class node_lan_server,node_phone_page,node_lan_pages toneMint
class node_ndi_manager,node_ndi_sender,node_account_sync,node_firebase,node_update_service toneRose
class node_config,node_url_policy,node_file_access,node_permissions,node_logging,node_presenter toneIndigo
```

## Components

### Service presentation

- [Service workspace](https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html): `precenter-desktop/app/index.html`
- [Songs and library](https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html): `precenter-desktop/app/index.html`
- [Bible passages](https://github.com/markebora/precenter/tree/main/bible): `bible`
- [Service content](https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html): `precenter-desktop/app/index.html`
- [Audience and stage](https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html): `precenter-desktop/app/index.html`

### Desktop runtime

- [Electron shell](https://github.com/markebora/precenter/blob/main/precenter-desktop/main.js): `precenter-desktop/main.js`
- [Service file saving](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/savebridge.js): `precenter-desktop/lib/savebridge.js`
- [WebSocket link bridge](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/linkbridge.js): `precenter-desktop/lib/linkbridge.js`
- [App updater](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/appupdate.js): `precenter-desktop/lib/appupdate.js`

### Remote and broadcast

- [Wi-Fi remote server](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/lanserver.js): `precenter-desktop/lib/lanserver.js`
- [Phone remote page](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/lanpage.js): `precenter-desktop/lib/lanpage.js`
- [Remote and broadcast pages](https://github.com/markebora/precenter/tree/main/precenter-desktop/lan): `precenter-desktop/lan`

### External integrations

- [NDI screen manager](https://github.com/markebora/precenter/blob/main/precenter-desktop/ndi/manager.js): `precenter-desktop/ndi/manager.js`
- [NDI video sender](https://github.com/markebora/precenter/blob/main/precenter-desktop/ndi/sender.js): `precenter-desktop/ndi/sender.js`
- [Account and team sync](https://github.com/markebora/precenter/blob/main/precenter-desktop/app/index.html): `precenter-desktop/app/index.html`
- **Firebase service**
- **GitHub Releases**

### Runtime support

- [App configuration](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/config.js): `precenter-desktop/lib/config.js`
- [URL policy](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/urls.js): `precenter-desktop/lib/urls.js`
- [App file access](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/files.js): `precenter-desktop/lib/files.js`
- [Permission checks](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/permissions.js): `precenter-desktop/lib/permissions.js`
- [Runtime logging](https://github.com/markebora/precenter/blob/main/precenter-desktop/lib/log.js): `precenter-desktop/lib/log.js`

### Other components

- **Presenter**

## Connections

- Presenter → Electron shell: starts app (evidence: `README.md`)
- Electron shell → Service workspace: loads workspace (evidence: `precenter-desktop/main.js`)
- Electron shell → App configuration: loads settings (evidence: `precenter-desktop/main.js`)
- Electron shell → URL policy: creates policy (evidence: `precenter-desktop/main.js`)
- Electron shell → App file access: serves app files (evidence: `precenter-desktop/main.js`)
- Electron shell → Permission checks: checks permissions (evidence: `precenter-desktop/main.js`)
- Service workspace → Songs and library: manages library
- Service workspace → Bible passages: presents passages
- Service workspace → Service content: prepares service
- Service workspace → Audience and stage: shows screens
- Electron shell → Service file saving: registers saving (evidence: `precenter-desktop/main.js`)
- Electron shell → WebSocket link bridge: registers links (evidence: `precenter-desktop/main.js`)
- Electron shell → Wi-Fi remote server: starts remote server (evidence: `precenter-desktop/main.js`)
- Electron shell → Phone remote page: configures page updates (evidence: `precenter-desktop/main.js`)
- Electron shell → NDI screen manager: syncs screen outputs (evidence: `precenter-desktop/main.js`)
- NDI screen manager → NDI video sender: creates video stream (evidence: `precenter-desktop/ndi/manager.js`)
- Wi-Fi remote server → Remote and broadcast pages: serves remote pages
- Phone remote page → Remote and broadcast pages: builds phone page (evidence: `precenter-desktop/lib/lanpage.js`)
- Service workspace → Account and team sync: provides sign-in and sync (evidence: `README.md`)
- Account and team sync → Firebase service: syncs team data (evidence: `README.md`)
- Electron shell → App updater: starts updater (evidence: `precenter-desktop/main.js`)
- App updater → GitHub Releases: checks releases (evidence: `precenter-desktop/lib/appupdate.js`)
- Electron shell → Runtime logging: records runtime events (evidence: `precenter-desktop/main.js`)
