rajhodedara/live-sport-plugin
关于
A robust live sports scraping and streaming plugin designed for media centers. Aggregates real-time feeds and delivers seamless IPTV playback.
设计与媒体可以做什么
- 🏟️ Multi-Source Live Aggregator: Concurrently scrapes and unifies live fixtures from 13+ scrapers (DaddyLive, Streamed.pk, StreamFree, WatchFooty, SportyHunter, TimStreams, StreamSports99, Streamic, CDNLiveTV, DamiTV, EmbedIndia, PpvSt, ReplayZone, ScoreZone) into a deduplicated catalog with merged stream choices.
- ⚡ Coalescing Zero-Lag HLS Manifest Proxy (/api/manifest): High-speed HLS proxy powered by impit with persistent keep-alive connections. Coalesces concurrent in-flight upstream requests (manifestInFlight) to eliminate duplicate fetches during live player segment polls and prevent ISP/upstream throttling.
- 🔐 Native WebAssembly (WASM) Decryption: Executes native WebAssembly binaries (stream-lock.wasm, gasm.wasm, gasm_india.wasm) directly in Node.js to decrypt obfuscated tokens and unlock protected third-party stream endpoints with zero headless browser overhead.
- 🌐 Universal Dynamic Host Routing: Zero hardcoded local IPs. Automatically inspects incoming Host, X-Forwarded-Host, X-Forwarded-Proto, and cf-visitor headers to dynamically rewrite all manifests, streams, and asset URLs to match the client's gateway (local LAN, Cloudflare Tunnels, Ngrok, or custom domains).
实测星标增长
- 24小时
- +2
- 7天
- +4
- 15天
- +19
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
🔴 Nuvio Live Sports Addon
⚠️ IMPORTANT HOSTING NOTICE: Do NOT deploy this addon to free or shared PaaS clouds like Render.com, Vercel, or Railway. Their automated Acceptable Use Policy (AUP) scanners detect web scrapers and media proxying, which will result in immediate and permanent suspension of your account.
Recommended setup: Self-host on a spare PC / laptop / Raspberry Pi, or use a cheap unmanaged Linux VPS (e.g., Hetzner, DigitalOcean, Oracle Cloud Free Tier) using Docker or Cloudflare Tunnels (
cloudflared).
🛡️ OFFICIAL NOTICE ON THIRD-PARTY FORKS & PAID SERVICES:
- 100% Free & Open-Source: This project is, and will always remain, completely free and open-source under the MIT license. There are NO paid subscriptions, NO device limits, and NO license keys.
- Unauthorized Monetization: If any third-party fork, website, or instance claims to be this addon while selling "premium access", "license keys", or monthly subscriptions (e.g., via PayPal or crypto), they are NOT affiliated with, supported by, or endorsed by this project.
- Content Scope: This addon exclusively indexes public live sports fixtures and replays. The official repository does not distribute or endorse adult content, shock media, or paid pirated IPTV bundles.
- Official Support: The only official repository is github.com/rajhodedara/live-sport-plugin. Voluntary community support is solely via Ko-fi.
☕ Enjoying Nuvio Live Sports? Help keep the public instance alive and cover server maintenance!
- Credit/Debit/PayPal: Support on Ko-fi
- Ethereum / Polygon (EVM):
0x619eA99F0D725BEE8e0CFe9552d5F4099d15724c- Solana (SOL):
CmuehW4PQn4yyQeXqguEpR3DjXwPPdS9Qqo4W5aWN8UU- Bitcoin (BTC):
bc1q9dd4nflxx8ja0vzy2phzsf8h9tr6590txgd07u
A production-grade live sports streaming add-on for Nuvio and Stremio. It serves as a high-throughput multi-source aggregator providing native live sports streams (Football, Basketball, Motorsport, Cricket, MMA, NFL, Tennis, and more) along with full match replays and 24/7 channels directly inside your player, backed by an advanced internal stream resolver to bypass CORS and ISP restrictions.
📱 App Preview & Screenshots
| 🏎️ F1 & Baseball Catalogs | ⚡ 1080p Direct Stream Picker | ⚙️ Addon Details & Luffy Logo |
|---|---|---|
![]() |
![]() |
![]() |
🚀 Self-Hosting Guides (Recommended)
Option 1: Docker / Docker Compose (Easiest for Servers & Raspberry Pi)
Run the addon container in seconds:
# Clone the repository
git clone https://github.com/rajhodedara/live-sport-plugin.git
cd live-sport-plugin
# Start the container in background
docker compose up -d
The addon is immediately available at http://localhost:7000 (or http://YOUR_SERVER_IP:7000).
Option 2: Local Node.js (Same Wi-Fi / Local Network or Cloudflare Tunnel)
Install and run the addon:
git clone https://github.com/rajhodedara/live-sport-plugin.git cd live-sport-plugin npm install npm run timezone:prepare export ICU_TIMEZONE_FILES_DIR="$PWD/.timezone-data/2026f-le" npm run build npm startAccess from other Devices on the Same Wi-Fi (Phone, TV, another Laptop):
- Find your host computer's local IPv4 address:
- Windows: Open Command Prompt (
cmd) and runipconfig(look forIPv4 Address, e.g.,192.168.1.50). - Mac / Linux: Open Terminal and run
ifconfigorip a(e.g.,192.168.1.50).
- Windows: Open Command Prompt (
- On any phone/tablet/laptop connected to the same Wi-Fi, open your browser:
(Example:http://<YOUR_IPV4_ADDRESS>:7000/configurehttp://192.168.1.50:7000/configure) - The addon auto-detects your local LAN IP and rewrites all URLs so mobile phones and smart TVs connect without configuration errors.
- Configure your favorite teams and sports, copy the manifest link, and paste into Nuvio / Stremio!
- Find your host computer's local IPv4 address:
(Optional) Expose Outside Home via Cloudflare Tunnel (
cloudflared):- Download
cloudflared. - Run a quick tunnel:
cloudflared tunnel --url http://127.0.0.1:7000 - Open
https://your-tunnel-url.trycloudflare.com/configureand install anywhere outside your home network!
- Download
(Alternative: You can also use Ngrok by running ngrok http 127.0.0.1:7000).
Option 3: Production Linux VPS with PM2 Cluster
For high concurrency on production servers, use the pre-configured ecosystem.config.js which includes cluster mode, jemalloc memory tuning, threadpool sizing, and stream pre-warming:
# Clone and build
git clone https://github.com/rajhodedara/live-sport-plugin.git
cd live-sport-plugin
npm install
npm run timezone:prepare
export ICU_TIMEZONE_FILES_DIR="$PWD/.timezone-data/2026f-le"
npm run build
# Start using the production PM2 cluster configuration
npx pm2 start ecosystem.config.js
npx pm2 save
npx pm2 startup
Automatic daylight saving time
Match times use UTC instants and the selected IANA timezone, with the rules for each event date. The build checks timezone behavior before producing a candidate. Docker prepares pinned official ICU data during image construction; local and PM2 setup requires the preparation step above. See timezone setup and maintenance for Windows commands, runtime verification, regional rule updates and cache handling.
⏪ Full Match Replays & Catch-Up Hubs
Never miss a game with native Full Match Replays and Highlights built directly into Nuvio and Stremio. Replays are organized into dynamic rolling relative date rows that calculate date ranges in real time when you open the app—eliminating stale hardcoded dates or the need to re-import JSON catalogs.
📅 Dynamic Rolling Relative Date Rows
Catalogs automatically adapt based on current time:
- 📅 Today's Replays / Races / Matches — Newly concluded fixtures from today.
- 📅 Yesterday's Replays — Full games and events from yesterday.
- 📅 This Week's Replays — Matches played over the last 2 to 7 days.
- 📅 Older Replays — Past games older than 7 days.
- 🏆 All Sport Replays — Complete historical replay archive for each sport category.
🏆 Supported Replay Categories & Leagues
- ⚽ Football / Soccer:
- 🏴 Premier League Replays
- ⭐ UEFA Champions League & Europa League
- 🌍 La Liga, Serie A, Bundesliga, Ligue 1, and International Tournaments
- 🏎️ Motorsport:
- 🏎️ Formula 1 (F1) Grand Prix Replays (Full Practice, Qualifying & Race sessions)
- 🏁 MotoGP, IndyCar, and NASCAR
- ⚾ Baseball:
- ⚾ MLB (Major League Baseball) Replays & Full Games
- 🏉 Rugby:
- 🏉 International Tests, Six Nations, Premiership Rugby, Super Rugby
⚡ Seamless Playback & Multi-Part Coverage
- Direct Playable TV Items: Every replay is mapped directly as a playable video item—no fake TV show seasons, episodes, or multiple nested menus.
- Multi-Part & Highlights Options: Choose between full unbroken match streams, split 1st Half / 2nd Half coverage, and condensed highlight packages.
- Nuvio Native Collections: Built-in
/collections.jsonendpoint powers horizontal landscape row browsing out-of-the-box.
✨ Key Features
- 🏟️ Multi-Source Live Aggregator: Concurrently scrapes and unifies live fixtures from 13+ scrapers (DaddyLive, Streamed.pk, StreamFree, WatchFooty, SportyHunter, TimStreams, StreamSports99, Streamic, CDNLiveTV, DamiTV, EmbedIndia, PpvSt, ReplayZone, ScoreZone) into a deduplicated catalog with merged stream choices.
- ⚡ Coalescing Zero-Lag HLS Manifest Proxy (
/api/manifest): High-speed HLS proxy powered byimpitwith persistent keep-alive connections. Coalesces concurrent in-flight upstream requests (manifestInFlight) to eliminate duplicate fetches during live player segment polls and prevent ISP/upstream throttling. - 🔐 Native WebAssembly (WASM) Decryption: Executes native WebAssembly binaries (
stream-lock.wasm,gasm.wasm,gasm_india.wasm) directly in Node.js to decrypt obfuscated tokens and unlock protected third-party stream endpoints with zero headless browser overhead. - 🌐 Universal Dynamic Host Routing: Zero hardcoded local IPs. Automatically inspects incoming
Host,X-Forwarded-Host,X-Forwarded-Proto, andcf-visitorheaders to dynamically rewrite all manifests, streams, and asset URLs to match the client's gateway (local LAN, Cloudflare Tunnels, Ngrok, or custom domains). - 🛡️ Opossum Circuit Breakers & Negative Caching: Every provider scraper is isolated via an Opossum circuit breaker to instantly trip on timeouts or failures. Dead upstreams are negatively cached for 15s so video players seamlessly fail over to alternate sources without freezing.
- 🖼️ Resilient 100% 200 OK Image Pipeline (
/img): High-performance image proxy with LRU caching (stale-while-revalidate), protocol-relative normalization (//), and dynamic inline SVG fallback cards to ensure clients never encounter broken posters or missing team crests. - 🛡️ Outbound SSRF Guard (
OutboundUrlGuard): Strict egress filtering preventing internal private network traversal and protecting local network infrastructure. - 🧠 Algorithmic Stream Scoring & Ranking: Evaluates and sorts stream links in real time based on resolution (1080p > 720p > SD), latency, direct M3U8 vs. webview embeds, audio commentary language, and live viewer counts.
- 🧱 Clean Architecture & Awilix IoC: Built with Domain-Driven Design (DDD) entities (
MatchEntity,StreamEntity), modular service layers, and an Awilix Inversion of Control (IoC) dependency injection container. - 📄 Declarative YAML Provider Engine: Includes a dynamic
YamlProviderBuilderallowing developers to configure and plug in new stream scrapers via declarative YAML definitions without writing boilerplate. - ⚙️ Responsive Glassmorphic Web Dashboard: Includes a local browser player (
/) and a full configuration interface (/configure) to filter sports categories, toggle active providers, localize match kickoffs to your timezone, and track favorite clubs. A provider status page (/status) reports scraper health for the instance.
🛠️ Tech Stack
| Layer | Technologies |
|---|---|
| Runtime & Core | Node.js (v22+ LTS), Express.js |
| Addon Protocol | stremio-addon-sdk (Stremio v1 Protocol) |
| Architecture & IoC | Awilix (Dependency Injection / IoC Container), Domain-Driven Design (DDD) |
| High-Performance HTTP & TLS | Impit (Native HTTP client with TLS/browser fingerprint impersonation), Undici |
| WASM Decryption Engines | Native WebAssembly execution (stream-lock.wasm, gasm.wasm, gasm_india.wasm) |
| Scraping & DOM Extraction | Cheerio, Happy DOM, jsdom, got-scraping |
| Resilience & Fault Tolerance | Opossum (Circuit Breakers), In-Flight Request Coalescing, Negative Cache Maps |
| Streaming & Playlists | m3u8-parser, Dynamic M3U8 segment rewriter |
| Background Scheduling | node-cron (Periodic match aggregator sync & pre-warming) |
| Encoding & Compression | lz-string (URL-safe base64url configuration compression) |
| Production Bundler | @vercel/ncc (Single CJS distribution with native WASM asset copying) |
🎛️ Configuration & Environment Variables
Configure the addon by editing .env or setting environment variables:
| Variable | Default | Description |
|---|---|---|
PORT |
7000 |
Port the Express server listens on |
ADDON_URL |
(auto-detected) | Public base URL (e.g., https://nuviosports.xyz). Leave unset for auto-detection |
RESIDENTIAL_PROXY |
"" |
Optional residential HTTP proxy for upstream anti-bot bypass (http://user:pass@host:port) |
CF_PROXY_URL |
"" |
Optional Cloudflare Worker proxy endpoint (see cloudflare-worker.js) |
WARP_PROXY_URL |
"" |
Optional Cloudflare WARP SOCKS5 proxy (socks5://127.0.0.1:40000) |
PREWARM_CRON_SCHEDULE |
*/3 * * * * |
Cron schedule for pre-warming in-flight stream resolutions |
PREWARM_MAX_MATCHES |
12 |
Max number of concurrent live matches to pre-warm |
Interactive Configuration UI (/configure)
Visit http://localhost:7000/configure to customize:
- Sports Filtering: Select from 14+ sports categories (Soccer, Basketball, Cricket, F1 & Racing, NFL, Hockey, Baseball, MMA, Golf, Tennis, Rugby, College Sports, Darts, Other).
- Streaming Sources Selection: Individually enable or disable scrapers (DaddyLive, StreamFree, TimStreams, Streamed.pk, SportyHunter, WatchFooty, CDNLiveTV, StreamSports99, Streamic, DamiTV, EmbedIndia, PpvSt, ReplayZone, ScoreZone).
- Localization & Timezones: Automatically detects or manually configures your local IANA timezone to render match kick-offs in your local time.
- Priority Tracking ("⭐ Your Teams"): Enter comma-separated favorite clubs or athletes (e.g.
Arsenal, Lakers, Ferrari) to dynamically generate a dedicated priority catalog.
Provider Status UI (/status)
Visit http://localhost:7000/status to see, per provider, the last catalog sync state, fixture count, response time and open circuit breakers for the running instance. The page refreshes every five minutes. Providers that reused cached fixtures are shown as served from cache and are not plotted on the response-time chart.
🚀 Development Workflow
# 1. Install dependencies
npm install
# 2. Start development mode with native file watch reload
npm run dev
# 3. Build for production (bundles with @vercel/ncc and copies WASM runtimes)
npm run build
# 4. Launch compiled production server
npm start
# 5. Scaffold a new scraper from template
npm run generate:provider
🧪 Testing & Verification Suites
The repository contains an exhaustive test suite with 52 test suites and 656+ passing unit, integration, and load tests:
# Run unit & service test suites with Jest
npm test
# Run simulated Stremio client E2E test (verifies manifest, catalogs, and streams)
npm run test:e2e-client
# Run live upstream scraper health check across all providers
npm run check-sources
# Validate 24/7 channels and live TV endpoints
npm run test:247
# Run performance and memory benchmarks
npm run bench
# Run heap memory benchmark
npm run bench:heap
📄 License & Disclaimer
This project is licensed under the MIT License.
- Personal & Educational Use: This software is an experimental media aggregator and protocol scraper developed solely for personal, non-commercial, and educational purposes.
- No Hosting of Media: This addon does not host, broadcast, or store any video content or media streams on its own servers. It merely parses publicly reachable web manifests.
- Third-Party Integrity: The authors assume no liability for unofficial third-party forks, paid reseller bundles, or modified distributions operating under independent domains.
探索相关项目
加载中…


