# alune0xh/system-care architecture

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

- Interactive diagram: https://gitdiagram.com/alune0xh/system-care
- Repository: https://github.com/alune0xh/system-care

## Overview

`system_care.sh` is a small Bash system-monitoring utility. A user runs it to check root-disk usage, memory usage, and one-minute load relative to CPU count, then see a threshold summary and have a run logged. The README documents these command interactions; no source excerpts were provided, so implementation details beyond that documentation are omitted.

Main entry points: [`system_care.sh`](https://github.com/alune0xh/system-care/blob/main/system_care.sh) (System Care)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_script["System Care<br/>[system_care.sh]"]
node_disk["Disk Check<br/>[system_care.sh]"]
node_memory["Memory Check<br/>[system_care.sh]"]
node_load["Load Check<br/>[system_care.sh]"]
node_summary["Terminal Summary<br/>[system_care.sh]"]
node_log["Run Log<br/>[system_care.sh]"]
node_df["df"]
node_free["free"]
node_uptime["uptime"]
node_nproc["nproc"]
node_bc["bc"]

node_user -->|"runs"| node_script
node_script -->|"checks disk"| node_disk
node_script -->|"checks memory"| node_memory
node_script -->|"checks load"| node_load
node_disk -->|"reads usage"| node_df
node_memory -->|"reads usage"| node_free
node_load -->|"reads average"| node_uptime
node_load -->|"gets core count"| node_nproc
node_load -->|"compares load"| node_bc
node_script -->|"prints results"| node_summary
node_script -->|"appends run"| node_log

click node_script "https://github.com/alune0xh/system-care/blob/main/system_care.sh"
click node_disk "https://github.com/alune0xh/system-care/blob/main/system_care.sh"
click node_memory "https://github.com/alune0xh/system-care/blob/main/system_care.sh"
click node_load "https://github.com/alune0xh/system-care/blob/main/system_care.sh"
click node_summary "https://github.com/alune0xh/system-care/blob/main/system_care.sh"
click node_log "https://github.com/alune0xh/system-care/blob/main/system_care.sh"

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_script,node_disk,node_memory,node_load,node_summary,node_log toneTeal
class node_df,node_free,node_uptime,node_nproc,node_bc toneIndigo
```

## Components

### Other components

- **User**
- [System Care](https://github.com/alune0xh/system-care/blob/main/system_care.sh): `system_care.sh`
- [Disk Check](https://github.com/alune0xh/system-care/blob/main/system_care.sh): `system_care.sh`
- [Memory Check](https://github.com/alune0xh/system-care/blob/main/system_care.sh): `system_care.sh`
- [Load Check](https://github.com/alune0xh/system-care/blob/main/system_care.sh): `system_care.sh`
- [Terminal Summary](https://github.com/alune0xh/system-care/blob/main/system_care.sh): `system_care.sh`
- [Run Log](https://github.com/alune0xh/system-care/blob/main/system_care.sh): `system_care.sh`
- **df**
- **free**
- **uptime**
- **nproc**
- **bc**

## Connections

- User → System Care: runs (evidence: `README.md`)
- System Care → Disk Check: checks disk (evidence: `README.md`)
- System Care → Memory Check: checks memory (evidence: `README.md`)
- System Care → Load Check: checks load (evidence: `README.md`)
- Disk Check → df: reads usage (evidence: `README.md`)
- Memory Check → free: reads usage (evidence: `README.md`)
- Load Check → uptime: reads average (evidence: `README.md`)
- Load Check → nproc: gets core count (evidence: `README.md`)
- Load Check → bc: compares load (evidence: `README.md`)
- System Care → Terminal Summary: prints results (evidence: `README.md`)
- System Care → Run Log: appends run (evidence: `README.md`)
