# henri1107/callroom architecture

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

## Overview

Callroom is a progressive web app for coordinating a fencing tournament’s callroom and organization. Users sign in, select or join an event, and work with tournament data such as entrants, bouts, schedules, and callroom readiness; shared event state is synchronized through Firebase. The README documents role-specific views and administration, while the excerpts show XML loading, Firebase synchronization, and offline caching. Several product screens are documented but their specific implementation details are not present in the sampled source.

Main entry points: [`app.js`](https://github.com/henri1107/callroom/blob/main/app.js) (Callroom App), [`index.html`](https://github.com/henri1107/callroom/blob/main/index.html) (PWA Shell), [`sw.js`](https://github.com/henri1107/callroom/blob/main/sw.js) (Offline Cache), [`firebase-config.js`](https://github.com/henri1107/callroom/blob/main/firebase-config.js) (Firebase Services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Events"]
  node_app["Callroom App<br/>[app.js]"]
  node_auth["Sign-in and Roles<br/>[app.js]"]
  node_event["Event Connection<br/>[app.js]"]
  node_settings["Tournament Settings<br/>[app.js]"]
end

subgraph group_tournament["Tournament Operations"]
  node_roster["Entrant Import<br/>[app.js]"]
  node_xml["Fencer XML<br/>[fencers.xml]"]
  node_bracket["Tableau and Bracket<br/>[app.js]"]
  node_schedule["Schedule and Timer<br/>[app.js]"]
  node_callroom["Callroom Readiness<br/>[app.js]"]
  node_officials["Officials Overview<br/>[app.js]"]
  node_missing["Missing Fencers<br/>[app.js]"]
end

subgraph group_sync["Shared Data"]
  node_sync["Event Synchronization<br/>[app.js]"]
  node_firebase[("Firebase Services<br/>[firebase-config.js]")]
end

subgraph group_runtime["App Runtime"]
  node_shell["PWA Shell<br/>[index.html]"]
  node_offline["Offline Cache<br/>[sw.js]"]
end

node_user(("Tournament User"))
node_firebase_service[("Firebase Platform")]

node_user -->|"uses"| node_app
node_app -->|"provides"| node_auth
node_app -->|"provides"| node_event
node_app -->|"provides"| node_settings
node_app -->|"provides"| node_roster
node_roster -->|"loads"| node_xml
node_app -->|"provides"| node_bracket
node_app -->|"provides"| node_schedule
node_app -->|"provides"| node_callroom
node_app -->|"provides"| node_officials
node_app -->|"provides"| node_missing
node_app -->|"synchronizes"| node_sync
node_firebase -->|"initializes"| node_firebase_service
node_sync -->|"reads and writes"| node_firebase_service
node_shell -.->|"runs with"| node_offline
node_offline -->|"caches assets"| node_shell

click node_app "https://github.com/henri1107/callroom/blob/main/app.js"
click node_auth "https://github.com/henri1107/callroom/blob/main/app.js"
click node_event "https://github.com/henri1107/callroom/blob/main/app.js"
click node_settings "https://github.com/henri1107/callroom/blob/main/app.js"
click node_roster "https://github.com/henri1107/callroom/blob/main/app.js"
click node_xml "https://github.com/henri1107/callroom/blob/main/fencers.xml"
click node_bracket "https://github.com/henri1107/callroom/blob/main/app.js"
click node_schedule "https://github.com/henri1107/callroom/blob/main/app.js"
click node_callroom "https://github.com/henri1107/callroom/blob/main/app.js"
click node_officials "https://github.com/henri1107/callroom/blob/main/app.js"
click node_missing "https://github.com/henri1107/callroom/blob/main/app.js"
click node_sync "https://github.com/henri1107/callroom/blob/main/app.js"
click node_firebase "https://github.com/henri1107/callroom/blob/main/firebase-config.js"
click node_shell "https://github.com/henri1107/callroom/blob/main/index.html"
click node_offline "https://github.com/henri1107/callroom/blob/main/sw.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_app,node_auth,node_event,node_settings,node_user toneBlue
class node_roster,node_xml,node_bracket,node_schedule,node_callroom,node_officials,node_missing,node_firebase_service toneAmber
class node_sync,node_firebase toneMint
class node_shell,node_offline toneRose
```

## Components

### Access and Events

- [Callroom App](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Sign-in and Roles](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Event Connection](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Tournament Settings](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`

### Tournament Operations

- [Entrant Import](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Fencer XML](https://github.com/henri1107/callroom/blob/main/fencers.xml): `fencers.xml`
- [Tableau and Bracket](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Schedule and Timer](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Callroom Readiness](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Officials Overview](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Missing Fencers](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`

### Shared Data

- [Event Synchronization](https://github.com/henri1107/callroom/blob/main/app.js): `app.js`
- [Firebase Services](https://github.com/henri1107/callroom/blob/main/firebase-config.js): `firebase-config.js`

### App Runtime

- [PWA Shell](https://github.com/henri1107/callroom/blob/main/index.html): `index.html`
- [Offline Cache](https://github.com/henri1107/callroom/blob/main/sw.js): `sw.js`

### Other components

- **Tournament User**
- **Firebase Platform**

## Connections

- Tournament User → Callroom App: uses (evidence: `README.md`)
- Callroom App → Sign-in and Roles: provides (evidence: `README.md`)
- Callroom App → Event Connection: provides (evidence: `README.md`)
- Callroom App → Tournament Settings: provides (evidence: `README.md`)
- Callroom App → Entrant Import: provides (evidence: `README.md`)
- Entrant Import → Fencer XML: loads (evidence: `app.js`)
- Callroom App → Tableau and Bracket: provides (evidence: `README.md`)
- Callroom App → Schedule and Timer: provides (evidence: `README.md`)
- Callroom App → Callroom Readiness: provides (evidence: `README.md`)
- Callroom App → Officials Overview: provides (evidence: `README.md`)
- Callroom App → Missing Fencers: provides (evidence: `README.md`)
- Callroom App → Event Synchronization: synchronizes (evidence: `app.js`)
- Firebase Services → Firebase Platform: initializes (evidence: `firebase-config.js`)
- Event Synchronization → Firebase Platform: reads and writes (evidence: `app.js`)
- PWA Shell → Offline Cache: runs with
- Offline Cache → PWA Shell: caches assets (evidence: `sw.js`)
