# prajakta8083/e-hishob architecture

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

- Interactive diagram: https://gitdiagram.com/prajakta8083/e-hishob
- Repository: https://github.com/prajakta8083/e-hishob

## Overview

E-Hishob is a Java Swing personal-finance application for recording income and expenses and viewing account history. Users interact through the desktop interface; entry fields are validated, accepted entries update the in-memory calculator and are written to the local SQLite database. The interface also exposes registration, login, and monthly/yearly profile views, though their exact service calls are not visible in the excerpts. The graph reflects the shown calls and documented file references; unsampled report and account flows are left unconnected where ownership cannot be confirmed.

Main entry points: [`index.java`](https://github.com/prajakta8083/e-hishob/blob/main/index.java) (Finance interface), [`Bridge.java`](https://github.com/prajakta8083/e-hishob/blob/main/Bridge.java) (Account and ledger access), [`Validation.java`](https://github.com/prajakta8083/e-hishob/blob/main/Validation.java) (Input validation), [`Calculate.java`](https://github.com/prajakta8083/e-hishob/blob/main/Calculate.java) (Income expense totals)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_swing_app["Finance interface<br/>[index.java]"]
  node_report_views["Profile reports<br/>[index.java]"]
end

subgraph group_logic["Domain logic"]
  node_validation["Input validation<br/>[Validation.java]"]
  node_calculator["Income expense totals<br/>[Calculate.java]"]
end

subgraph group_storage["Local storage"]
  node_bridge["Account and ledger access<br/>[Bridge.java]"]
  node_database[("SQLite database<br/>[e_hishob.db]")]
end

node_user(("User"))

node_user -->|"uses"| node_swing_app
node_swing_app -->|"validates input"| node_validation
node_swing_app -->|"updates totals"| node_calculator
node_swing_app -->|"writes entries"| node_bridge
node_validation -->|"checks names"| node_bridge
node_bridge -->|"reads and writes"| node_database

click node_swing_app "https://github.com/prajakta8083/e-hishob/blob/main/index.java"
click node_report_views "https://github.com/prajakta8083/e-hishob/blob/main/index.java"
click node_validation "https://github.com/prajakta8083/e-hishob/blob/main/Validation.java"
click node_calculator "https://github.com/prajakta8083/e-hishob/blob/main/Calculate.java"
click node_bridge "https://github.com/prajakta8083/e-hishob/blob/main/Bridge.java"
click node_database "https://github.com/prajakta8083/e-hishob/blob/main/e_hishob.db"

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_swing_app,node_report_views,node_user toneBlue
class node_validation,node_calculator toneAmber
class node_bridge,node_database toneMint
```

## Components

### Desktop interface

- [Finance interface](https://github.com/prajakta8083/e-hishob/blob/main/index.java): `index.java`
- [Profile reports](https://github.com/prajakta8083/e-hishob/blob/main/index.java): `index.java`

### Domain logic

- [Input validation](https://github.com/prajakta8083/e-hishob/blob/main/Validation.java): `Validation.java`
- [Income expense totals](https://github.com/prajakta8083/e-hishob/blob/main/Calculate.java): `Calculate.java`

### Local storage

- [Account and ledger access](https://github.com/prajakta8083/e-hishob/blob/main/Bridge.java): `Bridge.java`
- [SQLite database](https://github.com/prajakta8083/e-hishob/blob/main/e_hishob.db): `e_hishob.db`

### Other components

- **User**

## Connections

- User → Finance interface: uses (evidence: `index.java`)
- Finance interface → Input validation: validates input (evidence: `index.java`)
- Finance interface → Income expense totals: updates totals (evidence: `index.java`)
- Finance interface → Account and ledger access: writes entries (evidence: `index.java`)
- Input validation → Account and ledger access: checks names (evidence: `Validation.java`)
- Account and ledger access → SQLite database: reads and writes (evidence: `Bridge.java`)
