r/coolgithubprojects • u/Comfortable-Fun-2266 • 3h ago
I built a tiny self-hosted NVR for RTSP cameras because everything else felt too heavy — would love some feedback
gallery
Hey folks, been working on this for a while and finally feel good enough to share it. WHATNVR is a lightweight, self-hosted NVR for RTSP cameras that runs as a single container. No message broker, no external database, no cloud nonsense — just one process tree and one SQLite database. It's built for modest hardware like a home server, mini PC, or SBC where full-featured NVRs would just eat the machine alive.
The main things I was going for: small, fast, and easy to run. Detection runs on the CPU via a shared OpenVINO process (no GPU needed), and recording is motion-gated — it keeps a rolling buffer and only archives segments around actual motion, so quiet cameras cost basically nothing. Each camera gets its own ffmpeg process, so one struggling camera won't stall your recording or UI. You get live view, event thumbnails, MP4 playback, zones/masks, retention with optional quota, and favorites that survive cleanup.
Deployment is dead simple: one image for both linux/amd64 and linux/arm64 in a single tag. Clone the repo, copy the env example, set your WHATNVR_SECRET_KEY, docker compose up -d, and you're at the setup screen. That's it. Camera passwords are encrypted at rest with AES-256-GCM, and there's a health/ready API plus watchdogs if you care about ops stuff.
To give you an idea of what "modest hardware" actually means here — in my own setup I'm running this on a cheap Vontar W2 TV box (yeah, one of those) and on a PC with an AMD PRO A8-8650B R7. Both just work. That's kind of the whole point of the project, so it's been fun to see it hold up on hardware that would make a "real" NVR choke.
It's AGPL-3.0 and I'm genuinely looking for bug reports, PRs, and "hey this broke on my weird ARM board" feedback. Screenshot attached so you can see what the UI looks like. Happy to answer questions in the comments!