Open-source project
KuekHaoYang/KVideo avatar
KuekHaoYang/KVideo

KVideo: a Next.js video aggregator that ships without any sources

A modern video aggregation platform built on Next.js 16, using a distinctive 'Liquid Glass' design language for a smooth visual experience and powerful video search.

4,267 stars7,346 forksTypeScriptMIT

At a glance

What is it?
KVideo is a self-hosted video aggregation and playback front end for Next.js 16, aimed at people who already have licensed content sources to plug in. Its search, IPTV and player features are real; the content is entirely yours to supply.
Who is it for?
Adopt KVideo if you already hold licensed or otherwise authorised sources and want a polished player, parallel search and IPTV front end without building them. Do not adopt it if you expect the repository to supply content: the README states it ships no video, premium or IPTV sources.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 102 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • KuekHaoYang/KVideo4,267 ★ · +132
Star history
Repository2026-09-232026-11-25
KuekHaoYang/KVideo4.1k4.3k

132 Stars in the last 63 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What KVideo actually solves, and for whom

KVideo is a front end. The README is explicit that the repository ships with no video sources, premium sources or IPTV sources, and that whoever deploys it must configure content they are authorised to use and that permits access from the deployment. That single sentence defines the audience: people who already have a source list, an IPTV playlist or a licensed catalogue, and who want a player and a search layer over it rather than a content library.

The project bundles two things that are usually separate. One is a playback client: HLS via hls.js, Chromecast, picture-in-picture, a proxy layer with three modes, keyboard shortcuts, and a mobile interface built around double-tap gestures. The other is a search and browsing layer: parallel queries across multiple sources returned over Server-Sent Events, Douban metadata for ratings, cast and synopsis, watch history, favourites and a recommendation tab built from that history. If you were assembling those two halves yourself, this is the shortcut.

It is a poor fit for anyone who wants a working app on first deploy. There is no default source list, so a fresh install opens onto an empty search. The value only appears after you import sources, which means the project is closer to a framework for a video site than to a video site.

How parallel search and the source model work

Search runs server side and streams back over Server-Sent Events, so results from each source appear as they arrive rather than after the slowest one finishes. The README describes per-source timeout protection, an AbortSignal check so a disconnected client stops work, a cap on total results to avoid memory growth, and a cancel button that terminates an in-flight search. Those are the details that decide whether an aggregator is usable against a dozen flaky sources, and they are documented rather than implied.

Sources are user-managed data, not code. You add, edit and import them, including bulk import from a JSON array or from a subscribed JSON link that updates automatically. Non-admin users can add personal sources that stay isolated per user. A unified parser layer normalises the differing response shapes, and the UI can merge identically named sources or show them separately. Latency can be displayed per source and is used for ordering, and the player falls back to the lowest-latency available source when the current one fails.

Two details are worth calling out because they are unusual. Traditional Chinese queries are converted to Simplified before searching via opencc-js, which matters if your sources index Simplified titles. And resolution is probed from the m3u8 manifest rather than trusted from the source's label, so every entry in the source list can carry a real 1080P or 720P tag instead of whatever the provider claims.

Running KVideo with Docker on port 3000

The repository includes a Dockerfile and a docker-compose.yml. The compose file builds from the local context, maps port 3000 and sets NODE_ENV to production, so the first run compiles the app from source rather than pulling an image.

yaml
services:
  kvideo:
    container_name: kvideo
    build:
      context: .
      dockerfile: Dockerfile
    restart: always
    ports:
      - 3000:3000
    environment:
      - NODE_ENV=production

Run docker compose up from the repository root. The Dockerfile is multi-stage on node:22-alpine, installs dependencies from whichever lockfile it finds (yarn.lock, package-lock.json or pnpm-lock.yaml), then builds with npm run build, which the package.json defines as next build --webpack followed by a client asset transpile step. Expect a long first build; subsequent runs reuse the dependency layer.

For local development outside Docker, the package.json exposes a dev script that wraps next dev in a LAN access helper. The README states that the cross-device config sync needs Upstash Redis variables and silently falls back to local storage without them, so treat Redis as optional until you want settings to follow you between devices.

IPTV, danmaku and the proxy layer

The IPTV side is where the project has clearly absorbed real-world pain. M3U and M3U8 playlists are supported alongside JSON channel lists, and the README describes parsing http-user-agent and http-referrer attributes out of the playlist and passing them through a proxy. That exists because browsers will not set those headers themselves, and the documented symptom is channels such as CCTV that play audio with no picture. There is also HEVC handling: when a stream is H.265, the player prefers an H.264 variant to avoid desynchronised audio or audio-only playback.

The proxy is also what makes the whole thing work across origins. The README lists a built-in HLS stream proxy that rewrites M3U8 URLs and handles CORS, content-type sniffing when a server returns an ambiguous type, HTTP 3xx redirect following, and a set of timeouts (15 seconds for requests, 30 for loading, 20 for segments, three manifest retries). Channel lists are cached per source, and at most three sources are fetched concurrently to avoid saturating the network.

