AI NewsProductivityAnnouncement

Homelab diagram repo hits 1,722 stars after 60 rounds with Claude Code

Goblinmine open-sourced the script behind a homelab network diagram posted to r/homelab. The code was written with Claude Code over about 60 rounds.

AI News

Editorial3 min read

LinkedInX
Goblinmine homelab-diagram repository on GitHub

Why it mattersThe repo includes the data file, the drawing script, and a CLAUDE.md with the design rules. Another homelabber can clone it and adapt the diagram.

An r/homelab network diagram is a specific kind of hand-drawn picture. Every switch port, every cable, every container, all on one page. The owner of the homelab-diagram repository wanted one. They published the code on GitHub on 7 November. The repo had 1,722 stars and 151 forks on 23 November, when GitHub listed it among its 30-day breakout repositories.

The project turns an inventory.yaml file into an SVG and PNG diagram. It runs through a Python script, build.py. What makes the repo interesting is how it was built. The author says the code was written with Claude Code, using Claude Opus 5.5. The work took about 60 rounds of prompt, render, feedback, and change.

How the workflow was shaped

The author documents four stages. First was gathering facts. Claude Code read an Obsidian vault of existing homelab notes. It filled gaps with read-only checks on the live systems. That meant link speeds from the switch, and disk models and pool usage from TrueNAS. It also meant the router model from its info page, hostnames from DNS, and the containers inside each CT.

Second was the first draft. Claude wrote the data file and the drawing script. Then it rendered the PNG. Then it looked at the picture itself, and at zoomed-in crops, to catch overlaps before showing the owner. Third was 60 rounds of feedback. The design rules came out of that loop. Device cards are shaped like folders. Cable line width equals link speed. Container IDs sit on top with the IP below. No internal interface names appear on the picture. Fourth was publishing. Claude made a redacted copy for the public repo. It added the icon download script. It also checked that a fresh clone renders the same image.

What the repo contains

The author is clear that the published script is not a general tool. The layout is hand-placed for one network. Another user has to move coordinates in the code. The code is MIT-licensed. Dependencies are PyYAML, Pillow, and rsvg-convert. Setup uses uv. Service icons download from the homarr-labs project through a separate script.

The repo also carries a CLAUDE.md file aimed at any coding agent that opens it. It describes how the code is structured. It names which parts of the layout are hardcoded. It lists the questions to ask about a network. It also sets out the render-and-check loop and the design rules.

Three example prompts

The README quotes three prompts from the 60 rounds. One opens the project: "Do you know the network diagrams people post on r/homelab? I'd like one for my own network." One is design feedback. The author asked Claude to use line thickness for link speed. They also asked to remove interface names like em0 or igc0 from the picture. One is a correction about which Linux shares qBittorrent, Sonarr, and Radarr can reach.

For a team that uses Claude Code on real work, the interesting part is not the diagram. The author published the artifacts an agent needs to repeat the result. That is the data file, the drawing script, the design rules, and the kind of feedback given in each round. A reader with a different network, or a different single-page artifact in mind, has a working template for the loop.

Source

SourceGitHub

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project