# josearielnunezjan/monitoreo_de_sistemas architecture

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

- Interactive diagram: https://gitdiagram.com/josearielnunezjan/monitoreo_de_sistemas
- Repository: https://github.com/josearielnunezjan/monitoreo_de_sistemas

## Overview

##### Project type and purpose
- This is a lightweight, real-time system-monitoring solution with three main user‐facing components:
a. A web client (HTML/CSS/JS)
b. An Android client (Monitoreo de Sistemas_1_1.0.apk)
c. A Node.js backend that gathers OS metrics and broadcasts updates via WebSockets
- Its goal is to display CPU, memory, disk, and network stats in real time for educational/lab environments.

##### File structure
- Top level
- Aplicación/Monitoreo de Sistemas_1_1.0.apk → Android installer package
- backend/server.js → Node.js + Express + Socket.IO server entry point
- frontend/index.html, index.js, index.css → responsive UI with Bootstrap, FontAwesome, Socket.IO client
- README.md → project description, tech stack, usage notes
- No database directory or ORM files → data flows directly from OS to clients via in-memory Pub/Sub
- The “Systeminformation” library in server.js reads hardware stats; Socket.IO pushes them to all connected clients

##### README for additional insights
- Confirms the tech stack (Node.js/Express/Socket.IO, Bootstrap 5, FontAwesome)
- Describes real-time monitoring features (CPU model/temp, RAM usage, disk partitions/SWAP, network per interface)
- No mention of persistence layer or external APIs beyond Systeminformation

##### Final advice
- Every active component and its protocol
- Don’t omit the Systeminformation module nor the APK client

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client Tier
    subgraph "Client Tier"
        WebClient["Web Client\n(index.html, index.js, index.css)"]:::frontend
        AndroidClient["Android Client\n(Monitoreo de Sistemas_1_1.0.apk)"]:::frontend
    end

    %% Application Tier
    subgraph "Application Tier"
        NodeServer["Node.js Server\n(Express + Socket.IO)"]:::backend
        SystemInfo["Systeminformation Module"]:::backend
    end

    %% Data Source
    OS["Host OS\n(Windows/Linux)"]:::datasource

    %% Connections
    WebClient -->|"HTTP GET UI Assets"| NodeServer
    AndroidClient -->|"HTTP GET UI Assets"| NodeServer
    WebClient -->|"Socket.IO Connect"| NodeServer
    AndroidClient -->|"Socket.IO Connect"| NodeServer
    NodeServer -->|"Queries metrics"| SystemInfo
    SystemInfo -->|"Returns stats"| NodeServer
    NodeServer -->|"Socket.IO JSON payload"| WebClient
    NodeServer -->|"Socket.IO JSON payload"| AndroidClient
    SystemInfo -->|"Reads metrics from"| OS

    %% Click Events
    click WebClient "https://github.com/josearielnunezjan/monitoreo_de_sistemas/blob/main/frontend/index.html"
    click AndroidClient "https://github.com/josearielnunezjan/monitoreo_de_sistemas/blob/main/Aplicación/Monitoreo de Sistemas_1_1.0.apk"
    click NodeServer "https://github.com/josearielnunezjan/monitoreo_de_sistemas/blob/main/backend/server.js"
    click SystemInfo "https://github.com/josearielnunezjan/monitoreo_de_sistemas/blob/main/backend/server.js"

    %% Styles
    classDef frontend fill:#D0E8FF,stroke:#037FFF,color:#000;
    classDef backend fill:#DFFFE0,stroke:#33AA00,color:#000;
    classDef datasource fill:#F0F0F0,stroke:#999999,color:#000;
```
