# jackgraymer/mortgage architecture

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

- Interactive diagram: https://gitdiagram.com/jackgraymer/mortgage
- Repository: https://github.com/jackgraymer/mortgage

## Overview

This is a static Swiss home-buying guide, not a server application: a prospective buyer consults topic guides and uses browser-based mortgage and tax calculators. The graph preserves the documented legal, financing, banking, taxation, purchase-process, cost, visit, and reference branches. Source excerpts were limited to package metadata, so links among page content and calculator scripts are not asserted; README-documented capabilities and paths from the tree ground the map.

Main entry points: [`docs/javascripts/amortization.js`](https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/amortization.js) (Amortization Calculator), [`docs/javascripts/tax.js`](https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/tax.js) (Tax Calculator), [`docs/index.md`](https://github.com/jackgraymer/mortgage/blob/master/docs/index.md) (Guide Home), [`docs/overview.md`](https://github.com/jackgraymer/mortgage/blob/master/docs/overview.md) (Market Overview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guide["Buying Guide"]
  node_home["Guide Home<br/>[index.md]"]
  node_overview["Market Overview<br/>[overview.md]"]
  node_legal["Legal Rules<br/>[index.md]"]
  node_taxation["Tax Guide<br/>[index.md]"]
end

subgraph group_finance["Financing"]
  node_financing["Mortgage Financing<br/>[index.md]"]
  node_banking["Banking<br/>[banking.md]"]
end

subgraph group_tools["Browser Tools"]
  node_mortgage_calc["Amortization Calculator<br/>[amortization.js]"]
  node_mortgage_core["Amortization Math"]
  node_tax_calc["Tax Calculator<br/>[tax.js]"]
  node_tax_data["Tax Rate Data<br/>[tax-data.js]"]
end

subgraph group_reference["Practical Reference"]
  node_process["Purchase Process<br/>[process.md]"]
  node_costs["Purchase Costs<br/>[costs.md]"]
  node_visits["Property Visits<br/>[index.md]"]
  node_checklist["Buyer Checklist<br/>[checklist.md]"]
  node_sources["Official Sources<br/>[sources.md]"]
end

node_buyer(("Prospective Buyer"))

node_buyer -->|"opens guide"| node_home
node_buyer -->|"consults"| node_overview
node_buyer -->|"consults"| node_legal
node_buyer -->|"consults"| node_financing
node_buyer -->|"consults"| node_banking
node_buyer -->|"calculates mortgage"| node_mortgage_calc
node_mortgage_calc -.->|"uses math"| node_mortgage_core
node_buyer -->|"consults"| node_taxation
node_buyer -->|"estimates tax"| node_tax_calc
node_tax_calc -.->|"uses rates"| node_tax_data
node_buyer -->|"follows steps"| node_process
node_buyer -->|"checks costs"| node_costs
node_buyer -->|"prepares visits"| node_visits
node_buyer -->|"checks items"| node_checklist
node_buyer -->|"consults references"| node_sources

click node_home "https://github.com/jackgraymer/mortgage/blob/master/docs/index.md"
click node_overview "https://github.com/jackgraymer/mortgage/blob/master/docs/overview.md"
click node_legal "https://github.com/jackgraymer/mortgage/blob/master/docs/legal/index.md"
click node_financing "https://github.com/jackgraymer/mortgage/blob/master/docs/financing/index.md"
click node_banking "https://github.com/jackgraymer/mortgage/blob/master/docs/banking.md"
click node_mortgage_calc "https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/amortization.js"
click node_mortgage_core "https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/amortization-core.js"
click node_taxation "https://github.com/jackgraymer/mortgage/blob/master/docs/taxation/index.md"
click node_tax_calc "https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/tax.js"
click node_tax_data "https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/tax-data.js"
click node_process "https://github.com/jackgraymer/mortgage/blob/master/docs/process.md"
click node_costs "https://github.com/jackgraymer/mortgage/blob/master/docs/costs.md"
click node_visits "https://github.com/jackgraymer/mortgage/blob/master/docs/visits/index.md"
click node_checklist "https://github.com/jackgraymer/mortgage/blob/master/docs/checklist.md"
click node_sources "https://github.com/jackgraymer/mortgage/blob/master/docs/sources.md"

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_overview,node_legal,node_taxation toneBlue
class node_financing,node_banking toneAmber
class node_mortgage_calc,node_mortgage_core,node_tax_calc,node_tax_data toneMint
class node_process,node_costs,node_visits,node_checklist,node_sources toneRose
class node_buyer toneIndigo
```

## Components

### Buying Guide

- [Guide Home](https://github.com/jackgraymer/mortgage/blob/master/docs/index.md): `docs/index.md`
- [Market Overview](https://github.com/jackgraymer/mortgage/blob/master/docs/overview.md): `docs/overview.md`
- [Legal Rules](https://github.com/jackgraymer/mortgage/blob/master/docs/legal/index.md): `docs/legal/index.md`
- [Tax Guide](https://github.com/jackgraymer/mortgage/blob/master/docs/taxation/index.md): `docs/taxation/index.md`

### Financing

- [Mortgage Financing](https://github.com/jackgraymer/mortgage/blob/master/docs/financing/index.md): `docs/financing/index.md`
- [Banking](https://github.com/jackgraymer/mortgage/blob/master/docs/banking.md): `docs/banking.md`

### Browser Tools

- [Amortization Calculator](https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/amortization.js): `docs/javascripts/amortization.js`
- [Amortization Math](https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/amortization-core.js): `docs/javascripts/amortization-core.js`
- [Tax Calculator](https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/tax.js): `docs/javascripts/tax.js`
- [Tax Rate Data](https://github.com/jackgraymer/mortgage/blob/master/docs/javascripts/tax-data.js): `docs/javascripts/tax-data.js`

### Practical Reference

- [Purchase Process](https://github.com/jackgraymer/mortgage/blob/master/docs/process.md): `docs/process.md`
- [Purchase Costs](https://github.com/jackgraymer/mortgage/blob/master/docs/costs.md): `docs/costs.md`
- [Property Visits](https://github.com/jackgraymer/mortgage/blob/master/docs/visits/index.md): `docs/visits/index.md`
- [Buyer Checklist](https://github.com/jackgraymer/mortgage/blob/master/docs/checklist.md): `docs/checklist.md`
- [Official Sources](https://github.com/jackgraymer/mortgage/blob/master/docs/sources.md): `docs/sources.md`

### Other components

- **Prospective Buyer**

## Connections

- Prospective Buyer → Guide Home: opens guide (evidence: `README.md`)
- Prospective Buyer → Market Overview: consults (evidence: `README.md`)
- Prospective Buyer → Legal Rules: consults (evidence: `README.md`)
- Prospective Buyer → Mortgage Financing: consults (evidence: `README.md`)
- Prospective Buyer → Banking: consults (evidence: `README.md`)
- Prospective Buyer → Amortization Calculator: calculates mortgage (evidence: `README.md`)
- Amortization Calculator → Amortization Math: uses math
- Prospective Buyer → Tax Guide: consults (evidence: `README.md`)
- Prospective Buyer → Tax Calculator: estimates tax (evidence: `README.md`)
- Tax Calculator → Tax Rate Data: uses rates
- Prospective Buyer → Purchase Process: follows steps (evidence: `README.md`)
- Prospective Buyer → Purchase Costs: checks costs (evidence: `README.md`)
- Prospective Buyer → Property Visits: prepares visits (evidence: `README.md`)
- Prospective Buyer → Buyer Checklist: checks items (evidence: `README.md`)
- Prospective Buyer → Official Sources: consults references (evidence: `README.md`)
