A self-hosted, open-source web application for visually mapping out your entire homelab infrastructure. Whether you're running a single Raspberry Pi or a full rack of servers with Kubernetes, Homelab Diagram gives you a clean, interactive canvas to document it all.
If you've ever tried to explain your homelab setup to someone (or even to yourself six months later), you know how hard it is to keep track of what connects to what. Homelab Diagram solves that by giving you a drag-and-drop canvas where you can lay out every piece of your infrastructure — physical hardware, network topology, Kubernetes workloads, and software services — all in one place.
Everything runs in a single Docker container with no external database required. Your diagrams are saved as JSON files, making them easy to back up, version control, or migrate.
Build your diagram with four categories of components:
Ctrl+S / Cmd+Sdocker run -d \
--name homelab-diagram \
-p 6767:6767 \
-v diagram-data:/data/diagrams \
mntdew1031/homelab-diagram:latest
Open your browser to http://localhost:6767
services:
homelab-diagram:
image: mntdew1031/homelab-diagram:latest
pull_policy: always
container_name: homelab-diagram
ports:
- "6767:6767"
volumes:
- diagram-data:/data/diagrams
environment:
- DATA_DIR=/data/diagrams
restart: unless-stopped
volumes:
diagram-data:
driver: local
Paste the Docker Compose YAML above into the Custom App section. The app will be available on port 6767.
Map out your physical network — routers, switches, VLANs, subnets — and see how everything connects. Add IP addresses, VLAN IDs, and gateway info directly on each node.
Lay out your K8s workloads alongside the hardware they run on. Track deployments, services, ingress routes, Helm releases, and how they relate to each other.
Use Homelab Diagram to plan out new infrastructure before buying hardware or deploying services. Move things around, experiment with layouts, and export your plan.
Export your diagram as JSON to share with others, back up to git, or reference later when troubleshooting at 2am.
| Layer | Technology |
|---|---|
| Frontend | React, ReactFlow, Vite |
| Backend | Python, FastAPI, Uvicorn |
| Storage | JSON files (no database required) |
| Container | Docker (multi-stage build) |
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
You are free to use, modify, and distribute this software. If you run a modified version as a network service, you must make your source code available under the same license.
See LICENSE for full details.
Content type
Image
Digest
sha256:0006649ae…
Size
56.1 MB
Last updated
7 months ago
docker pull mntdew1031/homelab-diagram