# beast-lucifer-666/volt-web architecture

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

- Interactive diagram: https://gitdiagram.com/beast-lucifer-666/volt-web
- Repository: https://github.com/beast-lucifer-666/volt-web

## Overview

VOLT is a smart-home energy monitoring and relay-control React app. Users authenticate, configure a profile/device, then monitor live readings and alerts, inspect analytics, and control relays, including an emergency all-off action. The tree contains two parallel source trees (`src/` and `react-app/src/`); the sampled code shows matching architecture, so both are represented. Firebase is the documented-in-code backend. The README is empty, and unsampled tab implementations are included by their source paths; their internal behavior and data links are not inferred.

Main entry points: [`src/App.jsx`](https://github.com/beast-lucifer-666/volt-web/blob/main/src/App.jsx) (App shell), [`react-app/src/App.jsx`](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/App.jsx) (App shell copy), [`src/firebase.js`](https://github.com/beast-lucifer-666/volt-web/blob/main/src/firebase.js) (Firebase client), [`react-app/src/firebase.js`](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/firebase.js) (Firebase client copy)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_shell["App shell<br/>[App.jsx]"]
  node_shell2["App shell copy<br/>[App.jsx]"]
end

subgraph group_identity["Identity and setup"]
  node_authui["Sign-in and registration<br/>[AuthModal.jsx]"]
  node_setup["Device setup<br/>[SetupWizard.jsx]"]
  node_profile["Profile settings<br/>[ProfileModal.jsx]"]
  node_authui2["Sign-in and registration copy<br/>[AuthModal.jsx]"]
  node_setup2["Device setup copy<br/>[SetupWizard.jsx]"]
  node_profile2["Profile settings copy<br/>[ProfileModal.jsx]"]
end

subgraph group_monitor["Monitoring"]
  node_home["Home dashboard<br/>[HomeTab.jsx]"]
  node_analytics["Energy analytics<br/>[AnalyticsTab.jsx]"]
  node_alerts["Alerts<br/>[AlertsTab.jsx]"]
  node_home2["Home dashboard copy<br/>[HomeTab.jsx]"]
  node_analytics2["Energy analytics copy<br/>[AnalyticsTab.jsx]"]
  node_alerts2["Alerts copy<br/>[AlertsTab.jsx]"]
end

subgraph group_control["Relay control"]
  node_relays["Relay controls<br/>[RelaysTab.jsx]"]
  node_kill["Emergency shutoff<br/>[KillAllModal.jsx]"]
  node_relays2["Relay controls copy<br/>[RelaysTab.jsx]"]
  node_kill2["Emergency shutoff copy<br/>[KillAllModal.jsx]"]
end

subgraph group_shared["Shared services"]
  node_firebase["Firebase client<br/>[firebase.js]"]
  node_authsvc["Firebase Authentication"]
  node_database[("Firebase Realtime Database")]
  node_audio["Alert chimes<br/>[audio.js]"]
  node_icons["Interface icons<br/>[Icons.jsx]"]
  node_firebase2["Firebase client copy<br/>[firebase.js]"]
  node_audio2["Alert chimes copy<br/>[audio.js]"]
  node_icons2["Interface icons copy<br/>[Icons.jsx]"]
end

node_user(("Home user"))

node_user -->|"uses"| node_shell
node_shell -->|"renders"| node_authui
node_shell -->|"renders"| node_setup
node_shell -->|"renders"| node_profile
node_shell -->|"renders"| node_home
node_shell -->|"renders"| node_analytics
node_shell -->|"renders"| node_alerts
node_shell -->|"renders"| node_relays
node_shell -->|"renders"| node_kill
node_shell -->|"reads live data"| node_firebase
node_shell -->|"plays alerts"| node_audio
node_authui -->|"calls auth"| node_firebase
node_setup -->|"updates setup"| node_firebase
node_profile -->|"updates profile"| node_firebase
node_firebase -->|"auth operations"| node_authsvc
node_firebase -->|"reads and writes"| node_database
node_alerts -->|"plays chimes"| node_audio
node_home -->|"renders icons"| node_icons
node_analytics -->|"renders icons"| node_icons
node_alerts -->|"renders icons"| node_icons
node_relays -->|"renders icons"| node_icons
node_shell2 -->|"renders"| node_authui2
node_shell2 -->|"renders"| node_setup2
node_shell2 -->|"renders"| node_profile2
node_shell2 -->|"renders"| node_home2
node_shell2 -->|"renders"| node_analytics2
node_shell2 -->|"renders"| node_alerts2
node_shell2 -->|"renders"| node_relays2
node_shell2 -->|"renders"| node_kill2
node_shell2 -->|"reads live data"| node_firebase2
node_shell2 -->|"plays alerts"| node_audio2
node_authui2 -->|"calls auth"| node_firebase2
node_setup2 -->|"updates setup"| node_firebase2
node_profile2 -->|"updates profile"| node_firebase2
node_firebase2 -->|"auth operations"| node_authsvc
node_firebase2 -->|"reads and writes"| node_database
node_alerts2 -->|"plays chimes"| node_audio2
node_home2 -->|"renders icons"| node_icons2
node_analytics2 -->|"renders icons"| node_icons2
node_alerts2 -->|"renders icons"| node_icons2
node_relays2 -->|"renders icons"| node_icons2

click node_shell "https://github.com/beast-lucifer-666/volt-web/blob/main/src/App.jsx"
click node_authui "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/AuthModal.jsx"
click node_setup "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/SetupWizard.jsx"
click node_profile "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/ProfileModal.jsx"
click node_home "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/HomeTab.jsx"
click node_analytics "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/AnalyticsTab.jsx"
click node_alerts "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/AlertsTab.jsx"
click node_relays "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/RelaysTab.jsx"
click node_kill "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/KillAllModal.jsx"
click node_firebase "https://github.com/beast-lucifer-666/volt-web/blob/main/src/firebase.js"
click node_audio "https://github.com/beast-lucifer-666/volt-web/blob/main/src/utils/audio.js"
click node_icons "https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/Icons.jsx"
click node_shell2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/App.jsx"
click node_authui2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/AuthModal.jsx"
click node_setup2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/SetupWizard.jsx"
click node_profile2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/ProfileModal.jsx"
click node_home2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/HomeTab.jsx"
click node_analytics2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/AnalyticsTab.jsx"
click node_alerts2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/AlertsTab.jsx"
click node_relays2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/RelaysTab.jsx"
click node_kill2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/KillAllModal.jsx"
click node_firebase2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/firebase.js"
click node_audio2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/utils/audio.js"
click node_icons2 "https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/Icons.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_shell,node_shell2,node_user toneBlue
class node_authui,node_setup,node_profile,node_authui2,node_setup2,node_profile2 toneAmber
class node_home,node_analytics,node_alerts,node_home2,node_analytics2,node_alerts2 toneMint
class node_relays,node_kill,node_relays2,node_kill2 toneRose
class node_firebase,node_authsvc,node_database,node_audio,node_icons,node_firebase2,node_audio2,node_icons2 toneIndigo
```

## Components

### Application shell

- [App shell](https://github.com/beast-lucifer-666/volt-web/blob/main/src/App.jsx): `src/App.jsx`
- [App shell copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/App.jsx): `react-app/src/App.jsx`

### Identity and setup

- [Sign-in and registration](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/AuthModal.jsx): `src/components/AuthModal.jsx`
- [Device setup](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/SetupWizard.jsx): `src/components/SetupWizard.jsx`
- [Profile settings](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/ProfileModal.jsx): `src/components/ProfileModal.jsx`
- [Sign-in and registration copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/AuthModal.jsx): `react-app/src/components/AuthModal.jsx`
- [Device setup copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/SetupWizard.jsx): `react-app/src/components/SetupWizard.jsx`
- [Profile settings copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/ProfileModal.jsx): `react-app/src/components/ProfileModal.jsx`

### Monitoring

- [Home dashboard](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/HomeTab.jsx): `src/components/HomeTab.jsx`
- [Energy analytics](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/AnalyticsTab.jsx): `src/components/AnalyticsTab.jsx`
- [Alerts](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/AlertsTab.jsx): `src/components/AlertsTab.jsx`
- [Home dashboard copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/HomeTab.jsx): `react-app/src/components/HomeTab.jsx`
- [Energy analytics copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/AnalyticsTab.jsx): `react-app/src/components/AnalyticsTab.jsx`
- [Alerts copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/AlertsTab.jsx): `react-app/src/components/AlertsTab.jsx`

### Relay control

- [Relay controls](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/RelaysTab.jsx): `src/components/RelaysTab.jsx`
- [Emergency shutoff](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/KillAllModal.jsx): `src/components/KillAllModal.jsx`
- [Relay controls copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/RelaysTab.jsx): `react-app/src/components/RelaysTab.jsx`
- [Emergency shutoff copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/KillAllModal.jsx): `react-app/src/components/KillAllModal.jsx`

### Shared services

- [Firebase client](https://github.com/beast-lucifer-666/volt-web/blob/main/src/firebase.js): `src/firebase.js`
- **Firebase Authentication**
- **Firebase Realtime Database**
- [Alert chimes](https://github.com/beast-lucifer-666/volt-web/blob/main/src/utils/audio.js): `src/utils/audio.js`
- [Interface icons](https://github.com/beast-lucifer-666/volt-web/blob/main/src/components/Icons.jsx): `src/components/Icons.jsx`
- [Firebase client copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/firebase.js): `react-app/src/firebase.js`
- [Alert chimes copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/utils/audio.js): `react-app/src/utils/audio.js`
- [Interface icons copy](https://github.com/beast-lucifer-666/volt-web/blob/main/react-app/src/components/Icons.jsx): `react-app/src/components/Icons.jsx`

### Other components

- **Home user**

## Connections

- Home user → App shell: uses
- App shell → Sign-in and registration: renders (evidence: `src/App.jsx`)
- App shell → Device setup: renders (evidence: `src/App.jsx`)
- App shell → Profile settings: renders (evidence: `src/App.jsx`)
- App shell → Home dashboard: renders (evidence: `src/App.jsx`)
- App shell → Energy analytics: renders (evidence: `src/App.jsx`)
- App shell → Alerts: renders (evidence: `src/App.jsx`)
- App shell → Relay controls: renders (evidence: `src/App.jsx`)
- App shell → Emergency shutoff: renders (evidence: `src/App.jsx`)
- App shell → Firebase client: reads live data (evidence: `src/App.jsx`)
- App shell → Alert chimes: plays alerts (evidence: `src/App.jsx`)
- Sign-in and registration → Firebase client: calls auth (evidence: `src/components/AuthModal.jsx`)
- Device setup → Firebase client: updates setup (evidence: `src/components/SetupWizard.jsx`)
- Profile settings → Firebase client: updates profile (evidence: `src/components/ProfileModal.jsx`)
- Firebase client → Firebase Authentication: auth operations (evidence: `src/firebase.js`)
- Firebase client → Firebase Realtime Database: reads and writes (evidence: `src/firebase.js`)
- Alerts → Alert chimes: plays chimes (evidence: `src/components/AlertsTab.jsx`)
- Home dashboard → Interface icons: renders icons (evidence: `src/components/HomeTab.jsx`)
- Energy analytics → Interface icons: renders icons (evidence: `src/components/AnalyticsTab.jsx`)
- Alerts → Interface icons: renders icons (evidence: `src/components/AlertsTab.jsx`)
- Relay controls → Interface icons: renders icons (evidence: `src/components/RelaysTab.jsx`)
- App shell copy → Sign-in and registration copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Device setup copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Profile settings copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Home dashboard copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Energy analytics copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Alerts copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Relay controls copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Emergency shutoff copy: renders (evidence: `react-app/src/App.jsx`)
- App shell copy → Firebase client copy: reads live data (evidence: `react-app/src/App.jsx`)
- App shell copy → Alert chimes copy: plays alerts (evidence: `react-app/src/App.jsx`)
- Sign-in and registration copy → Firebase client copy: calls auth (evidence: `react-app/src/components/AuthModal.jsx`)
- Device setup copy → Firebase client copy: updates setup (evidence: `react-app/src/components/SetupWizard.jsx`)
- Profile settings copy → Firebase client copy: updates profile (evidence: `react-app/src/components/ProfileModal.jsx`)
- Firebase client copy → Firebase Authentication: auth operations (evidence: `react-app/src/firebase.js`)
- Firebase client copy → Firebase Realtime Database: reads and writes (evidence: `react-app/src/firebase.js`)
- Alerts copy → Alert chimes copy: plays chimes (evidence: `react-app/src/components/AlertsTab.jsx`)
- Home dashboard copy → Interface icons copy: renders icons (evidence: `react-app/src/components/HomeTab.jsx`)
- Energy analytics copy → Interface icons copy: renders icons (evidence: `react-app/src/components/AnalyticsTab.jsx`)
- Alerts copy → Interface icons copy: renders icons (evidence: `react-app/src/components/AlertsTab.jsx`)
- Relay controls copy → Interface icons copy: renders icons (evidence: `react-app/src/components/RelaysTab.jsx`)
