# yyousabfouad/quiet-stacks-library architecture

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

- Interactive diagram: https://gitdiagram.com/yyousabfouad/quiet-stacks-library
- Repository: https://github.com/yyousabfouad/quiet-stacks-library

## Overview

Quiet Stacks is a browser-based library interface for member sign-up and login, catalog browsing, book purchases and loans, and librarian/member management. The main user journey runs from the authentication portal to the dashboard, where catalog actions and account views are backed by persistent LocalStorage. The graph also preserves documented interface capabilities such as the reading-stack modal, quotes, scroll navigation, and page-curl interaction. No source excerpts were provided, so relationships shown here are limited to those described in the README; implementation details beyond it are not inferred.

Main entry points: [`assets/js/app.js`](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js) (Dashboard Controller), [`dashboard.html`](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/dashboard.html) (Library Dashboard), [`index.html`](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/index.html) (Auth Portal), [`assets/js/auth.js`](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/auth.js) (Auth Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User Entry"]
  node_auth_page["Auth Portal<br/>[index.html]"]
  node_auth_controller["Auth Controller<br/>[auth.js]"]
  node_login_page["Login Redirect<br/>[login.html]"]
  node_signup_page["Signup Redirect<br/>[signup.html]"]
end

subgraph group_library["Library Experience"]
  node_dashboard_page["Library Dashboard<br/>[dashboard.html]"]
  node_dashboard_controller["Dashboard Controller<br/>[app.js]"]
  node_catalog["Catalog &amp; Search<br/>[app.js]"]
  node_book_actions["Buy &amp; Borrow<br/>[app.js]"]
  node_reading_stack["Reading Stack<br/>[app.js]"]
end

subgraph group_data["Accounts &amp; Data"]
  node_accounts[("Accounts &amp; Sessions<br/>[storage.js]")]
  node_library_records[("Books &amp; Loans<br/>[storage.js]")]
  node_statistics[("Library Statistics<br/>[storage.js]")]
end

subgraph group_interface["Interface Features"]
  node_styles["Responsive Styling<br/>[style.css]"]
  node_page_curl["Page Curl<br/>[page-curl.js]"]
  node_quotes["Literary Quotes<br/>[app.js]"]
  node_scroll_features["Scroll Controls<br/>[app.js]"]
end

node_visitor(("Visitor or Member"))

node_visitor -->|"opens portal"| node_auth_page
node_visitor -->|"opens login"| node_login_page
node_visitor -->|"opens signup"| node_signup_page
node_login_page -->|"redirects to"| node_auth_page
node_signup_page -->|"redirects to"| node_auth_page
node_auth_page -->|"supports auth"| node_auth_controller
node_auth_controller -->|"authenticates accounts"| node_accounts
node_auth_controller -->|"redirects after auth"| node_dashboard_page
node_visitor -->|"previews catalog"| node_dashboard_page
node_dashboard_page -->|"runs dashboard"| node_dashboard_controller
node_dashboard_controller -->|"renders and searches"| node_catalog
node_dashboard_controller -->|"handles book actions"| node_book_actions
node_dashboard_controller -->|"opens account modal"| node_reading_stack
node_book_actions -->|"creates loans"| node_library_records
node_book_actions -->|"stores purchases"| node_accounts
node_reading_stack -->|"shows active loans"| node_library_records
node_reading_stack -->|"returns books"| node_library_records
node_dashboard_controller -->|"updates counters"| node_statistics
node_dashboard_controller -->|"cycles excerpts"| node_quotes
node_dashboard_controller -->|"tracks scrolling"| node_scroll_features
node_dashboard_page -->|"uses styling"| node_styles
node_auth_page -->|"uses auth styling"| node_styles
node_dashboard_page -->|"provides page curl"| node_page_curl

click node_auth_page "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/index.html"
click node_auth_controller "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/auth.js"
click node_login_page "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/login.html"
click node_signup_page "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/signup.html"
click node_dashboard_page "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/dashboard.html"
click node_dashboard_controller "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js"
click node_catalog "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js"
click node_book_actions "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js"
click node_reading_stack "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js"
click node_accounts "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/storage.js"
click node_library_records "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/storage.js"
click node_statistics "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/storage.js"
click node_styles "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/css/style.css"
click node_page_curl "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/page-curl.js"
click node_quotes "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js"
click node_scroll_features "https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.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_auth_page,node_auth_controller,node_login_page,node_signup_page toneBlue
class node_dashboard_page,node_dashboard_controller,node_catalog,node_book_actions,node_reading_stack toneAmber
class node_accounts,node_library_records,node_statistics toneMint
class node_styles,node_page_curl,node_quotes,node_scroll_features toneRose
class node_visitor toneIndigo
```

## Components

### User Entry

- [Auth Portal](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/index.html): `index.html`
- [Auth Controller](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/auth.js): `assets/js/auth.js`
- [Login Redirect](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/login.html): `login.html`
- [Signup Redirect](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/signup.html): `signup.html`

### Library Experience

- [Library Dashboard](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/dashboard.html): `dashboard.html`
- [Dashboard Controller](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js): `assets/js/app.js`
- [Catalog & Search](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js): `assets/js/app.js`
- [Buy & Borrow](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js): `assets/js/app.js`
- [Reading Stack](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js): `assets/js/app.js`

### Accounts & Data

- [Accounts & Sessions](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/storage.js): `assets/js/storage.js`
- [Books & Loans](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/storage.js): `assets/js/storage.js`
- [Library Statistics](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/storage.js): `assets/js/storage.js`

### Interface Features

- [Responsive Styling](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/css/style.css): `assets/css/style.css`
- [Page Curl](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/page-curl.js): `assets/js/page-curl.js`
- [Literary Quotes](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js): `assets/js/app.js`
- [Scroll Controls](https://github.com/yyousabfouad/quiet-stacks-library/blob/main/assets/js/app.js): `assets/js/app.js`

### Other components

- **Visitor or Member**

## Connections

- Visitor or Member → Auth Portal: opens portal (evidence: `README.md`)
- Visitor or Member → Login Redirect: opens login (evidence: `README.md`)
- Visitor or Member → Signup Redirect: opens signup (evidence: `README.md`)
- Login Redirect → Auth Portal: redirects to (evidence: `README.md`)
- Signup Redirect → Auth Portal: redirects to (evidence: `README.md`)
- Auth Portal → Auth Controller: supports auth (evidence: `README.md`)
- Auth Controller → Accounts & Sessions: authenticates accounts (evidence: `README.md`)
- Auth Controller → Library Dashboard: redirects after auth (evidence: `README.md`)
- Visitor or Member → Library Dashboard: previews catalog (evidence: `README.md`)
- Library Dashboard → Dashboard Controller: runs dashboard (evidence: `README.md`)
- Dashboard Controller → Catalog & Search: renders and searches (evidence: `README.md`)
- Dashboard Controller → Buy & Borrow: handles book actions (evidence: `README.md`)
- Dashboard Controller → Reading Stack: opens account modal (evidence: `README.md`)
- Buy & Borrow → Books & Loans: creates loans (evidence: `README.md`)
- Buy & Borrow → Accounts & Sessions: stores purchases (evidence: `README.md`)
- Reading Stack → Books & Loans: shows active loans (evidence: `README.md`)
- Reading Stack → Books & Loans: returns books (evidence: `README.md`)
- Dashboard Controller → Library Statistics: updates counters (evidence: `README.md`)
- Dashboard Controller → Literary Quotes: cycles excerpts (evidence: `README.md`)
- Dashboard Controller → Scroll Controls: tracks scrolling (evidence: `README.md`)
- Library Dashboard → Responsive Styling: uses styling (evidence: `README.md`)
- Auth Portal → Responsive Styling: uses auth styling (evidence: `README.md`)
- Library Dashboard → Page Curl: provides page curl (evidence: `README.md`)
