HUB
Sign inSign up

zerobell/streamlink-dashboard

By zerobell

โ€ขUpdated about 1 year ago

Image
0

2.1K

zerobell/streamlink-dashboard repository overview

Your ultimate streaming recording companion

License: MIT Python 3.10+ Next.js Docker Hub Docker Pulls Build Status FastAPI

Buy Me a Coffee โ 

๐ŸŒ Read this in other languages: ํ•œ๊ตญ์–ดโ  | Englishโ 


๐Ÿš€ Never miss your favorite streams again! Automatically record live streams from multiple platforms with a sleek, modern web dashboard.

A powerful web-based dashboard application for automated streaming recording using Streamlink. Built with modern technologies and designed for seamless stream management.

โ Project Overview

Streamlink Dashboard is a web application that automatically records and manages live streams from various streaming platforms. Users can set up scheduled jobs to automatically record streams from their favorite streamers and manage recorded files through a web dashboard.

โ โœจ Key Features

๐ŸŽฅ Smart Recording๐Ÿ“… Auto Scheduling๐Ÿ–ฅ๏ธ Modern Dashboard
Multi-platform support
Quality control
Stream detection
Flexible job management
Custom intervals
Strategy patterns
React + Next.js 15
Real-time updates
Mobile-friendly
โ ๐ŸŽฌ Real-time Streaming Recording
  • ๐Ÿ”ฅ Streamlink-based: Rock-solid and efficient recording engine
  • ๐ŸŒ Multi-platform Support: Twitch, YouTube, Sooplive, Chzzk(์น˜์ง€์ง)
  • โš™๏ธ Platform-specific Optimization: Tailored Streamlink arguments for each platform
  • ๐Ÿ“บ Quality Control: Choose your preferred stream quality
โ ๐Ÿค– Intelligent Scheduling System
  • โšก APScheduler-powered: Enterprise-grade job scheduling
  • ๐ŸŽฏ Strategy Pattern: Clean, extensible platform architecture
  • ๐Ÿ› ๏ธ Flexible Configuration: Quality, custom args, monitoring intervals
  • ๐Ÿ” Auto Stream Detection: Smart periodic checks for live streams
โ ๐ŸŽจ Modern Web Dashboard
  • ๐Ÿš€ Next.js 15 + TypeScript: Cutting-edge React stack
  • ๐Ÿ’… Tailwind CSS: Beautiful, responsive design
  • โšก Real-time Updates: Live recording status and progress
  • ๐Ÿ“ฑ Mobile-friendly: Works perfectly on all devices
โ โญ Smart Favorites System
  • ๐Ÿ’– One-click Favorites: Mark your most important recordings
  • ๐Ÿ›ก๏ธ Auto-protection: Favorites are safe from cleanup policies
  • ๐Ÿท๏ธ Easy Management: Organize and find your best content
โ ๐Ÿ”„ Advanced Rotation Policies
  • ๐Ÿ”ง Reusable Templates: Create once, apply everywhere
  • ๐Ÿ“Š Multiple Strategies: Time, count, or size-based cleanup
  • ๐ŸŽ›๏ธ Smart Priority: Protect favorites and recent files
  • ๐ŸŽฏ Flexible Assignment: Mix and match policies per schedule
โ ๐Ÿณ Production-Ready Deployment
  • ๐Ÿšข Docker-first: One-command deployment
  • ๐Ÿ—ƒ๏ธ Built-in Database: No external dependencies
  • ๐Ÿ“ˆ Scalable Architecture: Easy to extend and customize
  • ๐Ÿ”ง NAS-friendly: Perfect for Synology and QNAP

โ ๐Ÿ› ๏ธ Technology Stack

โ ๐Ÿ Backend Powerhouse
Python 3.10+  โ”‚  FastAPI  โ”‚  Streamlink  โ”‚  APScheduler  โ”‚  SQLite
โ โš›๏ธ Modern Frontend
TypeScript  โ”‚  Next.js 15  โ”‚  Tailwind CSS  โ”‚  Zustand  โ”‚  React Query
โ ๐Ÿš€ Infrastructure
Docker  โ”‚  SQLAlchemy  โ”‚  Pydantic  โ”‚  Alembic  โ”‚  Uvicorn
ComponentTechnologyPurpose
๐Ÿ”ง Backend FrameworkFastAPIHigh-performance async API
๐ŸŽฌ Recording EngineStreamlinkReliable stream recording
โฐ Job SchedulerAPSchedulerRobust background tasks
๐Ÿ—„๏ธ DatabaseSQLite + SQLAlchemyLightweight, async ORM
โš›๏ธ Frontend FrameworkNext.js 15 + TypeScriptModern React with SSR
๐ŸŽจ UI FrameworkTailwind CSS + Headless UIBeautiful, accessible components
๐Ÿ“ฆ State ManagementZustandSimple, scalable state
๐Ÿ”„ Data FetchingTanStack QuerySmart server state management
๐Ÿณ DeploymentDocker + ComposeContainer-ready deployment

