# saivinay1306/fuzion architecture

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

- Interactive diagram: https://gitdiagram.com/saivinay1306/fuzion
- Repository: https://github.com/saivinay1306/fuzion

## Overview

Fuzion is a browser-based salon booking and management app. Customers can browse salon services and book appointments; the app also supports owner-facing booking management, while authentication provides customer and owner account flows. Salon services, stylists, and configuration have defaults in a separate data module. The excerpts show browser storage and Google sign-in, plus a network-first service worker cache. The README is minimal, and the app excerpt is partial, so connections between its broader features and unsampled modules are not asserted.

Main entry points: [`js/app.js`](https://github.com/saivinay1306/fuzion/blob/main/js/app.js) (Booking & Owner Tools), [`js/auth.js`](https://github.com/saivinay1306/fuzion/blob/main/js/auth.js) (Authentication), [`sw.js`](https://github.com/saivinay1306/fuzion/blob/main/sw.js) (Offline Cache), [`js/data.js`](https://github.com/saivinay1306/fuzion/blob/main/js/data.js) (Salon Catalog & Defaults)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Salon App"]
  node_salon_app["Booking &amp; Owner Tools<br/>[app.js]"]
  node_auth["Authentication<br/>[auth.js]"]
  node_salon_data["Salon Catalog &amp; Defaults<br/>[data.js]"]
end

subgraph group_platform["Browser Services"]
  node_browser_storage[("Local Storage")]
  node_google_identity["Google Identity Services"]
  node_service_worker["Offline Cache<br/>[sw.js]"]
end

node_customer(("Customer"))
node_owner(("Salon Owner"))
node_network["Network"]

node_customer -->|"books appointments"| node_salon_app
node_owner -->|"manages bookings"| node_salon_app
node_salon_app -->|"saves bookings"| node_browser_storage
node_salon_app -.-> node_salon_data
node_auth -->|"stores users"| node_browser_storage
node_auth -->|"signs in with"| node_google_identity
node_service_worker -->|"fetches requests"| node_network
node_service_worker -->|"caches responses"| node_browser_storage

click node_salon_app "https://github.com/saivinay1306/fuzion/blob/main/js/app.js"
click node_auth "https://github.com/saivinay1306/fuzion/blob/main/js/auth.js"
click node_salon_data "https://github.com/saivinay1306/fuzion/blob/main/js/data.js"
click node_service_worker "https://github.com/saivinay1306/fuzion/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_salon_app,node_auth,node_salon_data toneBlue
class node_browser_storage,node_google_identity,node_service_worker toneAmber
class node_customer,node_owner,node_network toneIndigo
```

## Components

### Salon App

- [Booking & Owner Tools](https://github.com/saivinay1306/fuzion/blob/main/js/app.js): `js/app.js`
- [Authentication](https://github.com/saivinay1306/fuzion/blob/main/js/auth.js): `js/auth.js`
- [Salon Catalog & Defaults](https://github.com/saivinay1306/fuzion/blob/main/js/data.js): `js/data.js`

### Browser Services

- **Local Storage**
- **Google Identity Services**
- [Offline Cache](https://github.com/saivinay1306/fuzion/blob/main/sw.js): `sw.js`

### Other components

- **Customer**
- **Salon Owner**
- **Network**

## Connections

- Customer → Booking & Owner Tools: books appointments (evidence: `js/app.js`)
- Salon Owner → Booking & Owner Tools: manages bookings (evidence: `js/app.js`)
- Booking & Owner Tools → Local Storage: saves bookings (evidence: `js/app.js`)
- Booking & Owner Tools → Salon Catalog & Defaults
- Authentication → Local Storage: stores users (evidence: `js/auth.js`)
- Authentication → Google Identity Services: signs in with (evidence: `js/auth.js`)
- Offline Cache → Network: fetches requests (evidence: `sw.js`)
- Offline Cache → Local Storage: caches responses (evidence: `sw.js`)
