# satyasasidhar22/bfs architecture

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

- Interactive diagram: https://gitdiagram.com/satyasasidhar22/bfs
- Repository: https://github.com/satyasasidhar22/bfs

## Overview

Brotheren Fellowship is a Telugu Christian songbook and offline audio player. The app loads and filters songs, opens song details or editing forms, and plays audio; it synchronizes song metadata with Supabase while caching songs and audio locally for offline use. The main React app also provides liked-song and backup/restore controls. The source excerpts show the app’s storage and player interactions, but do not expose every UI handler or the full Supabase query flow.

Main entry points: [`brotheren-fellowship-app/src/App.jsx`](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/App.jsx) (Songbook app), [`brotheren-fellowship-app/src/db/indexedDB.js`](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/db/indexedDB.js) (IndexedDB cache), [`brotheren-fellowship-app/src/components/AudioPlayer.jsx`](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/AudioPlayer.jsx) (Audio player), [`brotheren-fellowship-app/src/main.jsx`](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/main.jsx) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Songbook experience"]
  node_app["Songbook app<br/>[App.jsx]"]
  node_player["Audio player<br/>[AudioPlayer.jsx]"]
end

subgraph group_content["Song content"]
  node_details["Song details"]
  node_songform["Song editor<br/>[SongFormModal.jsx]"]
  node_addmodal["Add-song form<br/>[AddSongModal.jsx]"]
end

subgraph group_persistence["Persistence and sync"]
  node_localdb[("IndexedDB cache<br/>[indexedDB.js]")]
  node_supabaseclient["Supabase client<br/>[supabaseClient.js]"]
  node_supabase[("Supabase service")]
end

subgraph group_platform["App support"]
  node_wake["Screen wake lock<br/>[useWakeLock.js]"]
  node_translations["Translations<br/>[translations.js]"]
  node_bootstrap["App bootstrap<br/>[main.jsx]"]
end

node_user(("Listener"))

node_user -->|"uses"| node_app
node_bootstrap -->|"renders"| node_app
node_bootstrap -->|"seeds songs"| node_localdb
node_app -->|"reads and caches"| node_localdb
node_app -->|"queries"| node_supabaseclient
node_supabaseclient -->|"connects"| node_supabase
node_app -->|"opens"| node_details
node_app -->|"opens"| node_songform
node_app -->|"opens"| node_player
node_songform -->|"uses letter helpers"| node_localdb
node_addmodal -->|"uses letter helpers"| node_localdb
node_player -->|"loads and saves audio"| node_localdb
node_player -.->|"requests via props"| node_wake
node_app -->|"loads text"| node_translations

click node_app "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/App.jsx"
click node_details "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/SongDetailsModal.jsx"
click node_songform "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/SongFormModal.jsx"
click node_addmodal "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/AddSongModal.jsx"
click node_player "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/AudioPlayer.jsx"
click node_localdb "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/db/indexedDB.js"
click node_supabaseclient "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/supabaseClient.js"
click node_wake "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/hooks/useWakeLock.js"
click node_translations "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/utils/translations.js"
click node_bootstrap "https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/main.jsx"

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_player toneBlue
class node_details,node_songform,node_addmodal toneAmber
class node_localdb,node_supabaseclient,node_supabase toneMint
class node_wake,node_translations,node_bootstrap toneRose
class node_user toneIndigo
```

## Components

### Songbook experience

- [Songbook app](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/App.jsx): `brotheren-fellowship-app/src/App.jsx`
- [Audio player](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/AudioPlayer.jsx): `brotheren-fellowship-app/src/components/AudioPlayer.jsx`

### Song content

- [Song details](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/SongDetailsModal.jsx): `brotheren-fellowship-app/src/components/SongDetailsModal.jsx`
- [Song editor](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/SongFormModal.jsx): `brotheren-fellowship-app/src/components/SongFormModal.jsx`
- [Add-song form](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/components/AddSongModal.jsx): `brotheren-fellowship-app/src/components/AddSongModal.jsx`

### Persistence and sync

- [IndexedDB cache](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/db/indexedDB.js): `brotheren-fellowship-app/src/db/indexedDB.js`
- [Supabase client](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/supabaseClient.js): `brotheren-fellowship-app/src/supabaseClient.js`
- **Supabase service**

### App support

- [Screen wake lock](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/hooks/useWakeLock.js): `brotheren-fellowship-app/src/hooks/useWakeLock.js`
- [Translations](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/utils/translations.js): `brotheren-fellowship-app/src/utils/translations.js`
- [App bootstrap](https://github.com/satyasasidhar22/bfs/blob/main/brotheren-fellowship-app/src/main.jsx): `brotheren-fellowship-app/src/main.jsx`

### Other components

- **Listener**

## Connections

- Listener → Songbook app: uses
- App bootstrap → Songbook app: renders (evidence: `brotheren-fellowship-app/src/main.jsx`)
- App bootstrap → IndexedDB cache: seeds songs (evidence: `brotheren-fellowship-app/src/main.jsx`)
- Songbook app → IndexedDB cache: reads and caches (evidence: `brotheren-fellowship-app/src/App.jsx`)
- Songbook app → Supabase client: queries (evidence: `brotheren-fellowship-app/src/App.jsx`)
- Supabase client → Supabase service: connects (evidence: `brotheren-fellowship-app/src/supabaseClient.js`)
- Songbook app → Song details: opens (evidence: `brotheren-fellowship-app/src/App.jsx`)
- Songbook app → Song editor: opens (evidence: `brotheren-fellowship-app/src/App.jsx`)
- Songbook app → Audio player: opens (evidence: `brotheren-fellowship-app/src/App.jsx`)
- Song editor → IndexedDB cache: uses letter helpers (evidence: `brotheren-fellowship-app/src/components/SongFormModal.jsx`)
- Add-song form → IndexedDB cache: uses letter helpers (evidence: `brotheren-fellowship-app/src/components/AddSongModal.jsx`)
- Audio player → IndexedDB cache: loads and saves audio (evidence: `brotheren-fellowship-app/src/components/AudioPlayer.jsx`)
- Audio player → Screen wake lock: requests via props
- Songbook app → Translations: loads text (evidence: `brotheren-fellowship-app/src/App.jsx`)
