# ermirmuhadri/asset-ops architecture

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

- Interactive diagram: https://gitdiagram.com/ermirmuhadri/asset-ops
- Repository: https://github.com/ermirmuhadri/asset-ops

## Overview

AssetOps is a browser-based IT asset and service-desk dashboard backed by an Express REST API and SQLite. The main read workflow loads KPI, asset, and ticket data in parallel, then renders each result in the browser. The API also supports asset registration, ticket creation, and ticket status changes. Those mutation routes are documented and implemented server-side, but the sampled browser API exposes only reads. The README documents containerized deployment, which is operational rather than a separate runtime product subsystem.

Main entry points: [`public/js/api.js`](https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/api.js) (HTTP API client), [`public/js/app.js`](https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/app.js) (Dashboard app), [`database.js`](https://github.com/ermirmuhadri/asset-ops/blob/main/database.js) (Relational schema), [`server.js`](https://github.com/ermirmuhadri/asset-ops/blob/main/server.js) (KPI analytics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Dashboard frontend"]
  node_dashboard["Dashboard app<br/>[app.js]"]
  node_api_client["HTTP API client<br/>[api.js]"]
  node_dashboard_ui["Dashboard rendering<br/>[ui.js]"]
end

subgraph group_backend["REST API"]
end

subgraph group_domain["Operations data"]
  node_stats["KPI analytics<br/>[server.js]"]
  node_assets["Asset tracking<br/>[server.js]"]
  node_tickets["Service desk tickets<br/>[server.js]"]
end

subgraph group_storage["SQLite storage"]
  node_schema[("Relational schema<br/>[database.js]")]
end

node_operator(("Dashboard user"))

node_operator -->|"opens"| node_dashboard
node_dashboard -->|"requests data"| node_api_client
node_api_client -->|"fetches KPIs"| node_stats
node_api_client -->|"fetches assets"| node_assets
node_api_client -->|"fetches tickets"| node_tickets
node_dashboard -->|"renders results"| node_dashboard_ui
node_stats -->|"queries metrics"| node_schema
node_assets -->|"reads and writes"| node_schema
node_tickets -->|"reads and writes"| node_schema

click node_dashboard "https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/app.js"
click node_api_client "https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/api.js"
click node_dashboard_ui "https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/ui.js"
click node_stats "https://github.com/ermirmuhadri/asset-ops/blob/main/server.js"
click node_assets "https://github.com/ermirmuhadri/asset-ops/blob/main/server.js"
click node_tickets "https://github.com/ermirmuhadri/asset-ops/blob/main/server.js"
click node_schema "https://github.com/ermirmuhadri/asset-ops/blob/main/database.js"

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_dashboard,node_api_client,node_dashboard_ui,node_operator toneBlue
class node_stats,node_assets,node_tickets toneMint
class node_schema toneRose
```

## Components

### Dashboard frontend

- [Dashboard app](https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/app.js): `public/js/app.js`
- [HTTP API client](https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/api.js): `public/js/api.js`
- [Dashboard rendering](https://github.com/ermirmuhadri/asset-ops/blob/main/public/js/ui.js): `public/js/ui.js`

### Operations data

- [KPI analytics](https://github.com/ermirmuhadri/asset-ops/blob/main/server.js): `server.js`
- [Asset tracking](https://github.com/ermirmuhadri/asset-ops/blob/main/server.js): `server.js`
- [Service desk tickets](https://github.com/ermirmuhadri/asset-ops/blob/main/server.js): `server.js`

### SQLite storage

- [Relational schema](https://github.com/ermirmuhadri/asset-ops/blob/main/database.js): `database.js`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Dashboard app: opens (evidence: `README.md`)
- Dashboard app → HTTP API client: requests data (evidence: `public/js/app.js`)
- HTTP API client → KPI analytics: fetches KPIs (evidence: `public/js/api.js`)
- HTTP API client → Asset tracking: fetches assets (evidence: `public/js/api.js`)
- HTTP API client → Service desk tickets: fetches tickets (evidence: `public/js/api.js`)
- Dashboard app → Dashboard rendering: renders results (evidence: `public/js/app.js`)
- KPI analytics → Relational schema: queries metrics (evidence: `server.js`)
- Asset tracking → Relational schema: reads and writes (evidence: `server.js`)
- Service desk tickets → Relational schema: reads and writes (evidence: `server.js`)
