# must-zeus0036/mini-diod architecture

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

- Interactive diagram: https://gitdiagram.com/must-zeus0036/mini-diod
- Repository: https://github.com/must-zeus0036/mini-diod

## Overview

mini-diod is a small, one-way UDP text-transfer tool. The sender reads keyboard lines, prefixes each with a big-endian sequence number, and sends datagrams; the receiver checks sequence continuity and prints received text without replying. The README documents this workflow, and the excerpts show its implementation. The standalone `src/main.rs` is unrelated to the sender/receiver workflow; no additional runtime subsystem is evidenced.

Main entry points: [`src/bin/sender.rs`](https://github.com/must-zeus0036/mini-diod/blob/main/src/bin/sender.rs) (Read and send), [`src/bin/receiver.rs`](https://github.com/must-zeus0036/mini-diod/blob/main/src/bin/receiver.rs) (Receive and check)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sending["Sending"]
  node_sender["Read and send<br/>[sender.rs]"]
end

subgraph group_receiving["Receiving"]
  node_receiver["Receive and check<br/>[receiver.rs]"]
end

node_operator(("Keyboard operator"))
node_terminal(("Receiver terminal"))

node_operator -->|"enters lines"| node_sender
node_sender -->|"sends UDP packets"| node_receiver
node_receiver -->|"prints text and warnings"| node_terminal

click node_sender "https://github.com/must-zeus0036/mini-diod/blob/main/src/bin/sender.rs"
click node_receiver "https://github.com/must-zeus0036/mini-diod/blob/main/src/bin/receiver.rs"

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_sender toneBlue
class node_receiver toneAmber
class node_operator,node_terminal toneIndigo
```

## Components

### Sending

- [Read and send](https://github.com/must-zeus0036/mini-diod/blob/main/src/bin/sender.rs): `src/bin/sender.rs`

### Receiving

- [Receive and check](https://github.com/must-zeus0036/mini-diod/blob/main/src/bin/receiver.rs): `src/bin/receiver.rs`

### Other components

- **Keyboard operator**
- **Receiver terminal**

## Connections

- Keyboard operator → Read and send: enters lines (evidence: `README.md`)
- Read and send → Receive and check: sends UDP packets (evidence: `README.md`)
- Receive and check → Receiver terminal: prints text and warnings (evidence: `src/bin/receiver.rs`)