โ Architecture Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Next.js App   โ”‚    โ”‚   FastAPI       โ”‚    โ”‚  APScheduler    โ”‚
โ”‚   (Frontend)    โ”‚โ—„โ”€โ”€โ–บโ”‚   (Backend)     โ”‚โ—„โ”€โ”€โ–บโ”‚   (Jobs)        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚                       โ”‚                       โ”‚
         โ”‚                       โ”‚                       โ”‚
         โ–ผ                       โ–ผ                       โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   App Data      โ”‚    โ”‚   SQLite DB     โ”‚    โ”‚  Streamlink     โ”‚
โ”‚  (Volume Mount) โ”‚    โ”‚   (Metadata)    โ”‚    โ”‚   Process       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ Platform Support Strategy

โ Abstraction Layer
  • Platform Interface: Common interface that all platforms must implement
  • Strategy Pattern: Stream URL acquisition strategy for each platform
  • Plugin System: Plugin architecture for adding new platforms
โ Supported Platforms
  • Twitch: Direct stream detection and recording
  • YouTube: Live stream support with optimized settings
  • Sooplive: Korean streaming platform support
  • Chzzk (์น˜์ง€์ง): Naver's streaming platform support
  • Extensible Architecture: Easy addition of new platforms via strategy pattern

โ Configuration & Customization

โ Platform Configuration

Managed through the web dashboard:

  • Twitch: Stream quality and custom Streamlink arguments
  • YouTube: Live stream settings and API configuration
  • Sooplive: Korean platform-specific settings
  • Chzzk: Naver streaming platform support
โ Recording Schedules
  • Per-schedule Settings: Quality, custom arguments, rotation policies
  • Monitoring Intervals: Configurable stream check frequency
  • File Management: Automatic naming and organization
โ Rotation Policies
  • Reusable Policies: Create once, apply to multiple schedules
  • Multiple Conditions: Age, count, and size-based cleanup
  • Smart Cleanup: Preserve favorites and recent files

โ Development & Deployment

โ ๐Ÿš€ Quick Start

๐ŸŽฏ Get up and running in 2 minutes!

โš ๏ธ Requirements: Python 3.10+, Linux/macOS/Docker environment

โ Option 1: Using Pre-built Image from Docker Hub (Fastest)
# 1๏ธโƒฃ Create data directory and run
mkdir -p ./app_data
docker run -d \
  --name streamlink-dashboard \
  -p 8000:8000 \
  -v $(pwd)/app_data:/app/app_data \
  zerobell/streamlink-dashboard:latest

# 2๏ธโƒฃ Open your browser
echo "๐ŸŽ‰ Dashboard ready at: http://localhost:8000"
echo "๐Ÿ”‘ First-time setup: Create your admin account in the web interface"
โ Option 2: Using Docker Compose
# Download and run
curl -O https://raw.githubusercontent.com/zerobell-lee/streamlink-dashboard/master/docker-compose.yml
docker-compose up -d
โ Option 3: Build from Source
# Clone, build and run
git clone https://github.com/zerobell-lee/streamlink-dashboard.git
cd streamlink-dashboard
docker build -t streamlink-dashboard .
docker run -d --name streamlink-dashboard -p 8000:8000 -v $(pwd)/app_data:/app/app_data streamlink-dashboard
โ ๐Ÿ‘จโ€๐Ÿ’ป Development Mode
# ๐Ÿ”ง Backend (Terminal 1)
cd backend
./run.sh  # ๐Ÿช„ Auto-setup venv and start server

# โš›๏ธ Frontend (Terminal 2) 
cd frontend
npm install && npm run dev  # ๐Ÿš€ Start with Turbopack

๐ŸŽŠ That's it! Your streaming dashboard is ready to go!

Open http://localhost:3000โ  (dev) or http://localhost:8000โ  (docker)

โ Manual Setup

Requirements:

  • Python 3.10+ (Required)
  • Linux/macOS/Docker environment (Windows not supported for development)
# Create virtual environment (Python 3.10 required)
python3.10 -m venv backend/venv
source backend/venv/bin/activate

# Install dependencies
pip install -r backend/requirements.txt

# Run development server
cd backend && ./run.sh
โ Environment Setup Guide

For detailed environment setup instructions, see Environment Setup Guideโ 

โ Production Deployment
# Build image
docker build -t streamlink-dashboard .

# Run with volume mount for data persistence
docker run -d \
  --name streamlink-dashboard \
  -p 8000:8000 \
  -v $(pwd)/app_data:/app/app_data \
  streamlink-dashboard
