Skip to content

02Project

Afterlab

A self-hosted personal lab that connects infrastructure, physical devices, telemetry and AI into a single evolving system.

Afterlab Mission Control: Agent status, attention items, runtimes, traffic, the Composite Planner, features, runtime events, items to review and recent actions.
The MiniPC view of the Afterlab panel: CPU, RAM, storage and temperature, with a 24-hour CPU history.
Mission Control, the whole lab; below it, the MiniPC that runs it. Real captures of the private panel, demo data.

The premise

Beyond a home lab.

It began as a home lab. Over time I wanted to go further than checking whether services were running: could the environment observe its own state, remember what had happened, and connect its software with physical devices and a useful intelligent interface?

Afterlab became the architecture for exploring that question — a personal system built to evolve without turning every experiment into another isolated tool. Infrastructure monitoring, device state, knowledge, automation, physical interfaces and AI can each evolve on their own while sharing the same underlying system.

It is built for one operator. There is no sign-up, no multi-tenancy and no public surface beyond the private web panel.

At a glance

Firmware devices on the network
7
Host sampling: CPU, RAM, disk, temperature
5min
Of host history, read as history
90days
Independent access gates
2

As of November 2026.

Architecture

One system, multiple layers.

  1. 01

    Core

    A self-hosted MiniPC runs the core services in Docker. At the centre, a FastAPI Agent is the operational authority: it sits between infrastructure, stored state and physical devices, and owns every write.

    Pixel, Mission Control and the Knowledge Vault live beside it. Mosquitto, Ollama, Open WebUI with Whisper and Uptime Kuma are consumed, not managed; Docker is read only.

  2. 02

    Physical layer

    Devices such as the Pixel CrowPanel, Afterlab ADV and the ESP32 sensor nodes publish their own state over MQTT and consume information from the wider system. Personal computers and the ADV use a paired device token instead of the web login.

    Devices — nodes detected over MQTT. Real capture, demo data.

    01 / 01

    Afterlab’s Devices view: boards detected over MQTT, with identity, signal, firmware and telemetry.

    Devices — nodes detected over MQTT. Real capture, demo data.

  3. 03

    Data and access

    The web panel runs separately on Hetzner and never talks to the MiniPC directly. Cloudflare Access only admits the web server, with a token the browser never sees; the Agent then checks the user against Supabase auth.

    Supabase provides authentication and durable application data, written only by the Agent.

  4. 04

    The whole system

    These are not standalone demos. They speak through one architecture and are designed to become more useful as the system gains context.

    01 / 01

    The original Afterlab system map: devices, the MiniPC services and the cloud gates, with MQTT, HTTPS, tunnel and JWT links.

    The original Afterlab system map: devices, the MiniPC services and the cloud gates, with MQTT, HTTPS, tunnel and JWT links.

  1. Devices · 8

    • Lab NodeMQTTNeoPixel · PIR · IR
    • Door NodeMQTTreed · lux
    • MeteolabMQTTDHT22 · OLED
    • AfterDeckMQTTdisplay · diagnostics
    • Pixel V1MQTTTFT · audio
    • Pixel CrowPanelMQTTESP32-P4 · voice · WS
    • Afterlab ADVMQTT + device tokenCardputer
    • PC agentsdevice tokenChrome · Fedora · Linux
  2. MQTT ↓Seven devices publish their state to Mosquitto on the MiniPC; the Agent takes it from there.

    HTTPS · device token ↓The ADV and the PC agents call the Agent through the web gateway, Access and the tunnel (below) — not a browser session.

  3. MiniPC · Docker · Portainer

    Afterlab Agent

    FastAPI · the operational authority

    Verifies the user, owns every write, rate-limits devices; never runs arbitrary shell or mutates Docker.

    Beside it

    • Pixelchat · voice · deterministic tools · planner
    • Mission Control & telemetryruntime registry · API traffic · host history
    • Knowledge VaultMarkdown notes · graph · optional RAG index

    Consumed, not managed

    • Mosquitto
    • Ollama
    • Open WebUI + Whisper
    • Uptime Kuma
    • Docker · read only

    Reached outbound

    • TelegramPixel chat · long polling
    • External APIsElevenLabs · Google (read only) · GitHub · WordPress connector
  4. JWT · writes ↓The Agent checks the user against Supabase auth and is the only writer of its durable data.

    Tunnel ↑Cloudflare Tunnel carries what Access admits to the Agent: the web panel’s only way in.

  5. Cloud

    • User gateSupabaseAuth JWT checked by the Agent · durable data written only by the Agent
    • Machine gateCloudflare Access + TunnelAdmits only the web server, with a service token the browser never sees
    • ↑ service token
    • Hetzner · CoolifyAfterlab WebReact SPA · nginx gateway
    • ↑ /api/* · same-origin
    • BrowserRuns the React panel; never contacts the MiniPC.

Observability

Making the system readable.

Mission Control, the window this page opens with, is the operational view of the lab. It observes; it doesn’t act on its own.

What it watches

Attention

What needs a look first — here, “all correct”.

Runtime

Knowledge sync, device bridge, assistant and status checks, each with its state and last activity.

Traffic & planner

API calls in the session’s last five minutes; the Composite Planner’s candidates, accepted plans, fallbacks and latency.

Review & actions

Candidates proposed by Pixel wait for approval; recent actions keep a trail.
The MiniPC history in the Afterlab panel: CPU over the last 24 hours, sampled every five minutes, with live, average, maximum and minimum values.
MiniPC — CPU history over 24 hours. Real capture, demo data.
  1. How it is recorded

    5 min

    Host data — CPU, RAM, disk and temperature — is sampled every five minutes.

  2. Why it is kept

    90 days

    Kept for 90 days, so it reads as history rather than only as a live snapshot.

Intelligence · evidence

Facts first. Models second.

When Pixel answers a question about the lab, deterministic reads come first. The facts about the system come from verified reads, not from generated text.

Pixel in the Afterlab panel: chat, index, voice, rules and session tabs, with suggested questions such as “Is everything OK?” and “How is the MiniPC’s RAM?”.
Pixel in the panel, with its suggested questions — real capture.

Query path · schematic

  1. Question

    “How is the MiniPC’s RAM?”

    Asked by text or voice.

  2. Closed reads

    One tool, or two or three

    A simple question uses a single deterministic read; one that mixes current state with history is composed from two or three closed reads.

  3. Agent

    Verified state and history

    The Agent returns the facts: live state, host samples, device state.

  4. Answer

    Composed from the evidence

    The model may phrase it; its numbers can never replace the values the Agent verified.

An experimental planner steps in only after these deterministic routes. The question is one of Pixel’s suggested prompts; the route is a schematic, not a trace.

Intelligence · memory

A system that remembers more than the last conversation.

Afterlab’s Knowledge Graph: explicit relations between Vault notes — Afterlab, Pixel, interfaces, knowledge, research, devices and personal systems.
Knowledge Graph — explicit relations between Vault notes (wikilinks and metadata, no semantic inference). Real capture.

Project Memory

Persistent project context designed to survive individual conversations, with a 30-day freshness window.

Knowledge Vault

Markdown notes and raw captures on disk: ideas, concepts and long-term context, with a graph and an optional RAG index.

Three sources, not interchangeable

Current state
verified by the Agent
Operational history
telemetry and activity
Contextual knowledge
memory and the Vault

Engineering decisions

Intelligence with boundaries.

  1. 01 · Browser

    The React panel on Hetzner calls same-origin /api/* through its nginx gateway.

    Passes on: /api/*
  2. 02 · Machine gate

    Cloudflare Access admits only the web server, with a service token kept server-side.

    Passes on: Tunnel
  3. 03 · User gate

    The Agent verifies the Supabase JWT: is this me?

    Passes on: verified user
  4. 04 · Defined operations

    Only the reads and writes the Agent defines. No arbitrary shell; Docker read only.

A separate route for devices: the ADV and PC agents reach the Agent over HTTPS with a paired device token, not a browser session.

No direct browser access

The browser never contacts the MiniPC.

The Agent owns the writes

Every relevant write passes through one authority with defined operations.

Verified facts stay authoritative

A model’s output never replaces information the system has validated.

Evolution

A system built in layers.

Over 1,500 commits in its first two months and more than 4,800 automated Agent tests (recorded November 2026).

  1. Aug 2026

    Connected foundation

    Core services, the Agent, Telegram and MQTT begin operating as one system.

    Core

  2. Aug–Sep 2026

    Physical layer

    ESP32 nodes, AfterDeck, ADV, CrowPanel and the Fedora desktop join the environment.

    Devices

  3. Sep 2026

    Persistent context

    Knowledge Vault and Project Memory add long-lived contextual state.

    Memory

  4. Sep 2026

    Mission Control

    Runtime state, devices and operational telemetry gain a dedicated interface.

    Observability

  5. Oct 2026

    Historical telemetry

    CPU, RAM, temperature and disk data are stored and queried over time.

    Observability

  6. Oct 2026

    Pixel planning

    Deterministic composition and an experimental planner decide which sources answer each question.

    Intelligence

Research

Two experiments.

Tools & Stack

Core
Python · FastAPI · Docker · Portainer
Interface
React · TypeScript · nginx
Data & auth
Supabase
Messaging & hardware
Mosquitto (MQTT) · ESP32 · Arduino · Adafruit · Raspberry Pi
Infrastructure & access
Fedora · Hetzner · Coolify · Cloudflare Access + Tunnel
AI & audio
Ollama · OpenAI · ElevenLabs · Whisper
Plus read-only Google, GitHub and a WordPress connector.

An evolving environment.

Afterlab is a working environment, but never a finished system. Each new device, dataset and experiment tests the same idea: how can a personal computing environment become more observable, more contextual and more useful without losing control of its own boundaries?

Next: historical telemetry to tell temporary events from meaningful changes, device state that is contextual rather than online or offline, and a Pixel that understands enough to surface what matters and choose the right tools.