# bharath-hp/maintenance-predictor architecture

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

- Interactive diagram: https://gitdiagram.com/bharath-hp/maintenance-predictor
- Repository: https://github.com/bharath-hp/maintenance-predictor

## Overview

MaintenanceIQ is a small Streamlit app for estimating machine maintenance expenses. Users enter machine age, operating hours, service history, and usage intensity, then request an estimate calculated by a fixed linear formula and shown in rupees. The page also displays model-quality metrics and the held-out test-record count. All behavior is implemented in one source file; the graph does not imply a separate trained-model or data-storage subsystem.

Main entry points: [`streamlit_app.py`](https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py) (Machine Inputs)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_inputs["Machine Inputs<br/>[streamlit_app.py]"]
node_predictor["Cost Formula<br/>[streamlit_app.py]"]
node_result["Estimate Display<br/>[streamlit_app.py]"]
node_metrics["Model Metrics<br/>[streamlit_app.py]"]

node_user -->|"enters details"| node_inputs
node_inputs -->|"requests estimate"| node_predictor
node_predictor -->|"returns estimate"| node_result
node_user -->|"views metrics"| node_metrics

click node_inputs "https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py"
click node_predictor "https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py"
click node_result "https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py"
click node_metrics "https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py"

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_inputs,node_predictor,node_result toneTeal
class node_metrics toneIndigo
```

## Components

### Other components

- **User**
- [Machine Inputs](https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py): `streamlit_app.py`
- [Cost Formula](https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py): `streamlit_app.py`
- [Estimate Display](https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py): `streamlit_app.py`
- [Model Metrics](https://github.com/bharath-hp/maintenance-predictor/blob/master/streamlit_app.py): `streamlit_app.py`

## Connections

- User → Machine Inputs: enters details (evidence: `streamlit_app.py`)
- Machine Inputs → Cost Formula: requests estimate (evidence: `streamlit_app.py`)
- Cost Formula → Estimate Display: returns estimate (evidence: `streamlit_app.py`)
- User → Model Metrics: views metrics (evidence: `streamlit_app.py`)
