# iky-art/clsdh architecture

> Architecture diagram of the GitHub repository iky-art/clsdh, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iky-art/clsdh
- Repository: https://github.com/iky-art/clsdh

## Overview

CLSDH is a dependency-free C++ multi-tool CLI: a user invokes a named command, the single binary dispatches it to a tool handler, and the handler prints results or runs a live monitor. README documents 49 tools across network, system, file and encoding utilities; only selected implementations are excerpted, so the graph preserves those capability areas without asserting unsampled internal links. The excerpt confirms command dispatch and selected network, system and file behavior; other tool coverage is represented at the main source-file level.

Main entry points: [`clsdh.cpp`](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp) (Command dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI runtime"]
  node_dispatch["Command dispatch<br/>[clsdh.cpp]"]
  node_output["Help and version<br/>[clsdh.cpp]"]
end

subgraph group_network["Network tools"]
  node_network_tools["Network tools<br/>[clsdh.cpp]"]
  node_tcp_udp["TCP and UDP checks<br/>[clsdh.cpp]"]
  node_ping_dns["Ping and DNS<br/>[clsdh.cpp]"]
  node_http_tools["HTTP utilities<br/>[clsdh.cpp]"]
end

subgraph group_system["System tools"]
  node_system_tools["System tools<br/>[clsdh.cpp]"]
  node_monitoring["Live monitoring<br/>[clsdh.cpp]"]
  node_host_info["Host information<br/>[clsdh.cpp]"]
end

subgraph group_utility["File and encoding"]
  node_file_tools["File utilities<br/>[clsdh.cpp]"]
  node_encoding_tools["Encoding utilities<br/>[clsdh.cpp]"]
end

node_user(("CLI user"))
node_network{{"Network and remote hosts"}}
node_host_os{{"Local OS and files"}}

node_user -->|"invokes"| node_dispatch
node_dispatch -->|"prints help"| node_output
node_dispatch -->|"dispatches"| node_network_tools
node_dispatch -->|"dispatches"| node_system_tools
node_dispatch -.->|"dispatches"| node_file_tools
node_dispatch -.->|"dispatches"| node_encoding_tools
node_network_tools -->|"includes"| node_tcp_udp
node_network_tools -->|"includes"| node_ping_dns
node_network_tools -->|"includes"| node_http_tools
node_tcp_udp -->|"connects"| node_network
node_ping_dns -->|"resolves and probes"| node_network
node_http_tools -->|"sends requests"| node_network
node_system_tools -->|"includes"| node_monitoring
node_system_tools -->|"includes"| node_host_info
node_monitoring -->|"reads statistics"| node_host_os
node_host_info -->|"reads system info"| node_host_os
node_file_tools -.->|"reads files"| node_host_os

click node_dispatch "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_output "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_network_tools "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_tcp_udp "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_ping_dns "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_http_tools "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_system_tools "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_monitoring "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_host_info "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_file_tools "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"
click node_encoding_tools "https://github.com/iky-art/clsdh/blob/main/clsdh.cpp"

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_dispatch,node_output,node_user toneBlue
class node_network_tools,node_tcp_udp,node_ping_dns,node_http_tools toneAmber
class node_system_tools,node_monitoring,node_host_info toneMint
class node_file_tools,node_encoding_tools toneRose
class node_network,node_host_os toneIndigo
```

## Components

### CLI runtime

- [Command dispatch](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [Help and version](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`

### Network tools

- [Network tools](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [TCP and UDP checks](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [Ping and DNS](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [HTTP utilities](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`

### System tools

- [System tools](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [Live monitoring](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [Host information](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`

### File and encoding

- [File utilities](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`
- [Encoding utilities](https://github.com/iky-art/clsdh/blob/main/clsdh.cpp): `clsdh.cpp`

### Other components

- **CLI user**
- **Network and remote hosts**
- **Local OS and files**

## Connections

- CLI user → Command dispatch: invokes (evidence: `README.md`)
- Command dispatch → Help and version: prints help (evidence: `clsdh.cpp`)
- Command dispatch → Network tools: dispatches (evidence: `clsdh.cpp`)
- Command dispatch → System tools: dispatches (evidence: `clsdh.cpp`)
- Command dispatch → File utilities: dispatches (evidence: `clsdh.cpp`)
- Command dispatch → Encoding utilities: dispatches (evidence: `clsdh.cpp`)
- Network tools → TCP and UDP checks: includes (evidence: `clsdh.cpp`)
- Network tools → Ping and DNS: includes (evidence: `clsdh.cpp`)
- Network tools → HTTP utilities: includes (evidence: `clsdh.cpp`)
- TCP and UDP checks → Network and remote hosts: connects (evidence: `clsdh.cpp`)
- Ping and DNS → Network and remote hosts: resolves and probes (evidence: `clsdh.cpp`)
- HTTP utilities → Network and remote hosts: sends requests (evidence: `clsdh.cpp`)
- System tools → Live monitoring: includes (evidence: `clsdh.cpp`)
- System tools → Host information: includes (evidence: `clsdh.cpp`)
- Live monitoring → Local OS and files: reads statistics (evidence: `clsdh.cpp`)
- Host information → Local OS and files: reads system info (evidence: `clsdh.cpp`)
- File utilities → Local OS and files: reads files
