____ _____ _ _ _____ ______ __ _____ ____ ____ _____
/ ___|| ____| \ | |_ _| _ \ \ / / | ____| _ \ / ___| ____|
\___ \| _| | \| | | | | |_) \ V / | _| | | | | | _| _|
___) | |___| |\ | | | | _ < | | | |___| |_| | |_| | |___
|____/|_____|_| \_| |_| |_| \_\|_| |_____|____/ \____|_____|
Note
Sovereign Evolution Notice:
The core acoustic monitoring, hardware telemetry, and zero-inbound telepresence capabilities of this project have been synthesized and upgraded into talos, the sovereign enterprise outpost and zero-inbound sentinel of the RMediaTech Sovereign Ecosystem. This repository is preserved as an open-source technical showcase and reference implementation.
- π Comprehensive Operator Guide & Field Manual (
SENTRY-DOC-OP-01): Real-world endurance deployment walkthrough, 119 verified records, ambient environmental noise DSP adaptation, acoustic spike mechanics (86.2 dB SPL), and the operator playbook. - π¦ Installation & Uninstallation Manual (
SENTRY-DOC-INST-01): Multi-OS system requirements, static standalone deployment, background daemon supervision, systemd unit integration, and complete clean purge procedures. - π οΈ Exhaustive Daemon & CLI Reference Manual (
SENTRY-DOC-CLI-01): Full command-by-command reference forsentry-daemon.sh(start|stop|status|logs|stats|verify|report) and allsentry-edgeCLI subcommands with internal mechanics and failure recovery. - ποΈ Architecture, HAL & Report Engine Specification (
SENTRY-DOC-ARCH-01): 9-crate micro-OJP taxonomy, trait-based HAL, single-source-of-truth (SST) report orchestrator, 5W1H provenance model, and rolling SHA-256 blockchain hash-chain engine.
Commercial security cameras force an unacceptable privacy compromise: they stream raw home and office video to third-party corporate data centers, enforce monthly recurring subscription fees, and cannot execute programmable edge logic when internet connectivity drops.
SENTRY-EDGE delivers the sovereign, zero-cloud alternative:
- π‘οΈ Zero Open Inbound Ports: Dials outward-only to your self-hosted encrypted TLS WebSocket relay gateway without exposing local listening ports.
- ποΈ Acoustic Noise Watchdog: Continuous sliding-window RMS audio analysis detects sudden acoustic anomalies (
$+20\text{ dB SPL}$ over baseline, glass breaking, sirens, forced entry). - πΈ Burst Optical Sentinel: Automatically triggers a 5-frame 1080p JPEG burst upon acoustic breach with hardware LED isolation (camera sensor powers down immediately after frame release).
- β‘ Sub-10ms WebRTC Telepresence: Stream real-time 60FPS video and two-way walkie-talkie intercom directly to any mobile browser worldwide via low-latency media relays.
- β±οΈ Nanosecond / Picosecond Provenance: Meticulous telemetry tracking (
Who,From,To,What,How,Minutiae) sealed with an immutable cryptographic SHA-256 blockchain hash chain. - π Decoupled SST Report Engine: Exports self-contained, zero-CDN interactive HTML dashboards, ASCII text dossiers, RFC 4180 CSV, JSON, and Markdown briefs.
- π¬ Trait-Based HAL: Native Linux ALSA & V4L2, macOS CoreAudio & AVFoundation, Windows WASAPI & MediaFoundation, with automatic procedural simulation fallback.
- π¦ 100% Platform-Agnostic Static Binary: Built with
x86_64-unknown-linux-muslandcrt-static, eliminating all dynamic library and libc mismatches.
Commercial surveillance hardware companies have created a subscription lock-in racket: you purchase physical cameras, but you don't own the data, you can't run custom edge logic, and your private audio/video streams are uploaded to corporate servers with mandatory monthly recurring fees.
sentry-edge delivers the frontier alternative for physical spaces:
- 0 Cloud Subscriptions: Runs on your own Linux hardware (Raspberry Pi, workstation, mini-PC).
- 0 Inbound Ports: Dials out directly over encrypted TLS WebSockets to your own private sovereign relay.
- 100% Cryptographic Provenance: Every acoustic spike and snapshot burst is sealed with an immutable SHA-256 blockchain hash chain that you own forever.
flowchart LR
subgraph SurveillanceEmpire ["π° Cloud Surveillance Monopoly (The Old Empire)"]
direction TB
VendorCam["Commercial Cameras\nπΈ $10 - $50/mo per-camera subscription"]
CloudStream["Mandatory Cloud Uploads\nποΈ Private audio/video parsed on vendor servers"]
InboundHoles["Open Inbound NAT Holes\nβ οΈ Vulnerable to IoT botnets & credential stuffing"]
end
subgraph SentryFrontier ["β‘ Sovereign Telepresence (Sentry-Edge)"]
direction TB
ZeroCost["Self-Hosted Commodity Hardware\nπ $0.00 / Zero Subscriptions Forever"]
LocalAudit["Local Immutable SHA-256 Chain\nβοΈ Cryptographic Forensic Provenance"]
OutboundMesh["Zero Inbound Ports\nπ‘οΈ Outward-Only Encrypted TLS / WebRTC SFU"]
end
SurveillanceEmpire -.->|"Physical Emancipation"| SentryFrontier
graph TD
subgraph EdgeDevice["π Physical Sentinel Node (Laptop / Pi / Mini-PC)"]
Mic["ποΈ Continuous Audio RMS Stream"]
Cam["πΈ Native Video Capture Device (`/dev/video0`)"]
SentryDaemon["π‘οΈ `sentry-edge run`<br/>β’ Acoustic Analyzer<br/>β’ Burst Capturer<br/>β’ Embedded WAL Ledger<br/>β’ Nanosecond Telemetry Engine"]
end
subgraph SovereignBackend["π Self-Hosted Backend Infrastructure"]
RelayGateway["π Outbound Relay Gateway<br/>(relay.example.com:8084)"]
MediaGateway["β‘ Sovereign Media Gateway<br/>(media.example.com:8443)"]
end
subgraph OperatorViewport["π± Remote End-User / Operator Client"]
ClientApp["π» `sentry-edge client`<br/>β’ Live Alert Ingestion<br/>β’ Instant Snapshot View<br/>β’ Push-to-Talk Intercom"]
MobileHUD["π Mobile Web HUD (Any Browser)<br/>β’ Sub-10ms Low-Latency Video"]
end
Mic --> SentryDaemon
Cam --> SentryDaemon
SentryDaemon <== "Outbound-Only TLS WebSocket (0 Open Ports)" ==> RelayGateway
SentryDaemon -.->|"Sub-10ms WebRTC DataChannel"| MediaGateway
RelayGateway <== "Encrypted WebSocket Stream" ==> ClientApp
RelayGateway <== "Encrypted HTTPS / WSS" ==> MobileHUD
MediaGateway -.->|"Low-Latency Telepresence Stream"| ClientApp
MediaGateway -.->|"Low-Latency Telepresence Stream"| MobileHUD
| Component | Minimum Specification | Recommended Specification |
|---|---|---|
| CPU Architecture |
x86_64 or aarch64
|
Multi-core x86_64 or Raspberry Pi 4/5 |
| Memory (RAM) |
|
|
| Process Footprint | Peak Burst: |
|
| Supported OS | Linux 2.6+, macOS 11+, Windows 10+, FreeBSD 13+ | Modern Linux (Ubuntu, Debian, Alpine, Arch) |
| Sensors | Audio input device (ALSA/WASAPI/CoreAudio) | UVC-compliant USB Webcam (/dev/video0) + Mic |
# Build 100% standalone static binary (zero host library dependencies)
cargo build --release --target x86_64-unknown-linux-musl
# Verify static linking
file target/x86_64-unknown-linux-musl/release/sentry-edge./target/x86_64-unknown-linux-musl/release/sentry-edge --profile./target/x86_64-unknown-linux-musl/release/sentry-edge run \
--relay-url wss://relay.example.com:8084/ws/outpost \
--token sentry-dev-99x \
--label "Server-Room-Sentinel" \
--camera /dev/video0 \
--trigger-db 20.0# Generate interactive zero-CDN HTML dashboard with expandable forensic drawers:
./target/x86_64-unknown-linux-musl/release/sentry-edge report --format html --output sentry_report.html
# Generate high-impact ASCII plain text dossier for terminal inspection:
./target/x86_64-unknown-linux-musl/release/sentry-edge report --format txt --output sentry_report.txt| Crate | Responsibility & Invariant |
|---|---|
crates/sentry-core |
Core DSP math, acoustic RMS, platform paths, configuration parser, and alert models. |
crates/sentry-hardware |
Trait-based Hardware Abstraction Layer (HAL) for Linux, macOS, Windows, and Procedural fallback. |
crates/sentry-telemetry |
Picosecond timers, 5W1H micro-provenance, and immutable rolling SHA-256 blockchain hash-chain engine. |
crates/sentry-ledger |
Embedded local ACID write-ahead log (WAL) incident database and persistence sink. |
crates/sentry-report |
Decoupled Single Source of Truth (SST) report orchestrator, narrative storyteller, and 6 multi-format exporters. |
crates/sentry-bridge |
Outbound-only TLS WebSocket tunnel client for sovereign edge relays. |
crates/sentry-telepresence |
Sub-10ms WebRTC 2-way walkie-talkie intercom bridge and session token generation. |
crates/sentry-client |
Remote operator HUD and live incoming alert ingestion console. |
crates/sentry-cli |
Main binary entrypoint supporting daemon, client, monitor, profile, logs, and report subcommands. |
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)