# blizzardo1/ipam architecture

> Architecture diagram of the GitHub repository blizzardo1/ipam, 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/blizzardo1/ipam
- Repository: https://github.com/blizzardo1/ipam

## Overview

IPAM is a small Windows desktop tool for visualizing and editing IPv4 home-network allocations. The user creates or loads a network, views its address entries, edits device names and enrollment statuses, and saves configuration or imports CSV updates. Its domain stages are subnet/address generation, network and allocation modeling, interactive editing, and persistence/import. The WAP project is present, but the supplied excerpts do not establish it as part of this workflow. Edges reflect shown calls or README context; unsampled UI wiring and any WAP relationship are omitted.

Main entry points: [`IPAM/IpamWindow.cs`](https://github.com/blizzardo1/ipam/blob/master/IPAM/IpamWindow.cs) (IPAM window), [`IPAM/Network.cs`](https://github.com/blizzardo1/ipam/blob/master/IPAM/Network.cs) (Network model), [`IPAM/IP.cs`](https://github.com/blizzardo1/ipam/blob/master/IPAM/IP.cs) (Address entry view), [`IPAM/Config.cs`](https://github.com/blizzardo1/ipam/blob/master/IPAM/Config.cs) (Configuration manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop workflow"]
  node_entry["Application startup<br/>[Program.cs]"]
  node_window["IPAM window<br/>[IpamWindow.cs]"]
  node_splash["Loading progress<br/>[SplashScreen.cs]"]
  node_ipview["Address entry view<br/>[IP.cs]"]
  node_edit["Entry editor<br/>[EditIpItem.cs]"]
end

subgraph group_domain["Network domain"]
  node_helper["Address utilities<br/>[Helper.cs]"]
  node_subnet["Subnet model<br/>[Subnet.cs]"]
  node_network["Network model<br/>[Network.cs]"]
  node_addressdata["Address allocation<br/>[IpItemDto.cs]"]
  node_status["Enrollment statuses<br/>[Enrollment.cs]"]
end

subgraph group_io["Import and persistence"]
  node_config["Configuration manager<br/>[Config.cs]"]
  node_ipconverter["IP JSON converter"]
  node_csv["CSV import parser<br/>[Helper.cs]"]
  node_jsonfile["ipam.json file"]
  node_csvfile["CSV file"]
end

node_user(("Network operator"))

node_user -->|"operates"| node_window
node_entry -->|"opens"| node_window
node_window -->|"updates"| node_splash
node_window -->|"generates subnets"| node_helper
node_window -->|"loads configuration"| node_config
node_window -->|"creates networks"| node_network
node_window -->|"generates addresses"| node_helper
node_window -->|"renders entries"| node_ipview
node_ipview -->|"opens editor"| node_edit
node_ipview -->|"calculates contrast"| node_helper
node_ipview -->|"updates allocations"| node_network
node_edit -->|"selects status"| node_status
node_network -->|"stores entries"| node_addressdata
node_network -->|"uses subnet"| node_subnet
node_subnet -->|"converts prefix"| node_helper
node_addressdata -->|"stores status"| node_status
node_window -->|"parses import"| node_csv
node_csv -->|"builds network"| node_network
node_window -->|"saves configuration"| node_config
node_config -->|"configures serialization"| node_ipconverter
node_config -->|"reads and writes"| node_jsonfile
node_window -->|"reads selected file"| node_csvfile

click node_entry "https://github.com/blizzardo1/ipam/blob/master/IPAM/Program.cs"
click node_window "https://github.com/blizzardo1/ipam/blob/master/IPAM/IpamWindow.cs"
click node_splash "https://github.com/blizzardo1/ipam/blob/master/IPAM/SplashScreen.cs"
click node_ipview "https://github.com/blizzardo1/ipam/blob/master/IPAM/IP.cs"
click node_edit "https://github.com/blizzardo1/ipam/blob/master/IPAM/EditIpItem.cs"
click node_helper "https://github.com/blizzardo1/ipam/blob/master/IPAM/Helper.cs"
click node_subnet "https://github.com/blizzardo1/ipam/blob/master/IPAM/Subnet.cs"
click node_network "https://github.com/blizzardo1/ipam/blob/master/IPAM/Network.cs"
click node_addressdata "https://github.com/blizzardo1/ipam/blob/master/IPAM/IpItemDto.cs"
click node_status "https://github.com/blizzardo1/ipam/blob/master/IPAM/Enrollment.cs"
click node_config "https://github.com/blizzardo1/ipam/blob/master/IPAM/Config.cs"
click node_ipconverter "https://github.com/blizzardo1/ipam/blob/master/IPAM/IPAddressConverter.cs"
click node_csv "https://github.com/blizzardo1/ipam/blob/master/IPAM/Helper.cs"

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_entry,node_window,node_splash,node_ipview,node_edit toneBlue
class node_helper,node_subnet,node_network,node_addressdata,node_status toneAmber
class node_config,node_ipconverter,node_csv,node_jsonfile,node_csvfile toneMint
class node_user toneIndigo
```

## Components

### Desktop workflow

- [Application startup](https://github.com/blizzardo1/ipam/blob/master/IPAM/Program.cs): `IPAM/Program.cs`
- [IPAM window](https://github.com/blizzardo1/ipam/blob/master/IPAM/IpamWindow.cs): `IPAM/IpamWindow.cs`
- [Loading progress](https://github.com/blizzardo1/ipam/blob/master/IPAM/SplashScreen.cs): `IPAM/SplashScreen.cs`
- [Address entry view](https://github.com/blizzardo1/ipam/blob/master/IPAM/IP.cs): `IPAM/IP.cs`
- [Entry editor](https://github.com/blizzardo1/ipam/blob/master/IPAM/EditIpItem.cs): `IPAM/EditIpItem.cs`

### Network domain

- [Address utilities](https://github.com/blizzardo1/ipam/blob/master/IPAM/Helper.cs): `IPAM/Helper.cs`
- [Subnet model](https://github.com/blizzardo1/ipam/blob/master/IPAM/Subnet.cs): `IPAM/Subnet.cs`
- [Network model](https://github.com/blizzardo1/ipam/blob/master/IPAM/Network.cs): `IPAM/Network.cs`
- [Address allocation](https://github.com/blizzardo1/ipam/blob/master/IPAM/IpItemDto.cs): `IPAM/IpItemDto.cs`
- [Enrollment statuses](https://github.com/blizzardo1/ipam/blob/master/IPAM/Enrollment.cs): `IPAM/Enrollment.cs`

### Import and persistence

- [Configuration manager](https://github.com/blizzardo1/ipam/blob/master/IPAM/Config.cs): `IPAM/Config.cs`
- [IP JSON converter](https://github.com/blizzardo1/ipam/blob/master/IPAM/IPAddressConverter.cs): `IPAM/IPAddressConverter.cs`
- [CSV import parser](https://github.com/blizzardo1/ipam/blob/master/IPAM/Helper.cs): `IPAM/Helper.cs`
- **ipam.json file**
- **CSV file**

### Other components

- **Network operator**

## Connections

- Network operator → IPAM window: operates (evidence: `README.md`)
- Application startup → IPAM window: opens (evidence: `IPAM/Program.cs`)
- IPAM window → Loading progress: updates (evidence: `IPAM/IpamWindow.cs`)
- IPAM window → Address utilities: generates subnets (evidence: `IPAM/IpamWindow.cs`)
- IPAM window → Configuration manager: loads configuration (evidence: `IPAM/IpamWindow.cs`)
- IPAM window → Network model: creates networks (evidence: `IPAM/IpamWindow.cs`)
- IPAM window → Address utilities: generates addresses (evidence: `IPAM/IpamWindow.cs`)
- IPAM window → Address entry view: renders entries (evidence: `IPAM/IpamWindow.cs`)
- Address entry view → Entry editor: opens editor (evidence: `IPAM/IP.cs`)
- Address entry view → Address utilities: calculates contrast (evidence: `IPAM/IP.cs`)
- Address entry view → Network model: updates allocations (evidence: `IPAM/IP.cs`)
- Entry editor → Enrollment statuses: selects status (evidence: `IPAM/EditIpItem.cs`)
- Network model → Address allocation: stores entries (evidence: `IPAM/Network.cs`)
- Network model → Subnet model: uses subnet (evidence: `IPAM/Network.cs`)
- Subnet model → Address utilities: converts prefix (evidence: `IPAM/Subnet.cs`)
- Address allocation → Enrollment statuses: stores status (evidence: `IPAM/IpItemDto.cs`)
- IPAM window → CSV import parser: parses import (evidence: `IPAM/IpamWindow.cs`)
- CSV import parser → Network model: builds network (evidence: `IPAM/Helper.cs`)
- IPAM window → Configuration manager: saves configuration (evidence: `IPAM/IpamWindow.cs`)
- Configuration manager → IP JSON converter: configures serialization (evidence: `IPAM/Config.cs`)
- Configuration manager → ipam.json file: reads and writes (evidence: `IPAM/Config.cs`)
- IPAM window → CSV file: reads selected file (evidence: `IPAM/IpamWindow.cs`)
