# sameerdumne/college-mini-pro architecture

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

- Interactive diagram: https://gitdiagram.com/sameerdumne/college-mini-pro
- Repository: https://github.com/sameerdumne/college-mini-pro

## Overview

This is a personal finance tracker for income, expenses, lending, and borrowing. The visible workflow is sign-in, load a user’s transactions, and present an overview and transaction list; transaction creation, filtering, editing, deletion, and reminders are also represented in the source tree. The excerpts confirm server-side transaction loading and one update/delete API, but do not expose the other transaction handlers or reminder route, so those relationships are left unasserted. The graph focuses on runtime behavior, not the UI toolkit’s full component inventory.

Main entry points: [`app/auth/login/page.tsx`](https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/login/page.tsx) (Login), [`lib/supabase/server.ts`](https://github.com/sameerdumne/college-mini-pro/blob/main/lib/supabase/server.ts) (Server Supabase client), [`app/dashboard/page.tsx`](https://github.com/sameerdumne/college-mini-pro/blob/main/app/dashboard/page.tsx) (Dashboard loader), [`app/page.tsx`](https://github.com/sameerdumne/college-mini-pro/blob/main/app/page.tsx) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and auth"]
  node_home["Home page<br/>[page.tsx]"]
  node_login["Login<br/>[page.tsx]"]
  node_signup["Sign up<br/>[page.tsx]"]
  node_logout["Logout route<br/>[route.ts]"]
end

subgraph group_finance["Finance tracking"]
  node_dashboard["Dashboard loader<br/>[page.tsx]"]
  node_overview["Transaction overview<br/>[overview.tsx]"]
  node_transaction_list["Transaction list"]
  node_transaction_form["Add transaction"]
  node_transaction_filters["Transaction filters"]
  node_transaction_table["Transaction table"]
  node_edit_transaction["Edit transaction"]
  node_delete_transaction["Delete transaction"]
  node_transactions_api["Transaction collection API<br/>[route.ts]"]
  node_transaction_item_api["Transaction item API<br/>[route.ts]"]
end

subgraph group_services["Data and messaging"]
  node_reminder_api["Reminder route<br/>[route.ts]"]
  node_email_service["Reminder email service<br/>[email-service.ts]"]
  node_server_client["Server Supabase client<br/>[server.ts]"]
  node_browser_client["Browser Supabase client<br/>[client.ts]"]
  node_supabase[("Supabase")]
  node_smtp["SMTP server"]
end

subgraph group_ui["Interface components"]
  node_button["Button primitive<br/>[button.tsx]"]
  node_card["Card primitive<br/>[card.tsx]"]
  node_input["Input primitive<br/>[input.tsx]"]
  node_label["Label primitive<br/>[label.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_home
node_home -->|"creates client"| node_server_client
node_login -->|"creates client"| node_browser_client
node_login -->|"renders"| node_button
node_login -->|"renders"| node_card
node_login -->|"renders"| node_input
node_login -->|"renders"| node_label
node_dashboard -->|"creates client"| node_server_client
node_dashboard -->|"reads transactions"| node_supabase
node_dashboard -->|"renders"| node_overview
node_dashboard -->|"renders"| node_transaction_list
node_logout -->|"creates client"| node_server_client
node_transaction_item_api -->|"creates client"| node_server_client
node_server_client -->|"configures access"| node_supabase
node_browser_client -.->|"creates client"| node_supabase
node_reminder_api -.->|"sends reminder"| node_email_service
node_email_service -->|"sends email"| node_smtp

click node_home "https://github.com/sameerdumne/college-mini-pro/blob/main/app/page.tsx"
click node_login "https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/login/page.tsx"
click node_signup "https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/sign-up/page.tsx"
click node_logout "https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/logout/route.ts"
click node_dashboard "https://github.com/sameerdumne/college-mini-pro/blob/main/app/dashboard/page.tsx"
click node_overview "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/overview.tsx"
click node_transaction_list "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/transaction-list.tsx"
click node_transaction_form "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/add-transaction-form.tsx"
click node_transaction_filters "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/transaction-filters.tsx"
click node_transaction_table "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/transaction-table.tsx"
click node_edit_transaction "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/edit-transaction-modal.tsx"
click node_delete_transaction "https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/delete-transaction-button.tsx"
click node_transactions_api "https://github.com/sameerdumne/college-mini-pro/blob/main/app/api/transactions/route.ts"
click node_transaction_item_api "https://github.com/sameerdumne/college-mini-pro/blob/main/app/api/transactions/%5Bid%5D/route.ts"
click node_reminder_api "https://github.com/sameerdumne/college-mini-pro/blob/main/app/api/reminders/send/route.ts"
click node_email_service "https://github.com/sameerdumne/college-mini-pro/blob/main/lib/email-service.ts"
click node_server_client "https://github.com/sameerdumne/college-mini-pro/blob/main/lib/supabase/server.ts"
click node_browser_client "https://github.com/sameerdumne/college-mini-pro/blob/main/lib/supabase/client.ts"
click node_button "https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/button.tsx"
click node_card "https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/card.tsx"
click node_input "https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/input.tsx"
click node_label "https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/label.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_home,node_login,node_signup,node_logout toneBlue
class node_dashboard,node_overview,node_transaction_list,node_transaction_form,node_transaction_filters,node_transaction_table,node_edit_transaction,node_delete_transaction,node_transactions_api,node_transaction_item_api toneAmber
class node_reminder_api,node_email_service,node_server_client,node_browser_client,node_supabase,node_smtp toneMint
class node_button,node_card,node_input,node_label toneRose
class node_visitor toneIndigo
```

## Components

### Entry and auth

- [Home page](https://github.com/sameerdumne/college-mini-pro/blob/main/app/page.tsx): `app/page.tsx`
- [Login](https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/login/page.tsx): `app/auth/login/page.tsx`
- [Sign up](https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/sign-up/page.tsx): `app/auth/sign-up/page.tsx`
- [Logout route](https://github.com/sameerdumne/college-mini-pro/blob/main/app/auth/logout/route.ts): `app/auth/logout/route.ts`

### Finance tracking

- [Dashboard loader](https://github.com/sameerdumne/college-mini-pro/blob/main/app/dashboard/page.tsx): `app/dashboard/page.tsx`
- [Transaction overview](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/overview.tsx): `components/dashboard/overview.tsx`
- [Transaction list](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/transaction-list.tsx): `components/dashboard/transaction-list.tsx`
- [Add transaction](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/add-transaction-form.tsx): `components/dashboard/add-transaction-form.tsx`
- [Transaction filters](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/transaction-filters.tsx): `components/dashboard/transaction-filters.tsx`
- [Transaction table](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/transaction-table.tsx): `components/dashboard/transaction-table.tsx`
- [Edit transaction](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/edit-transaction-modal.tsx): `components/dashboard/edit-transaction-modal.tsx`
- [Delete transaction](https://github.com/sameerdumne/college-mini-pro/blob/main/components/dashboard/delete-transaction-button.tsx): `components/dashboard/delete-transaction-button.tsx`
- [Transaction collection API](https://github.com/sameerdumne/college-mini-pro/blob/main/app/api/transactions/route.ts): `app/api/transactions/route.ts`
- [Transaction item API](https://github.com/sameerdumne/college-mini-pro/blob/main/app/api/transactions/%5Bid%5D/route.ts): `app/api/transactions/[id]/route.ts`

### Data and messaging

- [Reminder route](https://github.com/sameerdumne/college-mini-pro/blob/main/app/api/reminders/send/route.ts): `app/api/reminders/send/route.ts`
- [Reminder email service](https://github.com/sameerdumne/college-mini-pro/blob/main/lib/email-service.ts): `lib/email-service.ts`
- [Server Supabase client](https://github.com/sameerdumne/college-mini-pro/blob/main/lib/supabase/server.ts): `lib/supabase/server.ts`
- [Browser Supabase client](https://github.com/sameerdumne/college-mini-pro/blob/main/lib/supabase/client.ts): `lib/supabase/client.ts`
- **Supabase**
- **SMTP server**

### Interface components

- [Button primitive](https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/button.tsx): `components/ui/button.tsx`
- [Card primitive](https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/card.tsx): `components/ui/card.tsx`
- [Input primitive](https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/input.tsx): `components/ui/input.tsx`
- [Label primitive](https://github.com/sameerdumne/college-mini-pro/blob/main/components/ui/label.tsx): `components/ui/label.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: visits (evidence: `app/page.tsx`)
- Home page → Server Supabase client: creates client (evidence: `app/page.tsx`)
- Login → Browser Supabase client: creates client (evidence: `app/auth/login/page.tsx`)
- Login → Button primitive: renders (evidence: `app/auth/login/page.tsx`)
- Login → Card primitive: renders (evidence: `app/auth/login/page.tsx`)
- Login → Input primitive: renders (evidence: `app/auth/login/page.tsx`)
- Login → Label primitive: renders (evidence: `app/auth/login/page.tsx`)
- Dashboard loader → Server Supabase client: creates client (evidence: `app/dashboard/page.tsx`)
- Dashboard loader → Supabase: reads transactions (evidence: `app/dashboard/page.tsx`)
- Dashboard loader → Transaction overview: renders (evidence: `app/dashboard/page.tsx`)
- Dashboard loader → Transaction list: renders (evidence: `app/dashboard/page.tsx`)
- Logout route → Server Supabase client: creates client (evidence: `app/auth/logout/route.ts`)
- Transaction item API → Server Supabase client: creates client (evidence: `app/api/transactions/[id]/route.ts`)
- Server Supabase client → Supabase: configures access (evidence: `lib/supabase/server.ts`)
- Browser Supabase client → Supabase: creates client
- Reminder route → Reminder email service: sends reminder
- Reminder email service → SMTP server: sends email (evidence: `lib/email-service.ts`)
