# kolapinenisandeep/smart-kubear architecture

> Architecture diagram of the GitHub repository kolapinenisandeep/smart-kubear, 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/kolapinenisandeep/smart-kubear
- Repository: https://github.com/kolapinenisandeep/smart-kubear

## Overview

Smart Kubear is a client-side financial dashboard for tracking loans and goals, comparing payoff scenarios, and calculating loan payments. The principal workflow is users entering loans, viewing dashboard summaries, and analyzing extra-payment savings; calculator pages add simplified and advanced what-if tools. The README also describes Google sign-in and AI chat, but the shown app presents authentication as a placeholder and no backend or AI integration source is present, so those are represented as documented/aspirational capabilities rather than confirmed runtime services.

Main entry points: [`src/pages/Dashboard.tsx`](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Dashboard.tsx) (Dashboard state), [`src/App.tsx`](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/App.tsx) (Routed application), [`src/pages/Calculator.tsx`](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Calculator.tsx) (Calculator page), [`src/components/AdvancedCalculator.tsx`](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AdvancedCalculator.tsx) (Advanced calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and navigation"]
  node_app["Routed application<br/>[App.tsx]"]
  node_home["Landing page<br/>[Home.tsx]"]
  node_auth["Demo auth prompt"]
end

subgraph group_loans["Loan tracking"]
  node_dashboard["Dashboard state<br/>[Dashboard.tsx]"]
  node_loanform["Loan entry<br/>[AddLoanForm.tsx]"]
  node_loanlist["Loan list<br/>[LoanList.tsx]"]
  node_loancard["Loan summary card<br/>[LoanCard.tsx]"]
end

subgraph group_analysis["Calculators and advice"]
  node_loananalysis["Extra-payment analysis<br/>[LoanAnalyzer.tsx]"]
  node_calculatorpage["Calculator page<br/>[Calculator.tsx]"]
  node_simplecalc["Simple calculator"]
  node_advancedcalc["Advanced calculator"]
  node_results["Advanced results"]
  node_amortization["Amortization schedule"]
  node_currency["Currency exchange"]
  node_adviser["Financial adviser"]
end

subgraph group_goals["Financial goals"]
  node_goallist["Goal tracking<br/>[GoalList.tsx]"]
  node_goalform["Goal entry<br/>[FinancialGoal.tsx]"]
end

node_user(("Kubear user"))
node_google(("Google sign-in"))
node_ai{{"AI advice service"}}

node_user -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_calculatorpage
node_home -->|"renders"| node_auth
node_dashboard -->|"renders"| node_loanform
node_dashboard -->|"renders"| node_loanlist
node_dashboard -->|"renders"| node_goallist
node_dashboard -->|"renders"| node_goalform
node_dashboard -.->|"tracks scenario"| node_loananalysis
node_loanlist -.->|"renders"| node_loancard
node_loananalysis -->|"shows savings"| node_user
node_calculatorpage -->|"renders"| node_simplecalc
node_calculatorpage -->|"renders"| node_advancedcalc
node_advancedcalc -->|"renders"| node_results
node_advancedcalc -->|"uses"| node_currency
node_results -->|"renders"| node_amortization
node_results -->|"renders"| node_adviser
node_simplecalc -.->|"renders"| node_adviser
node_adviser -.->|"requests advice"| node_ai
node_auth -.->|"offers sign-in"| node_google

click node_app "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/App.tsx"
click node_home "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Home.tsx"
click node_auth "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AuthPlaceholder.tsx"
click node_dashboard "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Dashboard.tsx"
click node_loanform "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AddLoanForm.tsx"
click node_loanlist "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/LoanList.tsx"
click node_loancard "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/LoanCard.tsx"
click node_goallist "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/GoalList.tsx"
click node_goalform "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/FinancialGoal.tsx"
click node_loananalysis "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/LoanAnalyzer.tsx"
click node_calculatorpage "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Calculator.tsx"
click node_simplecalc "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/SimplifiedCalculator.tsx"
click node_advancedcalc "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AdvancedCalculator.tsx"
click node_results "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AdvancedResults.tsx"
click node_amortization "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AmortizationTable.tsx"
click node_currency "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/CurrencyExchange.tsx"
click node_adviser "https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/FinancialAdviser.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_app,node_home,node_auth,node_user toneBlue
class node_dashboard,node_loanform,node_loanlist,node_loancard toneAmber
class node_loananalysis,node_calculatorpage,node_simplecalc,node_advancedcalc,node_results,node_amortization,node_currency,node_adviser toneMint
class node_goallist,node_goalform toneRose
class node_google,node_ai toneIndigo
```

## Components

### App and navigation

- [Routed application](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/App.tsx): `src/App.tsx`
- [Landing page](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Demo auth prompt](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AuthPlaceholder.tsx): `src/components/AuthPlaceholder.tsx`

### Loan tracking

- [Dashboard state](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Dashboard.tsx): `src/pages/Dashboard.tsx`
- [Loan entry](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AddLoanForm.tsx): `src/components/AddLoanForm.tsx`
- [Loan list](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/LoanList.tsx): `src/components/LoanList.tsx`
- [Loan summary card](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/LoanCard.tsx): `src/components/LoanCard.tsx`

### Calculators and advice

- [Extra-payment analysis](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/LoanAnalyzer.tsx): `src/components/LoanAnalyzer.tsx`
- [Calculator page](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/pages/Calculator.tsx): `src/pages/Calculator.tsx`
- [Simple calculator](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/SimplifiedCalculator.tsx): `src/components/SimplifiedCalculator.tsx`
- [Advanced calculator](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AdvancedCalculator.tsx): `src/components/AdvancedCalculator.tsx`
- [Advanced results](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AdvancedResults.tsx): `src/components/AdvancedResults.tsx`
- [Amortization schedule](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/AmortizationTable.tsx): `src/components/AmortizationTable.tsx`
- [Currency exchange](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/CurrencyExchange.tsx): `src/components/CurrencyExchange.tsx`
- [Financial adviser](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/FinancialAdviser.tsx): `src/components/FinancialAdviser.tsx`

### Financial goals

- [Goal tracking](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/GoalList.tsx): `src/components/GoalList.tsx`
- [Goal entry](https://github.com/kolapinenisandeep/smart-kubear/blob/main/src/components/FinancialGoal.tsx): `src/components/FinancialGoal.tsx`

### Other components

- **Kubear user**
- **Google sign-in**
- **AI advice service**

## Connections

- Kubear user → Routed application: opens (evidence: `src/App.tsx`)
- Routed application → Landing page: routes to (evidence: `src/App.tsx`)
- Routed application → Dashboard state: routes to (evidence: `src/App.tsx`)
- Routed application → Calculator page: routes to (evidence: `src/App.tsx`)
- Landing page → Demo auth prompt: renders (evidence: `src/pages/Home.tsx`)
- Dashboard state → Loan entry: renders (evidence: `src/pages/Dashboard.tsx`)
- Dashboard state → Loan list: renders (evidence: `src/pages/Dashboard.tsx`)
- Dashboard state → Goal tracking: renders (evidence: `src/pages/Dashboard.tsx`)
- Dashboard state → Goal entry: renders (evidence: `src/pages/Dashboard.tsx`)
- Dashboard state → Extra-payment analysis: tracks scenario
- Loan list → Loan summary card: renders
- Extra-payment analysis → Kubear user: shows savings (evidence: `src/components/LoanAnalyzer.tsx`)
- Calculator page → Simple calculator: renders (evidence: `src/pages/Calculator.tsx`)
- Calculator page → Advanced calculator: renders (evidence: `src/pages/Calculator.tsx`)
- Advanced calculator → Advanced results: renders (evidence: `src/components/AdvancedCalculator.tsx`)
- Advanced calculator → Currency exchange: uses (evidence: `src/components/AdvancedCalculator.tsx`)
- Advanced results → Amortization schedule: renders (evidence: `src/components/AdvancedResults.tsx`)
- Advanced results → Financial adviser: renders (evidence: `src/components/AdvancedResults.tsx`)
- Simple calculator → Financial adviser: renders (evidence: `src/components/SimplifiedCalculator.tsx`)
- Financial adviser → AI advice service: requests advice
- Demo auth prompt → Google sign-in: offers sign-in (evidence: `README.md`)
