# tejvenkatswarup2007/budget-planner architecture

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

- Interactive diagram: https://gitdiagram.com/tejvenkatswarup2007/budget-planner
- Repository: https://github.com/tejvenkatswarup2007/budget-planner

## Overview

This is a browser-based personal budgeting app with customer registration/login, transaction and savings-goal tracking, spending visualizations, and an admin view for customer and transaction oversight. The customer workflow runs from account entry through a per-customer dashboard backed by browser localStorage; administrators log in separately to review or delete customer data. Source excerpts show the main interactions, but the README is empty and dashboard.js is partial, so unsampled wiring is omitted.

Main entry points: [`dashboard.js`](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js) (Budget Dashboard), [`admin.js`](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js) (Admin Overview), [`app.js`](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js) (Sign In / Register), [`admin-login.js`](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin-login.js) (Admin Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer_access["Customer Access"]
  node_customer_entry["Sign In / Register<br/>[app.js]"]
  node_user_records[("User Records<br/>[app.js]")]
  node_customer_session["Customer Session<br/>[app.js]"]
end

subgraph group_budgeting["Budget Dashboard"]
  node_dashboard["Budget Dashboard<br/>[dashboard.js]"]
  node_transactions["Transactions<br/>[dashboard.js]"]
  node_savings_goal["Savings Goal<br/>[dashboard.js]"]
  node_budget_summary["Budget Summary<br/>[dashboard.js]"]
  node_spending_chart["Spending Charts<br/>[dashboard.js]"]
  node_budget_alert["Budget Alerts<br/>[dashboard.js]"]
end

subgraph group_administration["Administration"]
  node_admin_login["Admin Login<br/>[admin-login.js]"]
  node_admin_session["Admin Session Check<br/>[admin.js]"]
  node_admin_overview["Admin Overview<br/>[admin.js]"]
  node_customer_management["Customer Management<br/>[admin.js]"]
  node_transaction_review["Transaction Review<br/>[admin.js]"]
end

node_customer(("Customer"))
node_browser_storage[("Browser Storage")]
node_admin(("Administrator"))

node_customer -->|"enters credentials"| node_customer_entry
node_customer_entry -->|"registers or verifies"| node_user_records
node_customer_entry -->|"reads and writes"| node_browser_storage
node_customer_entry -->|"sets session"| node_customer_session
node_customer_session -->|"opens"| node_dashboard
node_dashboard -->|"loads account data"| node_browser_storage
node_dashboard -->|"handles entries"| node_transactions
node_transactions -->|"saves transactions"| node_browser_storage
node_dashboard -->|"handles goal form"| node_savings_goal
node_dashboard -->|"updates totals"| node_budget_summary
node_budget_summary -->|"updates chart"| node_spending_chart
node_budget_summary -->|"updates alert"| node_budget_alert
node_admin -->|"enters credentials"| node_admin_login
node_admin_login -->|"sets admin flag"| node_browser_storage
node_admin_login -->|"opens"| node_admin_overview
node_admin_overview -->|"checks access"| node_admin_session
node_admin_overview -->|"reads customer data"| node_browser_storage
node_admin_overview -->|"displays and deletes"| node_customer_management
node_admin_overview -->|"displays transactions"| node_transaction_review
node_customer_management -->|"deletes account data"| node_browser_storage

click node_customer_entry "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js"
click node_user_records "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js"
click node_customer_session "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js"
click node_dashboard "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js"
click node_transactions "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js"
click node_savings_goal "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js"
click node_budget_summary "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js"
click node_spending_chart "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js"
click node_budget_alert "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js"
click node_admin_login "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin-login.js"
click node_admin_session "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js"
click node_admin_overview "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js"
click node_customer_management "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js"
click node_transaction_review "https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.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_customer_entry,node_user_records,node_customer_session toneBlue
class node_dashboard,node_transactions,node_savings_goal,node_budget_summary,node_spending_chart,node_budget_alert,node_browser_storage toneAmber
class node_admin_login,node_admin_session,node_admin_overview,node_customer_management,node_transaction_review toneMint
class node_customer,node_admin toneIndigo
```

## Components

### Customer Access

- [Sign In / Register](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js): `app.js`
- [User Records](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js): `app.js`
- [Customer Session](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/app.js): `app.js`

### Budget Dashboard

- [Budget Dashboard](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js): `dashboard.js`
- [Transactions](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js): `dashboard.js`
- [Savings Goal](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js): `dashboard.js`
- [Budget Summary](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js): `dashboard.js`
- [Spending Charts](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js): `dashboard.js`
- [Budget Alerts](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/dashboard.js): `dashboard.js`

### Administration

- [Admin Login](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin-login.js): `admin-login.js`
- [Admin Session Check](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js): `admin.js`
- [Admin Overview](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js): `admin.js`
- [Customer Management](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js): `admin.js`
- [Transaction Review](https://github.com/tejvenkatswarup2007/budget-planner/blob/main/admin.js): `admin.js`

### Other components

- **Customer**
- **Browser Storage**
- **Administrator**

## Connections

- Customer → Sign In / Register: enters credentials (evidence: `app.js`)
- Sign In / Register → User Records: registers or verifies (evidence: `app.js`)
- Sign In / Register → Browser Storage: reads and writes (evidence: `app.js`)
- Sign In / Register → Customer Session: sets session (evidence: `app.js`)
- Customer Session → Budget Dashboard: opens (evidence: `app.js`)
- Budget Dashboard → Browser Storage: loads account data (evidence: `dashboard.js`)
- Budget Dashboard → Transactions: handles entries (evidence: `dashboard.js`)
- Transactions → Browser Storage: saves transactions (evidence: `dashboard.js`)
- Budget Dashboard → Savings Goal: handles goal form (evidence: `dashboard.js`)
- Budget Dashboard → Budget Summary: updates totals (evidence: `dashboard.js`)
- Budget Summary → Spending Charts: updates chart (evidence: `dashboard.js`)
- Budget Summary → Budget Alerts: updates alert (evidence: `dashboard.js`)
- Administrator → Admin Login: enters credentials (evidence: `admin-login.js`)
- Admin Login → Browser Storage: sets admin flag (evidence: `admin-login.js`)
- Admin Login → Admin Overview: opens (evidence: `admin-login.js`)
- Admin Overview → Admin Session Check: checks access (evidence: `admin.js`)
- Admin Overview → Browser Storage: reads customer data (evidence: `admin.js`)
- Admin Overview → Customer Management: displays and deletes (evidence: `admin.js`)
- Admin Overview → Transaction Review: displays transactions (evidence: `admin.js`)
- Customer Management → Browser Storage: deletes account data (evidence: `admin.js`)
