# komtora/arcade-pocket architecture

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

- Interactive diagram: https://gitdiagram.com/komtora/arcade-pocket
- Repository: https://github.com/komtora/arcade-pocket

## Overview

Arcade Pocket is a small Flask application for viewing a HomeBank account balance. A user requests the home page; the route calculates the balance from the account’s initial amount and transactions, reads an HTML file, substitutes the balance marker, and returns the resulting page. The source shows these runtime steps, but the actual XML and HTML data files are not in the tree; the README describes them as residing in data/.

Main entry points: [`app/import_hbkNathan.py`](https://github.com/komtora/arcade-pocket/blob/master/app/import_hbkNathan.py) (Home route), [`data`](https://github.com/komtora/arcade-pocket/tree/master/data) (HomeBank XML)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_home_route["Home route"]
node_balance_calc["Balance calculator"]
node_homebank_file["HomeBank XML"]
node_html_file["HTML template"]
node_page_response["Balance page"]

node_user -->|"requests page"| node_home_route
node_home_route -->|"calls"| node_balance_calc
node_balance_calc -->|"reads XML"| node_homebank_file
node_home_route -->|"reads template"| node_html_file
node_home_route -->|"returns HTML"| node_page_response
node_page_response -.->|"displays page"| node_user

click node_home_route "https://github.com/komtora/arcade-pocket/blob/master/app/import_hbkNathan.py"
click node_balance_calc "https://github.com/komtora/arcade-pocket/blob/master/app/import_hbkNathan.py"
click node_homebank_file "https://github.com/komtora/arcade-pocket/tree/master/data"
click node_html_file "https://github.com/komtora/arcade-pocket/tree/master/data"

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_user toneBlue
class node_home_route toneMint
class node_balance_calc,node_homebank_file,node_html_file toneTeal
class node_page_response toneIndigo
```

## Components

### Other components

- **User**
- [Home route](https://github.com/komtora/arcade-pocket/blob/master/app/import_hbkNathan.py): `app/import_hbkNathan.py`
- [Balance calculator](https://github.com/komtora/arcade-pocket/blob/master/app/import_hbkNathan.py): `app/import_hbkNathan.py`
- [HomeBank XML](https://github.com/komtora/arcade-pocket/tree/master/data): `data`
- [HTML template](https://github.com/komtora/arcade-pocket/tree/master/data): `data`
- **Balance page**

## Connections

- User → Home route: requests page (evidence: `app/import_hbkNathan.py`)
- Home route → Balance calculator: calls (evidence: `app/import_hbkNathan.py`)
- Balance calculator → HomeBank XML: reads XML (evidence: `app/import_hbkNathan.py`)
- Home route → HTML template: reads template (evidence: `app/import_hbkNathan.py`)
- Home route → Balance page: returns HTML (evidence: `app/import_hbkNathan.py`)
- Balance page → User: displays page