โ NAS Deployment (Synology)
# Run on Synology NAS
docker run -d \
  --name streamlink-dashboard \
  -p 8000:8000 \
  -v /volume1/streamlink-data:/app/app_data \
  streamlink-dashboard

โ Authentication

โ JWT-based Authentication
  • User Accounts: Create and manage user accounts with role-based access
  • JWT Tokens: Secure session management with token-based authentication
  • First-time Setup: Create your admin account during initial setup
  • Role-based Access: Admin and regular user roles with different permissions

โ Configuration Management

โ Database-based Configuration
  • Dynamic Settings: All configurations stored in SQLite database
  • No Container Recreation: Change settings without rebuilding containers
  • Web Interface: Manage all settings through the dashboard
  • NAS Friendly: Perfect for Synology NAS environments
โ Configuration Categories
  • Platform Settings: API keys, stream quality, custom arguments
  • Recording Settings: Storage paths, file naming, rotation policies
  • System Settings: Log levels, scheduler intervals, notification settings
  • User Settings: Dashboard preferences, favorite management

โ Logging & Monitoring

โ Docker Logging
# View application logs
docker logs streamlink-dashboard

# Follow logs in real-time
docker logs -f streamlink-dashboard

# View recent logs
docker logs --tail=100 streamlink-dashboard

# View error logs only
docker logs streamlink-dashboard 2>&1 | grep ERROR
โ Log Management
  • Structured Logging: JSON format for easy parsing
  • Log Rotation: Automatic log file rotation
  • Error Tracking: Comprehensive error logging and monitoring

โ Key Files & Structure

โ”œโ”€โ”€ backend/               # Python FastAPI backend
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ api/v1/       # REST API endpoints
โ”‚   โ”‚   โ”œโ”€โ”€ services/     # Business logic (scheduler, streamlink)
โ”‚   โ”‚   โ”œโ”€โ”€ database/     # SQLAlchemy models and DB setup
โ”‚   โ”‚   โ””โ”€โ”€ schemas/      # Pydantic schemas
โ”‚   โ””โ”€โ”€ run.sh            # Development server script
โ”œโ”€โ”€ frontend/             # Next.js frontend
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ app/          # Next.js 15 App Router
โ”‚   โ”‚   โ”œโ”€โ”€ components/   # React components
โ”‚   โ”‚   โ”œโ”€โ”€ lib/          # API client and utilities
โ”‚   โ”‚   โ””โ”€โ”€ store/        # Zustand state management
โ”œโ”€โ”€ app_data/             # Docker volume mount point
โ”‚   โ”œโ”€โ”€ database/         # SQLite database
โ”‚   โ”œโ”€โ”€ recordings/       # Recorded video files
โ”‚   โ”œโ”€โ”€ logs/             # Application logs
โ”‚   โ””โ”€โ”€ config/           # Configuration files
โ””โ”€โ”€ Dockerfile            # Multi-stage Docker build

โ ๐Ÿค Contributing

We'd love your help making Streamlink Dashboard even better!

Found a bug? ๐Ÿ› Have an idea? ๐Ÿ’ก Want to contribute? ๐Ÿš€

โ ๐Ÿ“ How to Contribute
  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create your feature branch (git checkout -b feature/amazing-feature)
  3. โœจ Commit your changes (git commit -m 'Add some amazing feature')
  4. ๐Ÿ“ค Push to the branch (git push origin feature/amazing-feature)
  5. ๐ŸŽฏ Open a Pull Request
โ ๐ŸŽฏ Areas We'd Love Help With
  • ๐Ÿ†• New Platform Support: Add support for more streaming platforms
  • ๐ŸŽจ UI/UX Improvements: Make the dashboard even more beautiful
  • ๐Ÿงช Testing: Help us achieve better test coverage
  • ๐Ÿ“š Documentation: Improve guides and examples
  • ๐Ÿ› Bug Fixes: Fix issues and improve stability
  • โšก Performance: Optimize recording and dashboard performance

โ ๐Ÿ“„ License

MIT License - feel free to use this project however you'd like!

See the LICENSEโ  file for full details.

โ ๐Ÿ“š Third-Party Licenses

This project stands on the shoulders of giants! Check out THIRD-PARTY-LICENSES.mdโ  for complete license information.

Quick Summary:

  • โœ… Project: MIT License
  • โœ… Backend Dependencies: MIT, Apache-2.0, BSD compatible
  • โœ… Frontend Dependencies: MIT compatible
  • ๐ŸŽ‰ All dependencies are MIT-compatible - ready for open source!

โญ Star this repo if you found it helpful!

โ˜• Buy me a coffeeโ  if you want to support development!

Made with โค๏ธ for the streaming community

Tag summary

Content type

Image

Digest

sha256:1b8cf4e2aโ€ฆ

Size

568.6 MB

Last updated

about 1 year ago

docker pull zerobell/streamlink-dashboard