# lightNVR

> Self-hosted, open-source NVR in C for low-memory devices. WebRTC/HLS streaming, visual detection zones, themes, external object detection.

- **Category:** Video Surveillance
- **Licence:** GPL-3.0
- **Latest version:** 0.44.3
- **Open source:** open_core
- **Languages:** C, JavaScript
- **Platforms:** Docker, Docker Compose, Home Assistant, Systemd
- **Tags:** WebRTC, Mqtt, Preact, Object Detection, Rtsp, Hls, TOTP, Home Assistant, Nvr, Ip Camera, Go2rtc, Onvif, Docker, Csharp, Prometheus, Self Hosted, Tailwind, Gpl 3, Network Video Recorder, Sod, Ipcamera, Tflite, Light Object Detect, Detection Zones

## Description

LightNVR is a lightweight network video recorder designed to run efficiently on resource-constrained Linux devices such as Raspberry Pi and other SBCs with as little as 256MB RAM. Written in C with a Preact/Tailwind web UI, it handles multiple IP camera streams via RTSP and ONVIF, recording to standard MP4/MKV containers. The streaming backbone is go2rtc, providing ultra-low-latency WebRTC and compatible HLS playback with automatic NAT traversal. Object detection uses an external API (typically light-object-detect) supporting ONNX and TFLite models with visual polygon-based detection zones. The UI offers 8 color themes with light/dark modes and adjustable intensity. It supports TOTP two-factor authentication, MQTT event streaming for Home Assistant integration, and Prometheus metrics. Deployment options include Docker, Docker Compose, native systemd service, and a Home Assistant add-on. Commercial licenses are available for organizations that cannot comply with GPL-3.0.

## Links

- [Homepage](https://github.com/opensensor/lightNVR)
- [Website](https://lightnvr.com)
- [Docker](ghcr.io/opensensor/lightnvr)
- [Demo](https://demo.lightnvr.com)
- [GitHub Repository](https://github.com/opensensor/lightNVR)
- [Documentation](https://github.com/opensensor/lightNVR/tree/main/docs/README.md)
- [Docker Images (GHCR)](https://github.com/opensensor/lightNVR/pkgs/container/lightnvr)

---
Source: https://selfhost.directory/project/lightnvr