spinagram
Release notes

What's new in 0.7

Homelab network diagrams from an inventory, a self-contained HTML page, the homelab engine in Rust, and slides as a preview.

spinagram 0.7 draws the r/homelab network diagram from an inventory. You list your switches, devices and servers, and spinagram places every card, port and cable for you.

A homelab diagram drawn from an inventory

Homelab diagrams

Write a type: homelab YAML file, or use the Homelab verbs in Python. There are no coordinates. The diagram shows:

  • The path in: internet, ISP box and firewall.
  • Switches: every RJ45 and SFP port, with its VLANs and link speed.
  • Devices: under their ports, each with its SSIDs.
  • Servers: hardware, guests, storage pools and VLAN zones, including Kubernetes namespaces.

Cables are as thick as their speed. They never share a lane, and where two must cross, one bridges over the other.

Other options:

  • Light theme: -t homelab-light gives the same geometry on a light page.
  • Redaction: redact: hides your real domain and SSIDs for a public post.
  • Building blocks: the cards, port rows, tiles, chips and legend also work in hand-placed diagrams, and kind: folder, jack, sfp, disk and cloud work in plain YAML.

See Homelab diagrams.

The design is based on Goblinmine/homelab-diagram by Goblinmine (MIT). The light mode follows its pull request #4 by 01Petard, and the HTML page follows pull request #6 by trapplab.

A self-contained HTML page

spinagram render lab.yaml -f html writes a single page with no external requests, and it opens from file://:

  • Drag to pan and scroll to zoom.
  • Hostnames are links.
  • On a homelab diagram, / searches every service by name, hostname, guest, server or VLAN. Picking one zooms to its card.

The page works for any diagram, not only homelabs.

The homelab engine in Rust

The new spinagram-homelab crate handles the inventory schema and its validation, the placement of every card and cable, and the drawing:

  • On by default: it runs whenever the Rust core is on. The output is identical to the Python reference, checked on 2,000 random labs as well as the examples.
  • In the browser: the browser build can expand an inventory (expandHomelab, behind the opt-in homelab feature) and write the HTML page (htmlPage).
  • Schema: the inventory's JSON schema is published in rust/schema/homelab.schema.json.

Slides, a preview

spinagram deck new|check|build makes presentations from React and TSX, with no browser and no Node:

  • PowerPoint export: text, shapes, tables and charts stay native and editable.
  • Charts: ten chart types.
  • Checks: overlaps, off-slide elements, unsupported CSS and missing data ids.
  • Browser preview: the browser preview gives the same bytes as the server.
  • Tailwind CSS v4.
  • Embedded diagrams: spinagram diagrams can be placed on slides.

Every number comes from a declared source, and the speaker notes say where. The slides API may still change.

On this page