# mamunbracu/unique-12 architecture

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

- Interactive diagram: https://gitdiagram.com/mamunbracu/unique-12
- Repository: https://github.com/mamunbracu/unique-12

## Overview

Unique Twelve is a single-file finance dashboard for a 12-member savings group. Members and administrators use the dashboard to review and manage contributions, accounts, expenses, assets, reports, and group documents; administrators also handle payments, imports, identity cards, and maintenance actions. The documented deployment offers Firebase or a Google Sheets/Apps Script alternative, with browser-local demo storage and optional GitHub backups. Feature modules all point to index.html because the README describes the dashboard as one file; no source excerpts were provided, so internal call relationships are not inferred.

Main entry points: [`index.html`](https://github.com/mamunbracu/unique-12/blob/main/index.html) (Finance dashboard), [`Code.gs`](https://github.com/mamunbracu/unique-12/blob/main/Code.gs) (Apps Script backend), [`firestore.rules`](https://github.com/mamunbracu/unique-12/blob/main/firestore.rules) (Firestore rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard and access"]
  node_dashboard_app["Finance dashboard<br/>[index.html]"]
  node_access["Login and lock screen<br/>[index.html]"]
end

subgraph group_finance["Finance operations"]
  node_overview["Overview charts<br/>[index.html]"]
  node_ledger["Ledger and calendar<br/>[index.html]"]
  node_payments["Quick Pay<br/>[index.html]"]
  node_accounts["Accounts and FDR<br/>[index.html]"]
  node_expenses_assets["Expenses and assets<br/>[index.html]"]
end

subgraph group_records["Records and reporting"]
  node_reports["Reports and exports<br/>[index.html]"]
  node_member_records["Member records<br/>[index.html]"]
  node_resolution["Group resolution<br/>[index.html]"]
  node_activity["Activity and restore<br/>[index.html]"]
end

subgraph group_platform["Storage and integrations"]
  node_firestore[("Firestore")]
  node_rules["Firestore rules<br/>[firestore.rules]"]
  node_browser_store[("Browser-local data")]
  node_apps_script["Apps Script backend<br/>[Code.gs]"]
  node_sheets[("Google Sheets")]
  node_drive[("Google Drive")]
  node_github_backup[("Private GitHub backups")]
end

node_members(("Members and admins"))

node_members -->|"use"| node_dashboard_app
node_dashboard_app -->|"offers login"| node_access
node_dashboard_app -->|"stores data"| node_firestore
node_dashboard_app -->|"demo storage"| node_browser_store
node_rules -->|"sets access rules"| node_firestore
node_dashboard_app -->|"alternative backend"| node_apps_script
node_apps_script -->|"uses"| node_sheets
node_apps_script -.->|"uses"| node_drive
node_dashboard_app -->|"backs up monthly"| node_github_backup

click node_dashboard_app "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_access "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_overview "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_ledger "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_payments "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_accounts "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_expenses_assets "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_reports "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_member_records "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_resolution "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_activity "https://github.com/mamunbracu/unique-12/blob/main/index.html"
click node_rules "https://github.com/mamunbracu/unique-12/blob/main/firestore.rules"
click node_apps_script "https://github.com/mamunbracu/unique-12/blob/main/Code.gs"

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_dashboard_app,node_access toneBlue
class node_overview,node_ledger,node_payments,node_accounts,node_expenses_assets toneAmber
class node_reports,node_member_records,node_resolution,node_activity toneMint
class node_firestore,node_rules,node_browser_store,node_apps_script,node_sheets,node_drive,node_github_backup toneRose
class node_members toneIndigo
```

## Components

### Dashboard and access

- [Finance dashboard](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Login and lock screen](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`

### Finance operations

- [Overview charts](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Ledger and calendar](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Quick Pay](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Accounts and FDR](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Expenses and assets](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`

### Records and reporting

- [Reports and exports](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Member records](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Group resolution](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`
- [Activity and restore](https://github.com/mamunbracu/unique-12/blob/main/index.html): `index.html`

### Storage and integrations

- **Firestore**
- [Firestore rules](https://github.com/mamunbracu/unique-12/blob/main/firestore.rules): `firestore.rules`
- **Browser-local data**
- [Apps Script backend](https://github.com/mamunbracu/unique-12/blob/main/Code.gs): `Code.gs`
- **Google Sheets**
- **Google Drive**
- **Private GitHub backups**

### Other components

- **Members and admins**

## Connections

- Members and admins → Finance dashboard: use (evidence: `README.md`)
- Finance dashboard → Login and lock screen: offers login (evidence: `README.md`)
- Finance dashboard → Firestore: stores data (evidence: `README.md`)
- Finance dashboard → Browser-local data: demo storage (evidence: `README.md`)
- Firestore rules → Firestore: sets access rules (evidence: `README.md`)
- Finance dashboard → Apps Script backend: alternative backend (evidence: `README.md`)
- Apps Script backend → Google Sheets: uses (evidence: `README.md`)
- Apps Script backend → Google Drive: uses
- Finance dashboard → Private GitHub backups: backs up monthly (evidence: `README.md`)
