A simple, single-binary IP camera recorder. Think of it as a dashcam for your property.
Find a file
2026-08-06 19:35:20 +01:00
public fix: save status clears after reload, shows done message 2026-08-06 19:35:20 +01:00
.gitignore fix: go2rtc config path absolute, gitignore generated file 2026-08-06 13:16:02 +01:00
api.go fix: auth bypass removed, sanitize names, json errors, viewer port toggle 2026-08-06 18:43:14 +01:00
auth.go refactor: viewer always listens, access blocked at request level when disabled 2026-08-06 19:31:10 +01:00
CHANGELOG.md chore: v0.4.0 — cleanup, changelog, version bump 2026-08-06 18:30:49 +01:00
cleaner.go docs: MIT license, license headers, README with project story and roadmap 2026-08-06 10:48:35 +01:00
config.go refactor: viewer always listens, access blocked at request level when disabled 2026-08-06 19:31:10 +01:00
config.json.sample refactor: viewer always listens, access blocked at request level when disabled 2026-08-06 19:31:10 +01:00
deploy_nvr.sh refactor: no interactive prompts — config.json.sample has defaults, update preserves config 2026-08-06 17:28:46 +01:00
go.mod refactor: pivot to JSON config — no yaml dependency, jq in bash, greenfield detection 2026-08-06 14:54:43 +01:00
go.sum refactor: pivot to JSON config — no yaml dependency, jq in bash, greenfield detection 2026-08-06 14:54:43 +01:00
go2rtc.go fix: go2rtc config path absolute, gitignore generated file 2026-08-06 13:16:02 +01:00
LICENSE docs: MIT license, license headers, README with project story and roadmap 2026-08-06 10:48:35 +01:00
main.go refactor: viewer always listens, access blocked at request level when disabled 2026-08-06 19:31:10 +01:00
onvif.go docs: MIT license, license headers, README with project story and roadmap 2026-08-06 10:48:35 +01:00
README.md docs: update README — auth is optional, remove.sh, config.json, roadmap 2026-08-06 18:28:32 +01:00
recorder.go docs: MIT license, license headers, README with project story and roadmap 2026-08-06 10:48:35 +01:00
remove.sh fix: graceful stop via systemctl + targeted kill, no pkill -9 2026-08-06 15:23:09 +01:00
server.go fix: viewer port starts/stops dynamically on config save, auth bypass removed 2026-08-06 18:52:02 +01:00
snapshot.go docs: MIT license, license headers, README with project story and roadmap 2026-08-06 10:48:35 +01:00
VERSION chore: v0.4.0 — cleanup, changelog, version bump 2026-08-06 18:30:49 +01:00

NextNVR

A simple, single-binary IP camera recorder. Think of it as a dashcam for your property.


Why NextNVR?

The open-source NVR landscape is rich with incredible projects — Frigate, Shinobi, ZoneMinder, Blue Iris alternatives — backed by passionate communities. They're powerful. They're feature-packed. But they've also become complex. Docker containers, AI pipelines, multi-service architectures, cloud integrations — for many users, it's too much.

NextNVR is different. It does one thing: continuously record your IP cameras to disk and let you review the footage. No AI, no cloud, no Docker — just a single Go binary you can run on a Raspberry Pi 5, an old thin client, or a VM. Deploy in 30 seconds — download, run, done.

This project was built with the help of AI — designed through conversation, refined through iteration, and shaped by the simple principle that surveillance software should be boring. It should just work.


Quick Install

curl -sSLO https://git.lohmar.co.uk/cclohmar/NextNVR/raw/branch/main/deploy_nvr.sh
chmod +x deploy_nvr.sh
./deploy_nvr.sh

The script asks where to store recordings, then installs everything. Press Enter for the default (~/nvr_data) or type your own path.

To update an existing installation — run the same script again. It stops the service, pulls the latest code, rebuilds, and restarts.

To pre-set the storage path:

STORAGE_PATH=/mnt/recordings ./deploy_nvr.sh

Supported Systems

Distro Package Manager Architecture
Debian 12+ / Ubuntu 22.04+ apt amd64, arm64
Fedora 40+ / RHEL 9+ dnf / yum amd64, arm64
Arch Linux pacman amd64, arm64
Alpine Linux apk amd64, arm64
Raspberry Pi 5 any above arm64

What It Does

Feature Detail
📹 Recording Up to 8 cameras simultaneously, 5-minute MP4 clips, zero transcoding
💾 Storage Flat per-camera directories, 7-day retention, auto-cleanup
🖥️ Live Wall 4×2 grid with auto-refreshing snapshots. Click for full live stream
🔍 Playback Browse recordings by camera and date with snapshot thumbnails
⚙️ Setup Wizard ONVIF network scan + camera naming. Add cameras manually too.
🔐 Two-Port Auth :8080 with optional master login, :8090 always-open viewer for LAN
🔒 100% Local Everything runs on your hardware. No cloud, no subscriptions, no telemetry

Authentication

NextNVR runs two HTTP servers:

Port Audience Auth Access
8080 You (admin) Optional master login Live Wall, Playback, Settings
8090 Guests / LAN None Live Wall only

Auth is disabled by default. To enable it, open Settings → 🔐 Authentication card, set a master username and password, check "Require login", and save. Port 8090 stays open regardless — ideal for a QR code at a guesthouse: "Watch what we watch."

To reset the master password, edit /opt/nextnvr/config.json and set "auth": {"enabled": false}, then restart.


Removing

curl -sSLO https://git.lohmar.co.uk/cclohmar/NextNVR/raw/branch/main/remove.sh
chmod +x remove.sh
./remove.sh

Stops the service, removes /opt/nextnvr/, cleans up systemd. Recordings on disk are untouched.


Remote Access (Optional)

  1. Dynamic DNS — use DuckDNS, No-IP, or Cloudflare for a domain name
  2. Port forwarding — forward port 8080 to the NextNVR server (and 8090 if you want LAN guests to have open access)
  3. For production, put NextNVR behind a reverse proxy (Zoraxy, Nginx) with HTTPS

Roadmap

Feature Status
Continuous recording (-c copy, zero transcoding) Done
ONVIF auto-discovery + web setup wizard Done
Live wall with snapshot grid + focus view Done
Playback browser with date presets Done
7-day retention with auto-cleanup Done
Two-port authentication (master + viewer) Done
Camera-triggered recording (ONVIF motion/person detection events via API) 🔜 Planned
NAS/SMB storage support (record to network share) 🔜 Planned
Multi-platform builds (Raspberry Pi, ARM SBCs) 🔜 Planned

Not Planned

  • Cloud connectivity of any kind
  • AI/ML object detection (use your camera's built-in detection)
  • Mobile apps (the web UI is responsive and PWA-ready)

Server Commands

sudo systemctl status nextnvr      # is it running?
sudo systemctl restart nextnvr     # restart
sudo journalctl -u nextnvr -f      # watch logs

Config file: /opt/nextnvr/config.json Recordings: /mnt/recordings/


License

MIT — see LICENSE

Built with ❤️ and AI in Mindelo, Portugal. 🇵🇹