Skip to content
pl0xueePublic

About

Desktop shell that unifies the official streaming sites (Netflix, Prime, Disney+, Max, Hulu, YouTube, and more) with Widevine playback via castLabs Electron.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

StreamHub

One desktop app for the official streaming sites — Netflix, Prime Video, Disney+, Max, Hulu, YouTube, YouTube TV, Apple TV+, Paramount+, Peacock, Crunchyroll, Twitch, Rumble, Tubi, your own Jellyfin server, and any others you add — instead of a drawer full of browser tabs.

Each service loads its own website and plays through its own DRM. No DRM is circumvented, extracted, or bypassed: this is a purpose-built Chromium shell hosting the official web players, built on castLabs ECS, an Electron fork that bundles the licensed Widevine CDM (vanilla Electron cannot play these sites).

Download

Grab the latest StreamHub.AppImage from Releases.

Since v0.7.0 it no longer needs FUSE 2 (libfuse2). The AppImage carries its own FUSE library and only needs fusermount3, which current distros ship by default (package fuse3).

No FUSE at all, e.g. in a container? APPIMAGE_EXTRACT_AND_RUN=1 ./StreamHub.AppImage.

Know before you install

  • DRM video tops out at 1080p, often 720p. Linux browsers only have software Widevine (L3); 4K and full-bitrate HD need hardware DRM (L1 + HDCP), which no Linux browser has. Each service decides what L3 gets: Netflix serves 1080p AV1, at a capped bitrate (measured on v0.7.0); most others stop around 720p. Chrome and Firefox get the same treatment — it's a platform limit, not a bug. Non-DRM services (YouTube, Twitch, Rumble) go higher via their own quality menus.
  • No offline downloads — ECS has no persistent Widevine licenses on Linux.
  • Linux only.

Features

  • Glass chrome — the sidebar is a slab of tinted glass resting over the page rather than sitting beside it: held clear of the window on all four sides, rounded, lifted by a shadow, and see-through enough that a bright frame is plainly visible behind it. It rests off the left edge until you reach for that edge, and nothing behind it moves or resizes when it comes and goes. The settings, the removed list and the quick switch float the same way. Both halves are switchable in Settings: pin it open, or dock it beside the page opaque, the way it used to sit.
  • Sidebar with one-click switching; drag to reorder, delete to a "Removed" list, click to restore. Collapses to an icon rail. Each service is shown with its own logo, learned from its site the first time you open it.
  • Quick switch — Ctrl+K, a few letters, Enter. Shift+Enter tiles it as another grid pane. Works from inside a service too, not just when the sidebar is already open.
  • Pause on switch — leaving a service pauses its video, returning resumes it. The services you have been using recently stay loaded so switching back to them is instant; ones you have not touched in a while are released and load again next time, so a long session does not end with a dozen streaming sites still resident.
  • Stays signed in, per service, in isolated sessions. Popup sign-in ("Sign in with Google/Apple") works. Right-click a service to sign out and wipe its data.
  • System media controls (MPRIS) — the KDE/GNOME panel and lock screen drive playback. Media keys work while the app is focused.
  • Grid view — tile up to four services at once, the same one more than once if you like (two streams side by side). The controls live in a small panel at the top of the window that stays out of the way until you reach for it: drag a tile to move a pane and it keeps playing where it lands. Choose packed, stacked or side-by-side.
  • Full-window theater mode on YouTube — the player takes the window to itself with the video centred in it, and the top bar hides until you reach for it. Scroll down as usual for the description and comments. On by default; the switch is in Settings.
  • Twitch streams open in theater mode — the player is already at full height when the stream arrives, chat still beside it, instead of sitting in a box with the channel panels underneath. Leaving theater mode on one stream lasts until you open the next. On by default; the switch is in Settings.
  • Full-window theater mode on Crunchyroll — episodes fill the window and the top bar hides until you reach for it. Scroll down for the episode details and what plays next. On by default; the switch is in Settings.
  • Full-window theater mode on Rumble — videos fill the window and the top bar hides until you reach for it, while live chat stays beside livestreams. Scroll down for the description, comments and related videos, or press T / click the player's theater button to toggle it for the current video. On by default; the switch is in Settings.
  • Your own Jellyfin server — see below.
  • Jellyfin plays through mpv — no DRM is involved on your own server, so a real player can take the original file instead of the browser asking the server to transcode it, decoded on the graphics card. The sidebar stays usable while a film plays. Needs mpv installed; the switch is in Settings.
  • Keeps the screen awake during playback; picture-in-picture; fullscreen (F11).
  • Remembers where you left off — window, last service, sidebar state.
  • Sized for the monitor it is on. On a desktop that scales its monitors differently (a 4K screen at 150% beside a 1440p one at 100%, say) the app asks what the monitor is set to and follows the window from one to the next. Or pick a fixed size in Settings — see Display scaling.
  • Video decoded on the graphics card, where the driver allows it, so a 4K stream is not a CPU core for the length of a film. Switchable in Settings.
  • Settings (sidebar gear, or Ctrl+,) — a panel over the page rather than a second window: ad blocker, the YouTube, Twitch, Crunchyroll and Rumble theater modes, how the sidebar behaves, display size, playback, tray behaviour, updates. The removed list is a panel now too.
  • Optional tray icon — closing the window keeps a stream running.

