Minimal self-hosted NVR: watches for camera-deposited clips, transcodes to MP4, and serves a tidy playback UI — no stream pulling, no on-host AI.
  • Python 85.3%
  • HTML 11.5%
  • Just 2.4%
  • Dockerfile 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marvin8 b3ae89979a
All checks were successful
/ pr-review (push) Has been skipped
/ pr-review (release) Has been skipped
/ gitleaks (push) Successful in 24s
/ gitleaks (release) Successful in 16s
/ checks (push) Successful in 2m13s
/ publish (push) Has been skipped
/ publish-container (push) Has been skipped
/ checks (release) Successful in 2m4s
/ deploy-docs (release) Has been skipped
/ publish (release) Successful in 36s
/ publish-container (release) Successful in 3m1s
/ deploy-docs (push) Successful in 1m11s
bump: version 2026.7.25 → 2026.8.4
2026-08-04 18:27:01 +10:00
.forgejo/workflows 🔧 update OCI labels and justfile URLs to forge.marvin8.zone 2026-08-04 17:00:02 +10:00
docs 📝 drop Docker Hub references — image only published to registry.marvin8.zone 2026-08-04 18:11:33 +10:00
icon 📝 docs: add icon/ folder with all icon assets 2026-05-30 08:31:12 +10:00
src/cang 💄 point web UI source link at forge.marvin8.zone 2026-08-04 17:07:05 +10:00
tests Enable WAL mode, add indexes, rewrite queries, serve images by ID 2026-07-25 11:17:09 +10:00
.containerignore 🐛 fix: include README.md in container build context 2026-05-31 08:20:19 +10:00
.editorconfig 📄 document all source files, add per-file-ignores for tests 2026-07-22 17:19:10 +10:00
.gitignore Enable WAL mode, add indexes, rewrite queries, serve images by ID 2026-07-25 11:17:09 +10:00
.gitleaks.toml 🔧 add scaffolding files and config alignment 2026-07-22 17:08:51 +10:00
.pre-commit-config.yaml ⬆️ bump pre-commit deps 2026-08-04 18:03:07 +10:00
AGENTS.md 📝 refer to global AGENTS.md instead of CLAUDE.md 2026-08-04 18:06:12 +10:00
AI-DECLARATION.md 📝 name marvin8 explicitly in AI-DECLARATION.md 2026-07-14 19:11:27 +10:00
CHANGELOG.md docs: update changelog for 2026.8.4 2026-08-04 18:26:58 +10:00
CLAUDE.md 🔧 move CLAUDE.md to AGENTS.md and symlink back to CLAUDE.md 2026-07-15 10:33:30 +10:00
compose.yaml 📝 update docs, README badge, and project URLs to forge.marvin8.zone 2026-08-04 17:06:33 +10:00
Containerfile 🔧 update OCI labels and justfile URLs to forge.marvin8.zone 2026-08-04 17:00:02 +10:00
docs_hooks.py ♻️ docs_hooks.py: remove llms-full.txt generation 2026-05-29 20:53:33 +10:00
justfile 🔧 update OCI labels and justfile URLs to forge.marvin8.zone 2026-08-04 17:00:02 +10:00
LICENCE Initial project scaffold: README, LICENCE, CLAUDE.md, ROADMAP.md 2026-05-27 18:13:11 +10:00
LICENSE.md 🔧 add scaffolding files and config alignment 2026-07-22 17:08:51 +10:00
mkdocs.yml 📝 update docs, README badge, and project URLs to forge.marvin8.zone 2026-08-04 17:06:33 +10:00
noxfile.py fix test that was checking version against a 2026-07-22 19:54:32 +10:00
pylock.toml ⬆️ bump deps 2026-08-04 17:18:25 +10:00
pyproject.toml bump: version 2026.7.25 → 2026.8.4 2026-08-04 18:27:01 +10:00
README.md ⬆️ bump deps 2026-08-04 17:18:25 +10:00
Release-Notes.md bump: version 2026.7.25 → 2026.8.4 2026-08-04 18:27:01 +10:00
Release-Notes.md.template 🐛 fix: calver without leading zeros (YYYY.M.D) 2026-07-22 18:56:02 +10:00
ruff.toml 🚨 ignore PLR0917 in tests, matching existing PLR0913 ignore 2026-08-04 17:08:42 +10:00
uv.lock bump: version 2026.7.25 → 2026.8.4 2026-08-04 18:27:01 +10:00

cang

Cang (藏) — Snapshot Archiver for IP Cameras

Licence: AGPL-3.0-or-later Status: Late beta Python 3.12+ Documentation Forgejo CI pepy downloads gitleaks pysentry ty complexipy

Cang (藏, cáng, roughly "tsang" with a rising tone) — Chinese for "to store / to archive". Secondary meaning: "hidden", quietly apt for security footage. The name reflects the project's philosophy: cameras do all the clever work; Cang just keeps what they send.

A lightweight snapshot archiver for IP cameras. Cameras handle motion detection and object recognition themselves, deposit snapshot images into watched folders, and Cang indexes, groups, and serves them through a clean FastAPI web UI.

Inspired by LazyNVR, written in Python.

What it does

  • Watches camera directories for snapshot JPEGs deposited by cameras
  • Ingests all snapshots into SQLite with motion-event metadata
  • Groups consecutive motion snapshots into events using a configurable time-gap threshold (60 s)
  • Applies tiered retention: motion snapshots (default 30 days), background snapshots (14 days) — both configurable
  • Serves a FastAPI + Jinja2 web UI with a scrubber for browsing snapshots by day and camera
  • Runs anywhere Python is available; can also be deployed in a container

What it does not do

  • No RTSP / live-stream pulling
  • No video clip processing or storage
  • No multi-user roles or cloud sync

Status

Late beta — core functionality (Dahua adapter, snapshot ingestion, event grouping, tiered retention, web UI) is working. See the documentation for installation and configuration.

Licence

Copyright (C) 2026 Marvin8

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

See LICENCE for the full text.