Goblinmine/homelab-diagram
About
Browser editor for homelab network diagrams that knows switch ports, VLANs, servers and VMs. Describe your lab or let an AI do it, then fine-tune by drag and drop. C#/Blazor.
Systems & InfrastructureMeasured star growth
- in 24h
- +21
- in 7 days
- +152
- in 15 days
- +745
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalhomelab-diagram
Network diagrams for your homelab that know what a switch port, a VLAN and a Proxmox container are.
Describe your lab (or let an AI do it), then fine-tune the diagram by drag and drop. Runs in your browser, your data stays with you.
Try it online · Preview of the next version · Get started · Three ways to your diagram · Your data · Roadmap · Using the editor · Contributing

Three ways to your diagram
|
By hand Drag switches, routers, servers and VMs from the palette, connect ports, set networks and VLANs. Cables route themselves. |
With an AI An AI interviews you about your lab and writes the project file ( CLAUDE.md tells it how). Open the file and the editor arranges everything.
|
From what you have Open reads an old inventory.yaml from the original script; Import device list takes a CSV or JSON from a scan, DHCP leases or a spreadsheet.
|
Made for networks, not just boxes and arrows
Switches have real port rows with the networks of every port. Line width shows the link speed, trunks look different from access links,
and cards take the colour of their network. Any device holds hardware, VMs, containers, apps, storage pools and zones such as a DMZ.
Document the whole lab, not just the rack
Wi-Fi clients, WireGuard tunnels, Tailscale networks, UPS power, LACP bonds, port forwards and backup jobs each have their own kind of line.
Clusters list their nodes; rooms, racks and sites hold what is drawn inside them. Every card keeps notes, links, tags, serials and warranty dates.
The Inventory view lists every device and app with its IP, network and location, grouped as you like, with a details pane for each; type in your devices there and the diagram arranges and cables them. It edits many at once, exports CSV or Markdown, and points out duplicate IPs and broken links.
Structure where it helps, freedom where you want it
Cards go wherever you drag them. VMs and containers flow into columns inside their device, so the 40th container doesn't mean tidying up the other 39.
Double-click to rename, right-click for actions, copy and paste, undo everything. Notes, areas and custom values cover what the built-in parts don't.
Safe to share
Export a PNG or SVG with your real domain and Wi-Fi names replaced, ready for Reddit, a wiki or your docs.
Get started
In your browser: open goblinmine.github.io/homelab-diagram, the latest release. Nothing to install; everything runs in your browser and your diagram is saved there.
The preview of the next version: goblinmine.github.io/homelab-diagram/next is built from main after every change, so you can try what's coming. Things may break there. It keeps its diagrams apart from the release version and can open a copy of yours on its first start.
On your own web server: every release has the editor as a static site, homelab-diagram-vX.Y.Z-web.zip. Any web server can host it; the README.txt inside says how to serve it under a sub-path.
With Docker: on a NAS, a Pi or any Docker host, see Self-host with Docker below.
On your computer: download the zip for your system from the latest release, extract it and start the script in it. Nothing to install, no .NET needed.
| System | Zip | Start |
|---|---|---|
| Windows | homelab-diagram-vX.Y.Z-win-x64.zip |
double-click start.bat |
| macOS, Apple silicon (M1 and later) | …-osx-arm64.zip |
double-click start.command |
| macOS, Intel | …-osx-x64.zip |
double-click start.command |
| Linux | …-linux-x64.zip, or …-linux-arm64.zip (Raspberry Pi OS 64-bit, ARM) |
./start.sh in a terminal |
A small local server starts on http://127.0.0.1:4780 and opens the editor in your browser. Click Load example lab to see how a finished diagram is built, Start with a list of your devices to type in your own lab, or start with an empty one. When you close the tab, the server stops by itself after about 10 seconds.
The app isn't signed with a certificate, so Windows and macOS ask once on the first start. Windows ("Windows protected your PC"): More info → Run anyway. macOS refuses start.command the first time: on macOS 15 and later click Done, then System Settings → Privacy & Security → Open Anyway; on older versions right-click start.command → Open. The README.txt in the zip has the details.
From source, with the .NET 11 SDK:
git clone https://github.com/Goblinmine/homelab-diagram.git
cd homelab-diagram
dotnet run --project src/HomelabDiagram.Server
Options (after the start script, or after -- with dotnet run): --port 5000 uses a fixed port, --no-browser doesn't open the browser. --hosted --port 8080 runs it as a server for your LAN: it listens on all addresses and keeps running when tabs close, and other devices open it as http://<server>:8080. Over plain http:// the browser doesn't let the editor read the clipboard or show a save dialog; behind a reverse proxy with HTTPS it can (see Self-host with Docker).
How to work in the editor (adding devices, connecting ports, keyboard shortcuts) is in Using the editor. In the app, press ? for the keyboard overview.
Self-host with Docker
Releases after v0.3.0 also come as a Docker image for linux/amd64 and linux/arm64 (a Raspberry Pi with a 64-bit OS): ghcr.io/goblinmine/homelab-diagram. It serves the editor on port 8080:
docker run -d --name homelab-diagram -p 8080:8080 --restart unless-stopped ghcr.io/goblinmine/homelab-diagram:latest
Then open http://<your-server>:8080. With Docker Compose, in a compose.yaml (or your existing stack):
services:
homelab-diagram:
image: ghcr.io/goblinmine/homelab-diagram:latest
ports:
- "8080:8080" # another port on the host: "9000:8080"
restart: unless-stopped
Update: docker compose pull && docker compose up -d, or docker pull ghcr.io/goblinmine/homelab-diagram:latest and create the container again. Instead of latest you can pin a version (X.Y.Z) or follow a minor version's fixes (X.Y).
Your diagrams stay in each browser. The server only hands out the editor: it stores nothing, has no accounts and needs no volume. Every visitor's diagrams are autosaved in their own browser and in the .homelab.json files they save, so back up those files, not the container. Each address has its own autosave: before you switch from http://nas:8080 to https://diagram.example.com, save your diagram as a file and open it there. The container runs as a non-root user and also with --read-only.
HTTPS and reverse proxies: put it behind Caddy, Traefik, nginx or Nginx Proxy Manager like any web app, pointed at port 8080; nothing to configure in the container. Serve it at the root of a (sub)domain (https://diagram.example.com/); a sub-path (https://example.com/diagram/) doesn't work with the image yet, the static -web.zip above can do that. Plain http:// from other devices works too, with two things the browser allows only over HTTPS (or on the server itself as localhost): Open project from clipboard can't read the clipboard (save the JSON as a file and open it), and Chrome and Edge download saved files instead of asking where to put them.
Your data stays with you
- The editor runs in your browser, also on the online version. Your diagram is autosaved in the browser and in the
.homelab.jsonfiles you save; it is not uploaded anywhere. - The local version's server only serves the app on
127.0.0.1(unless you start it with--hosted) and stops when you close the tab. The Docker image serves it to your network and keeps running; it stores nothing either, and diagrams stay in each visitor's browser. - The only outside requests are service icons, fetched from the dashboard-icons CDN when you pick them. They are then stored in your project file.
- Exports can hide your domain and Wi-Fi names (on by default).
Roadmap
- An MCP connection, so an AI assistant can edit the open diagram live
- A light theme, a hosted version
- The Docker image under a sub-path (
https://example.com/diagram/), set by an environment variable
Ideas and feedback are welcome in Discussions. The direction of the editor is discussed in #8, and the project's logo and name in #10. Issues are for bugs, with steps to reproduce.
The original Python script (build.py + inventory.yaml) is still available on the legacy branch.
Development
dotnet test # all tests
dotnet run --project src/HomelabDiagram.Server -- --port 4799 --no-browser
scripts/publish.sh linux-x64 # → dist/homelab-diagram-v<version>-linux-x64.zip
docker buildx build -t homelab-diagram . # the Docker image (BuildKit), then: docker run -p 8080:8080 homelab-diagram
How the code is organised, the rules for changes, and how to add a translation: CONTRIBUTING.md.
Background
This started as the script behind the network diagram of my own homelab, which I posted on r/homelab. It was built together with Claude in Claude Code. After the post got a lot of interest, the script became this editor, so that other labs work without editing code.
License
The code and the built-in icons are MIT licensed, see LICENSE.
- Service icons come from homarr-labs/dashboard-icons and are downloaded on demand. The logos belong to their projects.
- The fonts Fira Sans and Fira Code are bundled under the SIL Open Font License (licences in
src/HomelabDiagram.App/wwwroot/fonts/).
Explore related projects
Loading…