Skip to the page
gužvadocs
Menu

Overview

Introduction

How guzva.ba is built and run, from the camera board to the server, and why each part is the way it is.

guzva.ba shows guests how busy a venue is right now, with a live picture from a small camera in the room. The picture is stylised so nobody can be recognised. Venue owners get a panel with their statistics and settings, and an admin console runs the whole fleet.

These docs describe how it is built and run, and why. They are compiled into the same binary that serves the site, so they always describe the version that is running.

Three rules the whole system follows

One binary, one database file. Everything runs in a single Go program with one SQLite file next to it. No containers, no separate web server, no message queue. Fewer parts means fewer things that can break, and one person can hold all of it in their head.

Privacy is proven, not promised. The raw camera picture exists only in memory during one function call. What is stored and shown is a stylised picture with no faces. Tests in CI check this on every push.

Prove it, don't claim it. Every change comes with a test, a measurement or a live check, recorded in an append-only operations log, including the failures. These docs follow the same rule: anything planned is marked as planned.

Where to start

  1. How it works: the parts, and the path of one picture from the camera to a guest's phone.
  2. The server: the machine, the service, and how it is locked down.
  3. Releases and deploys: how code gets from a commit to production, and back.
  4. CI: what runs on every push, and why each check exists.
  5. Monitoring and alerts: how problems surface.
  6. Decisions and measurements: every before/after number, and the trade-offs.

At a glance

PartChoice
CamerasESP32-CAM boards, firmware in C++
ServerGo (standard library plus 3 dependencies), one static binary under systemd
DataSQLite in WAL mode
PagesServer-rendered html/template, htmx in the consoles, Tailwind compiled at build time
HostingOne VPS at netcup, Debian 13
TLSLet's Encrypt, fetched by the binary itself
CIGitHub Actions