# tvk353/budgetly architecture

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

- Interactive diagram: https://gitdiagram.com/tvk353/budgetly
- Repository: https://github.com/tvk353/budgetly

## Overview

Budgetly is a household-finance web app whose visible workflow is navigating to the household dashboard and related budget, transaction, savings, and tracker views, which present date-aware summaries and mock financial records. Workspace selection, sign-in, and email verification form a separate access/onboarding branch; personal workspace is currently a placeholder. The source evidence indicates mock-data-backed behavior rather than a connected persistence service. Several capabilities are identified by module names and the UI excerpts, but their full implementations were not sampled.

Main entry points: [`components/dashboard-icon.tsx`](https://github.com/tvk353/budgetly/blob/main/components/dashboard-icon.tsx) (Dashboard icons), [`components/household-bottom-navigation.tsx`](https://github.com/tvk353/budgetly/blob/main/components/household-bottom-navigation.tsx) (Household navigation), [`lib/household-dashboard-data.ts`](https://github.com/tvk353/budgetly/blob/main/lib/household-dashboard-data.ts) (Dashboard calculations), [`components/transactions-screen.tsx`](https://github.com/tvk353/budgetly/blob/main/components/transactions-screen.tsx) (Transactions view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Access and Workspaces"]
  node_appshell["App shell<br/>[app-shell.tsx]"]
  node_login["Sign-in form<br/>[login-form.tsx]"]
  node_verification["Email verification"]
  node_workspace_select["Workspace selection"]
  node_personal["Personal placeholder"]
end

subgraph group_household["Household Overview"]
  node_dashboard["Household dashboard"]
  node_dashboard_data["Dashboard calculations"]
end

subgraph group_finance["Finance Views"]
  node_transactions["Transactions view"]
  node_transaction_data["Transaction data"]
  node_budget["Budget view<br/>[budget-screen.tsx]"]
  node_budget_data["Budget data<br/>[budget-data.ts]"]
  node_savings["Savings view<br/>[savings-screen.tsx]"]
  node_savings_data["Savings data<br/>[savings-data.ts]"]
  node_trackers["Trackers view"]
  node_trackers_data["Tracker calculations<br/>[trackers-data.ts]"]
  node_more["More and settings"]
  node_more_data["More hub data<br/>[more-data.ts]"]
end

subgraph group_support["Shared UI and Data"]
  node_mock_data["Shared mock data<br/>[mock-data.ts]"]
  node_navigation["Household navigation"]
  node_icons["Dashboard icons<br/>[dashboard-icon.tsx]"]
end

node_user(("Household user"))

node_user -->|"signs in"| node_login
node_user -->|"chooses workspace"| node_workspace_select
node_login -->|"uses mock account"| node_mock_data
node_user -->|"verifies email"| node_verification
node_verification -->|"uses mock account"| node_mock_data
node_appshell -->|"frames"| node_login
node_appshell -->|"frames"| node_verification
node_appshell -->|"frames"| node_personal
node_workspace_select -->|"links to household"| node_dashboard
node_dashboard -->|"renders summary"| node_dashboard_data
node_dashboard -->|"renders"| node_navigation
node_dashboard -->|"renders"| node_icons
node_transactions -->|"renders records"| node_transaction_data
node_transactions -->|"uses spending summary"| node_dashboard_data
node_transactions -->|"renders"| node_navigation
node_transactions -->|"renders"| node_icons
node_transaction_data -->|"uses budget helpers"| node_dashboard_data
node_budget -->|"uses budget data"| node_budget_data
node_budget -->|"formats amounts"| node_dashboard_data
node_budget -->|"renders"| node_navigation
node_budget -->|"renders"| node_icons
node_savings -->|"uses savings data"| node_savings_data
node_savings -->|"formats amounts"| node_dashboard_data
node_savings -->|"renders"| node_navigation
node_savings -->|"renders"| node_icons
node_trackers -->|"calculates tracker totals"| node_trackers_data
node_trackers -->|"formats amounts"| node_dashboard_data
node_trackers -->|"renders"| node_navigation
node_trackers -->|"renders"| node_icons
node_more -->|"uses hub data"| node_more_data
node_more -->|"renders"| node_icons
node_navigation -->|"renders"| node_icons

click node_appshell "https://github.com/tvk353/budgetly/blob/main/components/app-shell.tsx"
click node_login "https://github.com/tvk353/budgetly/blob/main/components/login-form.tsx"
click node_verification "https://github.com/tvk353/budgetly/blob/main/components/verification-form.tsx"
click node_workspace_select "https://github.com/tvk353/budgetly/blob/main/components/workspace-selection.tsx"
click node_personal "https://github.com/tvk353/budgetly/blob/main/components/workspace-placeholder.tsx"
click node_dashboard "https://github.com/tvk353/budgetly/blob/main/components/household-dashboard.tsx"
click node_dashboard_data "https://github.com/tvk353/budgetly/blob/main/lib/household-dashboard-data.ts"
click node_transactions "https://github.com/tvk353/budgetly/blob/main/components/transactions-screen.tsx"
click node_transaction_data "https://github.com/tvk353/budgetly/blob/main/lib/transactions-data.ts"
click node_budget "https://github.com/tvk353/budgetly/blob/main/components/budget-screen.tsx"
click node_budget_data "https://github.com/tvk353/budgetly/blob/main/lib/budget-data.ts"
click node_savings "https://github.com/tvk353/budgetly/blob/main/components/savings-screen.tsx"
click node_savings_data "https://github.com/tvk353/budgetly/blob/main/lib/savings-data.ts"
click node_trackers "https://github.com/tvk353/budgetly/blob/main/components/trackers-screen.tsx"
click node_trackers_data "https://github.com/tvk353/budgetly/blob/main/lib/trackers-data.ts"
click node_more "https://github.com/tvk353/budgetly/blob/main/components/more-hub-screen.tsx"
click node_more_data "https://github.com/tvk353/budgetly/blob/main/lib/more-data.ts"
click node_mock_data "https://github.com/tvk353/budgetly/blob/main/lib/mock-data.ts"
click node_navigation "https://github.com/tvk353/budgetly/blob/main/components/household-bottom-navigation.tsx"
click node_icons "https://github.com/tvk353/budgetly/blob/main/components/dashboard-icon.tsx"

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_appshell,node_login,node_verification,node_workspace_select,node_personal,node_user toneBlue
class node_dashboard,node_dashboard_data toneAmber
class node_transactions,node_transaction_data,node_budget,node_budget_data,node_savings,node_savings_data,node_trackers,node_trackers_data,node_more,node_more_data toneMint
class node_mock_data,node_navigation,node_icons toneRose
```

## Components

### Access and Workspaces

- [App shell](https://github.com/tvk353/budgetly/blob/main/components/app-shell.tsx): `components/app-shell.tsx`
- [Sign-in form](https://github.com/tvk353/budgetly/blob/main/components/login-form.tsx): `components/login-form.tsx`
- [Email verification](https://github.com/tvk353/budgetly/blob/main/components/verification-form.tsx): `components/verification-form.tsx`
- [Workspace selection](https://github.com/tvk353/budgetly/blob/main/components/workspace-selection.tsx): `components/workspace-selection.tsx`
- [Personal placeholder](https://github.com/tvk353/budgetly/blob/main/components/workspace-placeholder.tsx): `components/workspace-placeholder.tsx`

### Household Overview

- [Household dashboard](https://github.com/tvk353/budgetly/blob/main/components/household-dashboard.tsx): `components/household-dashboard.tsx`
- [Dashboard calculations](https://github.com/tvk353/budgetly/blob/main/lib/household-dashboard-data.ts): `lib/household-dashboard-data.ts`

### Finance Views

- [Transactions view](https://github.com/tvk353/budgetly/blob/main/components/transactions-screen.tsx): `components/transactions-screen.tsx`
- [Transaction data](https://github.com/tvk353/budgetly/blob/main/lib/transactions-data.ts): `lib/transactions-data.ts`
- [Budget view](https://github.com/tvk353/budgetly/blob/main/components/budget-screen.tsx): `components/budget-screen.tsx`
- [Budget data](https://github.com/tvk353/budgetly/blob/main/lib/budget-data.ts): `lib/budget-data.ts`
- [Savings view](https://github.com/tvk353/budgetly/blob/main/components/savings-screen.tsx): `components/savings-screen.tsx`
- [Savings data](https://github.com/tvk353/budgetly/blob/main/lib/savings-data.ts): `lib/savings-data.ts`
- [Trackers view](https://github.com/tvk353/budgetly/blob/main/components/trackers-screen.tsx): `components/trackers-screen.tsx`
- [Tracker calculations](https://github.com/tvk353/budgetly/blob/main/lib/trackers-data.ts): `lib/trackers-data.ts`
- [More and settings](https://github.com/tvk353/budgetly/blob/main/components/more-hub-screen.tsx): `components/more-hub-screen.tsx`
- [More hub data](https://github.com/tvk353/budgetly/blob/main/lib/more-data.ts): `lib/more-data.ts`

### Shared UI and Data

- [Shared mock data](https://github.com/tvk353/budgetly/blob/main/lib/mock-data.ts): `lib/mock-data.ts`
- [Household navigation](https://github.com/tvk353/budgetly/blob/main/components/household-bottom-navigation.tsx): `components/household-bottom-navigation.tsx`
- [Dashboard icons](https://github.com/tvk353/budgetly/blob/main/components/dashboard-icon.tsx): `components/dashboard-icon.tsx`

### Other components

- **Household user**

## Connections

- Household user → Sign-in form: signs in
- Household user → Workspace selection: chooses workspace
- Sign-in form → Shared mock data: uses mock account (evidence: `components/login-form.tsx`)
- Household user → Email verification: verifies email
- Email verification → Shared mock data: uses mock account (evidence: `components/verification-form.tsx`)
- App shell → Sign-in form: frames (evidence: `app/page.tsx`)
- App shell → Email verification: frames (evidence: `app/verify/page.tsx`)
- App shell → Personal placeholder: frames (evidence: `app/workspace/personal/page.tsx`)
- Workspace selection → Household dashboard: links to household
- Household dashboard → Dashboard calculations: renders summary (evidence: `app/workspace/household/page.tsx`)
- Household dashboard → Household navigation: renders (evidence: `components/household-dashboard.tsx`)
- Household dashboard → Dashboard icons: renders (evidence: `components/household-dashboard.tsx`)
- Transactions view → Transaction data: renders records (evidence: `app/transactions/page.tsx`)
- Transactions view → Dashboard calculations: uses spending summary (evidence: `app/transactions/page.tsx`)
- Transactions view → Household navigation: renders (evidence: `components/transactions-screen.tsx`)
- Transactions view → Dashboard icons: renders (evidence: `components/transactions-screen.tsx`)
- Transaction data → Dashboard calculations: uses budget helpers (evidence: `lib/transactions-data.ts`)
- Budget view → Budget data: uses budget data (evidence: `components/budget-screen.tsx`)
- Budget view → Dashboard calculations: formats amounts (evidence: `components/budget-screen.tsx`)
- Budget view → Household navigation: renders (evidence: `components/budget-screen.tsx`)
- Budget view → Dashboard icons: renders (evidence: `components/budget-screen.tsx`)
- Savings view → Savings data: uses savings data (evidence: `components/savings-screen.tsx`)
- Savings view → Dashboard calculations: formats amounts (evidence: `components/savings-screen.tsx`)
- Savings view → Household navigation: renders (evidence: `components/savings-screen.tsx`)
- Savings view → Dashboard icons: renders (evidence: `components/savings-screen.tsx`)
- Trackers view → Tracker calculations: calculates tracker totals (evidence: `components/trackers-screen.tsx`)
- Trackers view → Dashboard calculations: formats amounts (evidence: `components/trackers-screen.tsx`)
- Trackers view → Household navigation: renders (evidence: `components/trackers-screen.tsx`)
- Trackers view → Dashboard icons: renders (evidence: `components/trackers-screen.tsx`)
- More and settings → More hub data: uses hub data (evidence: `components/more-hub-screen.tsx`)
- More and settings → Dashboard icons: renders (evidence: `components/more-hub-screen.tsx`)
- Household navigation → Dashboard icons: renders (evidence: `components/household-bottom-navigation.tsx`)