Danmaku support is narrower than it first appears. KVideo does not host a comment service; it connects to a self-built aggregation API compatible with the danmu_api format, and each user can register multiple API endpoints with the user's choice taking priority over the system default. A DANMAKU_API_URL or NEXT_PUBLIC_DANMAKU_API_URL variable can preset an endpoint for everyone. Without such an API, that feature has nothing to talk to.

Where KVideo stops being the right tool

The clearest limitation is the one the README states outright: no bundled sources. Everything downstream of that is a consequence. Search quality is a function of the sources you add, not of the software.

The second constraint is storage. Favourites are capped at 100 per mode, watch history at 50 entries, and the two modes (normal and premium) keep separate favourites, history and recommendations. Those numbers are fine for personal use and awkward for anything shared. Watch history is described as stored locally, though the README also mentions watch history and favourites sync sharing the same Upstash Redis instance as config sync.

Third, the sync feature has a hard dependency. Cross-device configuration sync, added to work around iOS Safari not sharing localStorage between a home-screen PWA and the browser, stores config in Upstash Redis under user:config:{profileId}, keyed by a SHA-256 hash of the profile id. No Redis, no sync. The README lists exactly what syncs: sources, premiumSources, subscriptions, blockedCategories, sortBy and locale.

Finally, if your environment cannot run a Node server, the deployment surface narrows. The package.json includes a pages:build script using next-on-pages, and the README mentions Cloudflare Pages and Vercel as targets, so edge deployment is anticipated.

How it differs from LibreTV, MoonTV and LunaTV

The README does not compare KVideo with LibreTV, MoonTV or LunaTV, so what follows covers only what KVideo itself documents.

KVideo leans hard on the player and the source-management layer. The README documents three proxy modes (smart retry, direct only, always proxy), stall detection, automatic skip of opening and ending segments by configurable seconds, auto-play of the next episode, resume from the last position, and a source list that probes every entry's real resolution from its manifest rather than only the one playing. It also folds long source lists by default, showing the first five with an expand control, and sorts remaining lines by latency.

It also carries a heavier dependency footprint than a minimal aggregator: Next.js 16.2.12, React 19.2.4, Tailwind v4, Zustand, hls.js, opencc-js and @upstash/redis. That buys the design system the README calls Liquid Glass, built on backdrop-filter glassmorphism, two fixed corner radii, and cubic-bezier transitions. Whether that trade is worth it depends on whether you want a designed product or a thin wrapper. KVideo is clearly the former, and the Docker image build time reflects it.

Licence, maintenance and upgrade cost

KVideo is MIT licensed, which permits commercial use, modification and redistribution provided the copyright notice and permission notice are retained. That is a permissive licence and places no copyleft obligation on your own changes. It says nothing about the content you point the app at, and the README's own warning about authorised sources is the relevant constraint there. This is a description of the licence text, not legal advice.

The repository is not archived and the last push was on 2026-08-16. The README's first badge points at an upstream sync workflow in a fork (sky06walker/KVideo); if you deploy from a fork, track which upstream you are actually following.

Upgrade cost is dominated by the Next.js dependency. The project is pinned to Next 16.2.12 with React 19.2.4 and Tailwind v4, all recent majors, and the build script runs next build --webpack plus a custom asset transpile step. That custom step is the part to watch: it is project-specific tooling sitting between the framework and the output, so a Next.js major bump is not a version-number edit. The test script runs tsx --test over tests/**/*.test.ts, which gives you a way to check a bump before shipping it.

Editorial conclusion

Adopt KVideo if you already hold licensed or otherwise authorised sources and want a polished player, parallel search and IPTV front end without building them. Do not adopt it if you expect the repository to supply content: the README states it ships no video, premium or IPTV sources. Before deploying, confirm your sources are legal for your deployment, and decide whether you need Upstash Redis, because without it the cross-device config sync described in the README has nothing to store to.

Frequently asked questions

Does KVideo include any video sources?

No. The README states that the repository ships with no video sources, premium sources or IPTV sources, and that the deployer must configure sources they are authorised to use and that permit access from the deployment.

What is KVideo built with?

It is a Next.js 16 application using React 19, Tailwind CSS v4 and TypeScript, with hls.js for HLS playback, Zustand for state, opencc-js for Chinese conversion and @upstash/redis for configuration sync.

How do I run KVideo with Docker?

The repository's docker-compose.yml builds from the local context with the included Dockerfile, maps port 3000 and sets NODE_ENV to production, so docker compose up builds and starts the app.

Does KVideo need Upstash Redis?

Only for cross-device configuration sync. The README describes storing user config in Upstash Redis under the key user:config:{profileId}, and states that configuring the Upstash Redis environment variables is a prerequisite for that feature.

Official sources

  1. KuekHaoYang/KVideo on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/kuekhaoyang-kvideo.svg)](https://hysenlabs.com/projects/kuekhaoyang-kvideo)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/kuekhaoyang-kvideo.svg)](https://hysenlabs.com/projects/kuekhaoyang-kvideo)

Was this useful?