A small, always-on home server built around a Radxa ROCK Pi 4B+ in a 3D-printed 5" mini rack, with a round status display on the node, a status panel driven by an ESP32-C3 and alerts that keep working when parts of the server fail.
This repository holds everything that runs on or around the server: setup guides, the node service, firmwares, the Cloudflare Worker that delivers alerts and the deployment files.
Charmander is my favorite starter Pokémon and red is my favorite color, so my first mini rack got both: the red and black printed parts, and the nickname charmlab.
| Part | Model |
|---|---|
| Node | Radxa ROCK Pi 4B+ V1.73 (RK3399/OP1, 4 GB RAM, 32 GB soldered eMMC) |
| Extra storage | 120 GB SATA SSD in a USB 3.0 enclosure |
| Node display | 1.28" round IPS, 240 x 240, GC9A01, SPI |
| Status panel | ESP32-C3 SuperMini with a 2.25" IPS strip, an RGB LED and one button |
| Network | TP-Link TL-SG105E gigabit switch |
| Power | Single multi-port USB-C GaN charger |
| Cooling | Two 40 mm 5 V fans, always on |
The printed rack parts are in hardware/rack-5in/.
| Path | Content | Status |
|---|---|---|
| docs/ | Setup, alerts, status API, display, maintenance and recovery guides | Written |
| deploy/ | systemd units, udev rules, Docker, SSH, firewall and backup files installed on the node | Written |
| node/charmlab-status/ | Python service on the node: round display, local checks, alerts, /status and /health |
Written, tested off the node |
| firmware/status-panel/ | ESP32-C3 firmware for the status panel | Written, logic tested on a computer, not compiled yet |
| firmware/rescue-bridge/ | ESP32 USB dongle that gives a serial console over its own Wi-Fi network | Written |
| workers/charmlab-alerts/ | Cloudflare Worker that delivers alerts to Telegram, email and WhatsApp | Written |
| monitoring/uptimeflare/ | External uptime checks on Cloudflare Workers | Documented |
| hardware/rack-5in/ | 3D-printed 5" rack: structure, modules and accessories (STL) | Designed, not printed yet |
| site/ | Docs site on GitHub Pages: guides, printed parts, shopping list and a 3D viewer of the rack | Written |
flowchart TB
subgraph cloudflare["Cloudflare"]
uptime["UptimeFlare"]
worker["charmlab-alerts Worker"]
end
channels["Telegram, email, WhatsApp"]
subgraph rock01["rock-01"]
access["cloudflared, Tailscale, SSH"]
status["charmlab-status"]
display["Round display"]
docker["Docker services on the SSD"]
end
panel["ESP32-C3 status panel<br/>LED, problem texts, button"]
uptime -- webhook --> worker
worker --> channels
uptime -- "HTTPS through the tunnel" --> access
access -- "127.0.0.1" --> docker
status -- "POST /alerts" --> worker
status -- SPI --> display
status -. checks .-> docker
panel -- "GET /status every 10 s (LAN)" --> status
The docs site has an interactive version of this diagram, with failure simulations.
- Code, routes, file names, configuration keys, JSON fields and identifiers are in English.
- Text shown to people (display, panel, alert messages) comes from a translation table; the default install uses Brazilian Portuguese.
- Values specific to one installation (LAN subnet, user name, domain, serial numbers) are placeholders in angle brackets, such as
<lan-subnet>or<domain>. - Secrets never enter the repository. Every secret has an
*.examplefile next to where it is used.
See CONTRIBUTING.md, SUPPORT.md and the Code of Conduct. Report vulnerabilities privately as described in SECURITY.md.
Code and documentation: MIT. 3D models in hardware/: CC BY-SA 4.0.