# chaebaee/lmsgroup2 architecture

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

## Overview

This is a small Tkinter library-management application. The visible workflow is staff login and registration, followed by a dashboard and book-catalogue actions; catalogue records include availability, borrower and due-date information, with overdue-fine calculations. Login and catalogue data are persisted separately as JSON. Several core files are backup or duplicate implementations, so they are shown as variants rather than assumed runtime stages. The README is minimal, and the excerpts do not establish the complete startup wiring.

Main entry points: [`Library manager/LMSLogin.py`](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSLogin.py) (Login and registration), [`Library manager/LMSMenu.py`](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSMenu.py) (Dashboard), [`library_data.json`](https://github.com/chaebaee/lmsgroup2/blob/main/library_data.json) (Book records), [`Library manager/LMSSystem.py`](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSSystem.py) (Book management UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and dashboard"]
  node_login["Login and registration<br/>[LMSLogin.py]"]
  node_dashboard["Dashboard<br/>[LMSMenu.py]"]
end

subgraph group_catalog["Catalogue management"]
  node_catalogue["Book management UI<br/>[LMSSystem.py]"]
  node_backup["Backup variant<br/>[LMSBACKUPSAVE.py]"]
  node_runnercopy["Runner copy"]
end

subgraph group_data["JSON data"]
  node_bookdata[("Book records<br/>[library_data.json]")]
  node_userdata[("User credentials<br/>[user_data.json]")]
end

node_staff(("Library staff"))

node_staff -->|"signs in"| node_login
node_login -->|"opens after login"| node_dashboard
node_catalogue -->|"reads and writes"| node_bookdata
node_dashboard -->|"loads records"| node_bookdata
node_login -->|"loads and saves"| node_userdata

click node_login "https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSLogin.py"
click node_dashboard "https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSMenu.py"
click node_catalogue "https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSSystem.py"
click node_backup "https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSBACKUPSAVE.py"
click node_runnercopy "https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/tempCodeRunnerFile.py"
click node_bookdata "https://github.com/chaebaee/lmsgroup2/blob/main/library_data.json"
click node_userdata "https://github.com/chaebaee/lmsgroup2/blob/main/user_data.json"

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_login,node_dashboard toneBlue
class node_catalogue,node_backup,node_runnercopy toneAmber
class node_bookdata,node_userdata toneMint
class node_staff toneIndigo
```

## Components

### Access and dashboard

- [Login and registration](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSLogin.py): `Library manager/LMSLogin.py`
- [Dashboard](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSMenu.py): `Library manager/LMSMenu.py`

### Catalogue management

- [Book management UI](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSSystem.py): `Library manager/LMSSystem.py`
- [Backup variant](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/LMSBACKUPSAVE.py): `Library manager/LMSBACKUPSAVE.py`
- [Runner copy](https://github.com/chaebaee/lmsgroup2/blob/main/Library%20manager/tempCodeRunnerFile.py): `Library manager/tempCodeRunnerFile.py`

### JSON data

- [Book records](https://github.com/chaebaee/lmsgroup2/blob/main/library_data.json): `library_data.json`
- [User credentials](https://github.com/chaebaee/lmsgroup2/blob/main/user_data.json): `user_data.json`

### Other components

- **Library staff**

## Connections

- Library staff → Login and registration: signs in (evidence: `Library manager/LMSLogin.py`)
- Login and registration → Dashboard: opens after login (evidence: `Library manager/LMSLogin.py`)
- Book management UI → Book records: reads and writes (evidence: `Library manager/LMSSystem.py`)
- Dashboard → Book records: loads records (evidence: `Library manager/LMSMenu.py`)
- Login and registration → User credentials: loads and saves (evidence: `Library manager/LMSLogin.py`)
