Skip to content

About

Cross-platform serverless media player, downloader & encrypted cloud library (Tauri v2 + librclone + anacrolix/torrent + libmpv)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

RStream

Cross-platform serverless media player, downloader, and encrypted cloud library built with Vanilla JS + Tauri v2 + librclone + anacrolix/torrent + libmpv for Linux, Windows, and Android / Android TV.

Architecture Highlights

  • Zero Pre-Bundled Add-ons: Ships with an empty Stremio add-on list out of the box. Install any Stremio-compatible catalog, stream, or subtitle manifest URL in Settings → Add-ons.
  • Unified CGO Shared Library (goengine/): Single c-shared binary combining rclone/librclone (v1.73.3) and anacrolix/torrent (v1.63.0 with pure-Go go-utp):
    • Ring-Buffer Streaming (RingStorage): Bounded RAM piece storage (384 MiB desktop / 128 MiB Android) pinning the first & last 2 MiB of the selected file (moov / MKV Cues), protecting a sliding playhead window, and invalidating evicted pieces so backward seeks re-fetch cleanly over HTTP Range (127.0.0.1:0/stream/<lease_id>).
    • Full-Protocol VPN Killswitch & Interface Binding: Keeps TCP (in/out), uTP (in/out), UDP & HTTP trackers, WebSeeds, and Mainline DHT active while binding every socket directly to the VPN tunnel (SO_BINDTODEVICE on Linux, IP_UNICAST_IF/IPV6_UNICAST_IF + LocalAddr on Windows, IP_BOUND_IF on macOS, android_setsocknetwork + ConnectivityManager callback on Android), with a 250 ms fail-closed watcher and 60 s RAM-only ipleak.net probe.
    • Resumable Archiving & Zero-Knowledge rclone crypt: Save Movies, Episodes, Seasons, or Full Shows (with bingeGroup + release-tag StreamMatcherLock) locally or to any of 70+ rclone providers wrapped in optional rclone crypt encryption, plus HLC CRDT serverless multi-device library/progress sync.
  • Embedded libmpv Video Surface:
    • Renders directly beneath Tauri's transparent WebView (GtkGLArea + Wayland/X11 DMA-BUF on Linux, HWND_BOTTOM + gpu-next D3D11/HDR10 on Windows, SurfaceView + mediacodec_embed / automatic gpu-next switch on Android).
    • Drop-in mpv.conf, GLSL shaders (.glsl / .hook), and input.conf keybinds that both bind keyboard shortcuts and populate the interactive in-player Commands menu for touch, mouse, and TV remote users.

Reproducible nix build Targets

All toolchains, SDKs, cross-compilers, and dependencies are managed via flake.nix:

# 1. NixOS desktop package (default)
nix build .#default
./result/bin/rstream --self-test

# 2. Self-contained portable Linux AppImage (runs anywhere)
nix build .#appimage

# 3. Single-file portable Windows x86_64 executable (cross-compiled via MinGW)
nix build .#windows-portable

# 4. Signed, 16 KB page-aligned Universal Android APK (arm64-v8a + x86_64, phone + Android TV)
nix build .#android-apk

NixOS Module

{
  # Tracks the latest stable release automatically updated by CI:
  inputs.rstream.url = "github:fumoctl/RStream-App/latest";

  outputs = { nixpkgs, rstream, ... }: {
    nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        rstream.nixosModules.default
        { programs.rstream.enable = true; }
      ];
    };
  };
}

About

Cross-platform serverless media player, downloader & encrypted cloud library (Tauri v2 + librclone + anacrolix/torrent + libmpv)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages