TVSPY is a modern, fast, and responsive web application designed to monitor TVHeadend servers in real time. Effortlessly supervise live broadcasts, DVR recordings, real-time bandwidth consumption, active viewers, playback history, and advanced analytics.
Signal Health: Real-time error packet counter and transport stream degradation warning.
Bandwidth Sparklines: Live chart showing bitrate fluctuations per session.
GeoIP & Local IP Recognition: Country flags and automatic local area network (LAN) detection.
Smart Scan Filtering: Automatically filters out internal TVHeadend IPTV/M3U mux scans and EPG grabber tasks.
💾 TVHeadend Storage & Disk Space Monitor:
Real-time disk capacity, free space, and used space metrics queried directly from TVHeadend /comet/poll and WebSocket events.
Color-coded progress bar with low-space alerts (< 10%).
DVR recording storage utilization breakdown.
🔴 DVR Recording Detection & Upcoming Schedules:
Clear visual distinction between live streaming and scheduled recordings with dynamic badges.
Upcoming DVR Recordings Modal: Inspect all scheduled timers and automated series recordings in TVHeadend with countdowns.
🔔 Multi-Platform Notifications & Web Audio Alerts:
Unified Notifications Center in Settings grouping all alert mechanisms.
Browser Desktop Notifications & Sound Chimes: Native OS notification banners and synthesized two-tone chimes (Web Audio API) when new playbacks start or unauthorized IPs connect.
Telegram, Discord (Rich Embeds), Gotify, and custom HTTP POST Webhooks.
Notifications on playback/recording start, stop, extended viewing limits, unauthorized IP access, and TVHeadend server disconnection/recovery.
📺 Dual Views & In-Depth Analytics for Channels & Users:
Switch between Grid and Detailed Table / List views in both Channels and Users sections with persistent preference.
Channel Profile Modal: Detailed statistics (total plays, accumulated duration, bytes downloaded, unique viewers, top viewers, and recent logs).
User Profile Modal: Viewer statistics, top watched channels, total streaming time, and activity history.
📊 Advanced Analytics & Charts Dashboard:
Timeline Trend chart (daily hours or playback counts).
Top Channels ranking.
Client / Device Distribution chart.
Peak Hours analysis (24-hour usage distribution).
Flexible filters by date range (7, 14, 30, 90 days, or full year) and metric (time vs uses).
🔒 Security & Access Control:
PIN Lock Screen: Secure your TVSpy panel with a custom numeric PIN, dynamic digits, and physical keyboard support.
Interactive IP Whitelist: Manage authorized IPs with interactive tags/chips, quick presets, wildcard (192.168.1.*), and CIDR subnet (10.0.0.0/24) support.
Local Server & LAN Protection: Loopback connections (127.0.0.1, localhost, ::1) are always permitted by default, with optional one-click auto-authorization for all private LANs.
🔄 Server Health, Reliability & Maintenance:
Heartbeat Monitor: Detects TVHeadend connection drops (> 2 min) and sends automatic alerts and recovery notices.
Scheduled Auto-Purge: Background scheduler with configurable retention days and automatic SQLite database VACUUM.
Direct Backup: Download .db database copies with one click.
Hot Reconnection: Updating credentials in Settings triggers an immediate hot reconnection without needing to restart the container.
🌓 Fullscreen / Kiosk Mode, Dark/Light Theme, GitHub Version Checker, and complete Spanish / English translations.
TVSPY includes a unified runner to launch both Backend and Frontend concurrently with a single command:
# 1. Clone the repository
git clone https://github.com/alebupal/tvspy.git
cd tvspy
# 2. Install all dependencies
npm run install:all
# 3. Launch Backend (port 3001) and Frontend (port 5173) concurrently
npm run dev