Updating

"Check for updates" in Settings downloads the new build, swaps the AppImage in place and restarts into it — no browser, no reinstall. The sidebar's gear shows a dot when one is waiting.

The file is deliberately named StreamHub.AppImage, with no version in it, so updates overwrite that one path and your desktop entry and dock icon keep working. Coming from an older StreamHub-<version>.AppImage, the update renames the file once and warns you first; repoint your shortcuts that one time and updates stop disturbing them.

Self-updating only works when running as the AppImage. Started any other way, the app sends you to the download page instead.

Jellyfin

Jellyfin ships in the list like everything else, but it is the one service with no address to ship: the server is yours. Click it and StreamHub asks where that server is — the same address you would type into a browser, http://192.168.1.10:8096 or https://media.example.com/jellyfin — checks something is actually answering there, and names the server it found before saving it. From then on it is an ordinary service: its own session, its own login, grid panes, media keys.

  • A bare 192.168.1.10:8096 is enough; the scheme is assumed, and a /web/index.html copied out of a browser is trimmed off.
  • If the check fails but you know the address is right, it offers to use it anyway.
  • Right-click Jellyfin in the sidebar → Change server… to point it somewhere else. The login is left alone, so pointing it back picks up where it left off.
  • HTTPS with a self-signed certificate will not load. Chromium refuses it and StreamHub does not override that. Use plain http on your own network, or give the server a real certificate.
  • No DRM is involved here — this is your own server, so quality is whatever it serves and the Widevine limits above do not apply.

Playing through mpv

Because the server is yours and no DRM stands in the way, StreamHub can hand the file to mpv instead of playing it in the browser. MKV, H.265/HEVC, DTS and TrueHD audio, PGS and VOBSUB image subtitles and 10-bit video all direct-play that way. The browser player cannot decode any of them, so it makes the server transcode instead — burning CPU on the server and losing quality on the way.

Press play and mpv takes over the content area in its own window. The sidebar stays where it is: reach for the left edge and it slides out as usual, with the film moving over to make room for it (nothing can be drawn over mpv, so the picture steps aside instead). Pick another service and the film pauses and goes with the page; come back to Jellyfin and it carries on. Settings and the quick switch open over the page while the film plays on behind them. Stop, and you are back on the page you were on.

mpv decodes on the graphics card (VA-API or NVDEC, falling back to the processor for anything they cannot take) and reads well ahead of the picture, so a busy server or a Wi-Fi hiccup is absorbed rather than seen. Settings → Playback → "Decode video on the graphics card" turns the GPU half off for mpv as well as for the browser.

The controls are drawn by mpv rather than by StreamHub's glass chrome, and mpv's usual keys work — space to pause, arrows to seek, f for fullscreen.

Esc takes you back to the library. So does q, which is rebound here: in a standalone mpv it would end the process, and while a film is playing mpv covers the whole content area with the sidebar stepped aside, so that key is the way out rather than the way to quit. In fullscreen, Esc leaves fullscreen first and returns to the library on a second press.

Where you stopped is reported back to the server, so an item keeps its resume point, shows up under Continue Watching, and is marked played when it reaches the end.

It needs mpv installed:

Distro
Arch / CachyOS sudo pacman -S mpv
Debian / Ubuntu sudo apt install mpv
Fedora sudo dnf install mpv

If mpv is missing, Jellyfin quietly falls back to the browser player. There is a switch in Settings — "Play Jellyfin through mpv" — to turn it off; turning it off reloads the Jellyfin view.

Honest caveats:

  • In a grid, one film at a time. mpv plays inside Jellyfin's tile; there is one mpv, so a second Jellyfin pane cannot play a second film alongside it. mpv's own fullscreen (f, or its button) takes the whole screen; F11 fullscreens the grid with the film staying in its tile.

  • The glass chrome cannot float over the video. An Electron window cannot be composited above the window mpv renders into — this was tried, and it does not work. That is why the controls are mpv's rather than the app's, and why the film moves aside for the sidebar rather than sitting under it.

  • On Wayland, mpv plays in a window of its own. mpv can only be handed a window to draw into on X11 — it has no such support on Wayland — so on a Wayland session, where the app runs natively, the film opens in mpv's own window beside the app rather than inside it. To have it embedded, start the app on X11 instead: StreamHub.AppImage --ozone-platform=x11 (or npm start -- --ozone-platform=x11), and XWayland hosts it.

    That used to be the default, and it was given up on purpose: under XWayland, Netflix and the other services drop frames (see "Smooth video under XWayland" below) and answer by pausing and lowering the quality. X11 also lets any other X client on your machine read your keystrokes, including the ones you type into a service's sign-in page, which Wayland does not.

  • Linux only, like the rest of the app.

Display scaling

