LabwereldHomeInstallationConnectorsWorld modelDownloadNederlands

Labwereld

Your homelab as a living pixel world. · Nederlands

A playful, visual view of your homelab: servers, VMs, containers, networks and backups as a living pixel world. Labwereld is Dutch for "lab world".

The Station style: two space stations with a room per machine
The Station style: two space stations with a room per machine
Looking inside: a container's room with its status board
Looking inside: a container's room with its status board

Labwereld reads services you already run, using read-only tokens only, and never writes anything. You choose which sources to connect: one is enough, and whatever is not there is skipped. There are connectors for Proxmox VE, Proxmox Backup Server, Docker, Prometheus, Zabbix, OPNsense, UniFi, Plex (via the bundled Plex relay or Tautulli), Jellyfin and Paperless-ngx, and any other backup tool can report its status with a small JSON file.

Where the idea came from

A homelab grows: a hypervisor or two, sometimes in more than one location, and on top of that a good number of VMs and containers. Dashboards full of graphs and a stream of notifications do tell you everything, but they are not much fun to look at. Labwereld started as the question whether that could be different: a world where you see at a glance what is running, what is busy, what is broken and when a backup ships out. Ideally one you simply enjoy watching now and then.

This repository contains the collector and four styles (Station, Lijn, Matrix and Resonantie; see docs/en/styles.md). The collector is a single service that reads all sources and turns them into a style-independent world model. Every visual style (space station, city, server closet '96, …) is a separate frontend on the same model.

sources     ──► collector   ──► /api/world   (snapshot, JSON)
(read-only)     world model     /api/events  (Server-Sent Events: world + events)
                + events        /            (frontends from web/)

Principle

The world only shows what is proven. Missing or stale measurements are null (not 0), every status has a state_reason, and a node without evidence is unknown rather than up or down.

Installing

See docs/en/installation.md: docker compose up -d --build starts a demo on http://localhost:8787; then connect your own sources with read-only tokens via /beheer/ (the settings page). To let an AI assistant do it, give it docs/en/assistant.md.

The user interface is in English and Dutch: it follows your browser, and every page has an NL · EN switch.

Running by hand

Requires Python 3.11+, no external packages.

# demo: synthetic data based on the topology, no network needed
python3 -m collector --demo

# live: read-only via the Zabbix API
export ZABBIX_API_URL=https://zabbix.example.lan/api_jsonrpc.php
export ZABBIX_API_TOKEN_FILE=/path/to/token     # or ZABBIX_API_TOKEN
python3 -m collector --config labwereld.toml

# one round as JSON to stdout (handy for checking)
python3 -m collector --once | less

By default the service listens on 127.0.0.1:8787; open that URL for the debug view (web/index.html), a live table with an event log.

Files

PathContents
collector/connectors/Connectors (Proxmox, PBS, Zabbix, Prometheus, Docker, OPNsense, UniFi, Plex relay, Tautulli, Jellyfin, Paperless-ngx, open backup status); see docs/en/connectors.md
contrib/plex-relay/Plex relay for the Plex host: live sessions without sharing the Plex token
collector/compose.pyComposer: batches from all connectors → world model
collector/runtime.pyScheduler: every connector on its own interval
collector/zabbix.py, unifi.pyAPI clients (read-only)
collector/events.pyDerives events (outage, alarm, backup, spike)
collector/demo.pySynthetic source for development and demos
collector/server.pyHTTP + SSE, serves web/
collector/beheer.py/api/config without secrets; reloads when the configuration changes
web/beheer/Settings page: edit the configuration, get new files and a diff (model.js is pure and tested)
web/Frontends: station/, lijn/, matrix/, resonantie/, debug/ and shared shared/
docs/en/styles.mdHow each style depicts data and events
docs/en/world-model.mdContract for frontends: fields and events
CHANGELOG.mdWhat changed per version (Dutch and English)
tests/Tests: python3 -m unittest discover -s tests -t .

Code comments and identifiers that describe the domain are partly in Dutch; the world model's field names are English.

New node or site

Nodes are discovered: Zabbix hosts (site based on cidrs) and running Proxmox guests appear by themselves (auto_discovered: true), and the same machine seen by two sources becomes one node (see docs/en/connectors.md). A [[node]] block in your labwereld.toml gives a node a fixed name, role, site or link; in /beheer/ you adopt a discovered node or hide it ([discovery] ignore). A minimal configuration without nodes is in config/voorbeeld.toml, an extensive (fictional) one in tests/fixtures/testlab.toml.

Security

  • The collector only makes read calls. Use a dedicated user with read-only rights and its own token for every source; tokens stay on the server in files and never reach the browser.
  • The world model contains host names and topology. Only publish it on your LAN or VPN; use --demo to show it anywhere else.
  • /beheer/ is protected by an admin token as soon as you use your own configuration (see the installation guide).

How it is made

The idea behind Labwereld is mine: someone who very much enjoys running a homelab as a hobby. I am not a programmer. The idea, the decisions and the endless testing in my own homelab are mine; nearly all of the code and documentation was written by Claude (Anthropic). Without a skilled programmer like that to help me I could never have built this, and it would have stayed an idea in my head.

Not everyone will be happy about that, and in a way I understand why. That is why I would rather say so up front. Questions, bugs and improvements are welcome.

Licence and contact

EUPL-1.2 (European Union Public Licence, legally valid in all official EU languages). Questions, bugs or ideas: labwereld@wiehie.nl.

EUPL-1.2 · made with Claude · questions: labwereld@wiehie.nl