whereismyai
Homelab Diagram
Homelab Diagram is a Python script that renders a network diagram from a YAML file into SVG and PNG formats.
This Python script turns a YAML file describing a home network into a detailed SVG and PNG diagram in the style of r/homelab network visuals. Inventory data holds VLANs, devices, switch ports, port forwards, hardware, containers, and pools. The layout uses hardcoded coordinates in Python, meaning users must adjust placement in the code to match their own network layouts. It supports automatic redaction to replace real domains and SSIDs with generic values for public sharing. Requirements include Python 3 with PyYAML, rsvg-convert, and specific fonts.
Homelab Diagram at a glance
Key features
- Converts YAML network inventories into SVG and PNG diagrams
- Shows link speeds via cable line widths and trunk representations
- Displays device names, types, models, IP addresses, and operating systems
- Includes Proxmox hardware, virtual machines, TrueNAS pools, and DMZ containers
- Automates redaction of real domain names and SSIDs for public sharing
- Measures text widths with Pillow for precise label and badge fitting
- Downloads service icons via an included fetch script
Use it for
- Draw an r/homelab-style network diagram from a YAML file
- Generate public network diagrams with redacted sensitive data
- Visualize switch ports, VLAN tags, and link speeds
Alternatives to Homelab Diagram
- Stack Diagram — Generates architecture diagrams with official logos from a single sentence.
- Open Diagram — Python building blocks for dense architecture diagrams that check their own layout.
- OpenCode — Works with 75+ model providers, local models, and existing subscriptions
- OpenFlowKit 2 — Generates architecture diagrams automatically from GitHub repositories and code files.
- Shim — It offers zero runtime dependencies, no telemetry, and a static binary.
- CodeGraph — It eliminates file crawling, reducing AI agent tool calls by 88% and cutting costs.
- Diagram Design — Generates editorial-quality visual types matched to brand colors and typography in seconds.
- SeeCode — Turns agent specs into animated, interactive HTML diagrams with multiple export options.
- Yantra — Automatically lays out diagrams and checks them with a validator before export.
- Lantern — Steppable code animations with deep links, SVG exports, and open GET APIs.
- Codebase Guide — It generates accurate documentation with diagrams directly from the source code.
- MCP Server Lab — Measures tool selection, malformed calls, and task completion for MCP server schemas.
All Homelab Diagram alternatives