On a Wayland desktop the app runs natively, and Chromium takes each monitor's scale from the compositor itself. This section is about running it on X11 (see the mpv note above), which on a Wayland desktop means under XWayland — and XWayland has no way of telling a program what scale a monitor is set to. Most compositors work around that by scaling X windows up themselves: the right size, a little soft. Hyprland with xwayland { force_zero_scaling = true } (Omarchy's default) does not: X programs get the monitor's real pixels and are expected to scale themselves. Left alone, Chromium draws at 100%, and on a 4K monitor at 150% the whole app comes out at two-thirds size.

So StreamHub asks Hyprland what each monitor is set to and draws itself accordingly, following the window as it moves between monitors of different scales. It is applied as page zoom rather than a device scale factor, which is what lets it change at runtime and differ per monitor — visually the two are the same thing.

Settings → Display → Size on this monitor shows what it settled on ("150%, from DP-2"), and offers fixed sizes from 100% to 200% for a desktop it cannot read, or for anyone who would rather have the app larger or smaller than the desktop's idea. Applied at once; nothing restarts.

Hardware video decoding

On by default, off in Settings → Playback. Chromium ships with GPU video decoding disabled on Linux, and this turns it on (AcceleratedVideoDecodeLinuxGL / VA-API). It applies to the services that play unprotected video — YouTube, Twitch, Jellyfin's browser player — where a 4K VP9 or AV1 stream decoded in software is otherwise a whole CPU core. Widevine services decode inside the CDM, in software, either way and are unaffected (Netflix's 1080p AV1 costs about three quarters of one core).

If a video ever comes out green, black or torn, that is the driver: turn the setting off and restart. It is a launch flag, so a change takes effect on the next start.

Smooth video under XWayland

This only applies when the app is started on X11 on a Wayland desktop (see the mpv note above), which puts it under XWayland. There Chromium cannot get a reliable vsync signal: it schedules frames against a clock that is wrong, and video drops frames — measured at 3–8% of them on a 60Hz monitor under Hyprland. YouTube and Netflix both read dropped frames as a player that cannot keep up, and answer by lowering the quality, which is what makes the picture keep changing resolution mid-film.

So under XWayland the app stops waiting on vsync (--disable-gpu-vsync), which took the same stream to no dropped frames at all. It cannot tear — the Wayland compositor still presents every frame on vblank. The cost is that a page's own animations run at the fastest monitor's refresh rate rather than the one the window is on. On by default; Settings → Playback → "Keep video smooth under XWayland" turns it off, and applies on the next start. It is not offered anywhere else, where it would do nothing useful.

It helps, but over a whole film it is not enough. Measured under Hyprland with it on, Netflix still dropped 1–2% of its frames in phases that came and went every few minutes, and each phase ended with Netflix pausing to flush its buffer and stepping the film down — 1080p to 342p within five minutes. The same build on native Wayland dropped none in 27 minutes. That is why the app no longer runs under XWayland unless asked to.

Ad blocking

Off by default, and experimental — the toggle is in Settings.

It blocks network requests and applies cosmetic filters using standard uBlock Origin / EasyList rules, via @ghostery/adblocker running in the main process (uBlock Origin Lite itself is a Manifest V3 extension, which Electron can't load). Filters are fetched on first enable, cached, and refreshed weekly. Right-click a service to turn blocking off for just that site.

Honest caveats:

  • Server-stitched ads still get through. Where ads are muxed into the video itself (Hulu's ad tier, Peacock free, some YouTube ads) there is no request to block. Every blocker hits this limit.
  • It may break a service. An over-broad rule can take out a player or a sign-in flow. Turn it off and reload if a site misbehaves.
  • Blocking ads on an ad-supported tier may breach that service's terms. Your call — it ships off.

Privacy

No account, no server, no telemetry. Logins are ordinary browser cookies under ~/.config/streamhub/, encrypted through your OS secret store (kwallet/gnome-libsecret) the same way Chrome's are.

Two limits: cookies written by an older build stay plaintext until the site rewrites them (sign out and back in to convert one), and on a system with no keyring Chromium falls back to a hardcoded key, which is obfuscation rather than security. A session cookie is a working login — don't sync or commit that directory.

Development

npm install     # downloads the castLabs ECS binary (bundles Widevine)
npm start
npm run build   # -> dist/StreamHub.AppImage

The built-in service list is DEFAULT_SERVICES in src/services.js — add { id, name, url, color } and it shows up, including for existing users, without disturbing their order or removals. Personal lists live in ~/.config/streamhub/services.json, never in the source.

A service whose address is the user's own server instead carries selfHosted: true and an empty url. Its view then loads src/ui/setup.html — the only page in the app served to a service view, and the only one given a bridge (src/setup-preload.js) — until an address is saved, at which point the view is rebuilt on the real server.

Legal

A personal-use shell around official streaming sites. castLabs ECS is free for personal/development use; redistribution has its own VMP signing and license terms. Keep it a shell — no scraping of protected streams, no key handling.

MIT.

About

Desktop shell that unifies the official streaming sites (Netflix, Prime, Disney+, Max, Hulu, YouTube, and more) with Widevine playback via castLabs Electron.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages