Skip to content
falsisdevPublic

About

Vessel is a local-first, cross-platform streaming and media center currently being written from the ground up in Rust.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Vessel — Local-First Streaming & Media Center

Most ships dread Rust. This cargo vessel runs on it — shipped with Cargo, engineered not to rust, docking plugins by manifest at local ports.

Releases · Documentation Wiki · Türkçe Wiki · Offline Docs (docs/wiki/) · GPL-3.0 License

Vessel is a local-first, cross-platform streaming and media center built from the ground up in Rust, Tauri v2, Vue 3 / TypeScript, and Kotlin Jetpack Compose (UniFFI).


Core Principles

  • Local-First & Zero Server Cost: Plugin execution, SQLite library state, watch progress, metadata caching, skip-segment lookup, offline downloads, and the local HTTP/HLS proxy (127.0.0.1) all run directly on your device. Zero telemetry.
  • Replaceable Shell, Permanent Brain: All business logic lives inside UI-agnostic Rust crates (vessel-engine and workspace crates), keeping UI shells thin and portable across Desktop, Android, and iOS.
  • Self-Contained Plugins + Optional Metadata Enrichment: Community TypeScript/JavaScript plugins (rquickjs + oxc) work without external IDs (TMDB/IMDb/AniList) to list episodes or resolve streams, while optional background enrichment adds artwork, synopses, AniZip episode stills/titles, skip segments, and (season, episode) ↔ absolute_episode alignment.
  • CloudStream / Nuvio-Grade UX: Source resolution before playback, full-screen HUD player with skip buttons and gestures, Smart Continue Watching, Fix Match manual ID overrides, built-in IPTV + XMLTV EPG, and concurrent offline HLS/range downloads.

Implemented Features

Core Engine & Runtime (Rust)

  • Isolated JS/TS Plugin Runtime (vessel-plugin-rt): Powered by rquickjs + oxc TypeScript stripping with SQLite compile caching, ES6 module loading (local Dev Mode directories & .plugin.vessel zip packages), per-sandbox resource limits (32 MiB heap ceiling, 512 KiB stack, 15s execution watchdog), an LRU warm plugin pool (18 plugins, 5-minute idle TTL), Nuvio scraper compatibility shims (cheerio, axios, CryptoJS, fetch), and parallel streaming search with cancellation.
  • Built-in Plugin SDK (vessel.*): vessel.http (with DNS-resolved SSRF protection and per-domain user permission prompts), vessel.html.parse (scraper CSS selectors), vessel.crypto (AES-CBC/GCM/CTR/ECB, HMAC-SHA256, MD5/SHA1/SHA256, RC4, Hex/Base64), vessel.archive (unzipEntries, gunzip, and decodeText with UTF-8 / windows-1254 / iso-8859-9 detection), vessel.storage (isolated KV + settingsSchema values), vessel.unpack (Dean Edwards P.A.C.K.E.R), and vessel.evalWithEnv.
  • Built-in Subtitles Container (subtitles-container): Ships pre-installed out of the box (can be disabled, never uninstalled) with multi-language external subtitle search directly inside the Desktop and Android players across OpenSubtitles (REST API v1 + key-free Stremio v3 fallback), SubDL, SubSource, TurkceAltyazi.org, YIFY Subtitles, Addic7ed, TVSubtitles.net, and Kitsunekko.
  • Local HTTP / HLS Proxy (vessel-proxy): Binds 127.0.0.1:0 using axum + reqwest (rustls), ephemeral stream tokens, HMAC-SHA256 signed sub-URLs (open-relay protected), HTTP 206 Range pass-through, .m3u8 playlist rewriting (#EXT-X-KEY, #EXT-X-MAP, #EXT-X-MEDIA), offline loopback file serving with path-traversal guards, and Smart Proxy header injection.
  • Metadata & Skip-Segment Engine (vessel-metadata): Zero-key AniList, Cinemeta (IMDb), MyAnimeList (Jikan), Kitsu, and AniZip enrichment plus optional TMDB API key & Simkl Client ID support, interactive 6-provider Fix Match title search & manual ID overrides, (season, episode) ↔ absolute_episode coordinate translation, and multi-source skip segments (Plugin > TheIntroDB > IntroDB > AniSkip) supporting Intro, Recap, Credits, and Preview with duration, season, confidence, and negative-flag guards.
  • Persistence & Backups (vessel-storage): rusqlite (bundled + WAL + FTS5) single-writer actor managing library watch statuses, dual-coordinate watch progress, episode snapshots for automatic next-episode advancement, settings, domain grants, metadata cache, IPTV channels, and .backup.vessel JSON export/import (Merge & Overwrite).
  • IPTV & EPG (vessel-iptv): Xtream Codes & M3U+ playlist ingestion, XMLTV EPG parsing (Now/Next), custom per-profile User-Agent, and instant SQLite FTS5 channel search.
  • Offline Downloader (vessel-downloader): Concurrent HTTP Range multipart chunk downloads + resume, 8-worker parallel HLS segment downloader with AES-128 decryption, master EXT-X-MEDIA audio & subtitle playlist bundling, parallel external subtitle downloads, cooperative instant pause / delete cancellation, drag-and-drop queue priority reordering, and configurable download folder.
  • External mpv Backend (vessel-player-mpv): JSON IPC controller (time-pos, eof, sub-add, sub-delay) for native mpv handoff when mpv is installed.

Desktop (apps/desktop) & Android (apps/android) Applications

  • Nuvio-Inspired Cinema Home: Opaque cargo-ship-to-bow-logo splash reveal, crossfading spotlight hero with smooth Ken Burns zoom, customizable Hero mode (Full / Compact / Hidden) & sources, distinct Watch Now (direct stream resolution) vs More Info actions, drag-and-drop shelf ordering, Smart Continue Watching with manual progress editor, and VOD-only Home isolation (keeping Live TV dedicated to the Live TV screen).
  • Full-Screen CloudStream-Style Player: Auto-hiding HUD, screen lock, one-click Skip Intro / Recap / Credits / Preview, direct Go to Details (automatically omitted for Live TV), in-player Episodes / Channels, live Sources switcher (including cross-plugin linked sources), multi-track Audio, Subtitles & Sync (-500ms / +500ms) with full styling, gestures, external MPV handoff on Desktop, and landscape Media3 ExoPlayer + hardware-accelerated mpvkit (libmpv + libass) with smart Auto MKV/ASS switching on Android & Android TV.
  • Rich Details, Fix Match & Multi-Source Linking: Atmospheric backdrop with muted looping background trailers, external ID badges (TMDB, IMDb, Simkl, AniList, MAL, Kitsu), top-right ⋮ actions menu with 6-provider Fix Match title search and per-media Include Streams From Other Sources (saved per device so streams from another enabled plugin merge into the same Details page), 3 episode view modes, CloudStream-style Source Resolver, and Quick Watch Status / Nuvio-style Android TV Continue Watching modals.
  • 4-Level Offline Downloads Manager: Hierarchical Content → Season → Episode → Streams tree (Content → Streams for movies), expandable rows with stream-label offline playback, dedicated offline Continue Watching rail, drag-and-drop Download Queue reordering, instant Pause/Resume/Delete, and configurable storage directory.
  • Live TV (Live TV Plugins + M3U/Xtream + EPG): Live TV Plugins tab first with unlimited channels/categories, unified Favorites bar pinned at the top upon opening, configurable Live TV layout (Grid, Compact List, Large Tiles, columns, density, logos/category toggles), drag-and-drop plugin & category ordering, and direct-to-player streaming.
  • Customization, Vessel Studio (v0.5.0) & Updater: 12 built-in languages, 5 built-in themes (+ Live Theme Studio, Dynamic Material You on Android, .theme.vessel import, radius/scale/font/glass/adaptive-accent tokens), Vessel Studio with 12-column Bento widget grids, 5 Workspace Profiles (standard, cinema_minimal, arc_station, bento_power, kodi_dashboard), Widget Store supporting sandboxed Plugin Declarative UI DSL (renderModule / onModuleAction), pointer-draggable navbar (Left / Right / Top / Bottom + movable System actions), optional Desktop & Tablet Browser Tabs with 4-pane Split View and draggable background Mini Preview / Music Bar, Shortcuts-style Automation Engine, LAN 180s PIN TV Blueprint Sync, Android TV D-Pad Reorder Mode, per-provider OAuth Setup Guides (Google Drive, Trakt, AniList, Simkl, MAL, Kitsu), built-in GitHub Release auto-updater (.dmg, .exe, .apk with clean window/process exit), and .backup.vessel export/import.

Player Shortcuts & Touchpad Controls

Action Keyboard Touchpad Gesture
Play / Pause Space or K —
Seek -10s / +10s ← / J and → / L Two-finger horizontal swipe
Volume Up / Down ↑ / ↓ Two-finger vertical swipe
Mute / Unmute M —
Fill / Fit Screen — Two-finger pinch (Ctrl + wheel)
Fullscreen F —
Close Drawer / Unlock / Exit Esc —

macOS Tip: Enable Natural Touchpad Scrolling under Settings → Playback & Privacy if horizontal seek or vertical volume feels inverted on your trackpad.


Documentation & Multilingual Wiki

Comprehensive user guides, architecture internals, keyboard shortcuts, and Plugin SDK manuals are available in the GitHub Wiki and mirrored inside docs/wiki/:


Workspace Layout

vessel/
├── crates/
│   ├── vessel-domain       # Core models, VesselError, ports, SkipSegment, ThemeSpec, UiPreferences
│   ├── vessel-storage      # SQLite (WAL + FTS5) actor, watch progress, episode snapshots, backups, secrets
│   ├── vessel-proxy        # Local 127.0.0.1 HTTP/HLS & offline file proxy with HMAC-SHA256 signing
│   ├── vessel-plugin-rt    # QuickJS + oxc TS runtime, SDK bridges, Nuvio shims, SSRF & domain policy
│   ├── vessel-metadata     # AniList / TMDB / Cinemeta / AniZip + TheIntroDB/IntroDB/AniSkip skip segments
│   ├── vessel-iptv         # Xtream Codes, M3U+, XMLTV EPG, FTS5 channel search
│   ├── vessel-downloader   # Range resume & parallel AES-128 HLS offline downloader with instant cancel
│   ├── vessel-player-mpv   # mpv JSON IPC playback backend
│   ├── vessel-engine       # Pure-Rust VesselEngine facade orchestrating all subsystems
│   └── vessel-ffi          # UniFFI library powering Android native Kotlin bindings
├── apps/
│   ├── desktop/            # Tauri v2 + Vue 3 / TypeScript desktop application
│   └── android/            # Kotlin Jetpack Compose + Media3 ExoPlayer Android app
└── docs/
    └── wiki/               # Multilingual GitHub Wiki sources (English-first + 11 languages)

Installation (Prebuilt Releases)

Prebuilt desktop installers for macOS (.dmg for Apple Silicon & Intel), Windows (-setup.exe), Linux (.AppImage, .deb, .rpm, and .flatpak), and Android (.apk) are published on the GitHub Releases page.

Linux Note (.AppImage & .flatpak)

  • AppImage: Make executable with chmod +x Vessel_*.AppImage and launch directly.
  • Flatpak: Install the downloaded bundle locally via flatpak install --user Vessel_*.flatpak and run flatpak run dev.falsis.vessel.
  • Debian / Ubuntu / Fedora: Install .deb via sudo apt install ./Vessel_*.deb or .rpm via sudo dnf install ./Vessel-*.rpm.

macOS Note ("Vessel is damaged and can't be opened")

Because Vessel is an open-source app distributed without a paid Apple Developer ID notarization certificate, macOS Gatekeeper flags downloaded .dmg apps with a quarantine attribute. After dragging Vessel.app into Applications, run this once in Terminal:

xattr -cr /Applications/Vessel.app

Then launch Vessel normally.

Windows Note (SmartScreen)

If Windows SmartScreen shows "Windows protected your PC" on unsigned alpha/beta installers, click More info → Run anyway.


Building from Source

Prerequisites

  • Rust (1.89+, stable toolchain via rustup)
  • Node.js (v20+, tested with v22) & pnpm (v10+)
  • Tauri v2 system dependencies (Xcode Command Line Tools on macOS; WebView2 + MSVC build tools on Windows; WebKitGTK on Linux)
  • Optional: mpv (brew install mpv on macOS) if you want to hand off playback from the built-in player to native external mpv.

Run the Desktop App (Development)

pnpm install
pnpm --filter @vessel/desktop tauri dev

Run Tests & Checks

# Check formatting
cargo fmt --all -- --check

# Run Clippy with strict warnings
cargo clippy --workspace --all-targets -- -D warnings

# Run all Rust workspace tests
cargo test --workspace

# Typecheck and build the Vue frontend
pnpm --filter @vessel/desktop build

Plugin Development (Quick Overview)

Vessel loads Dev Mode plugins directly from a local folder (manifest.json + index.ts) via Extensions → Inspect Source, .plugin.vessel zip packages, gh:owner/repo / gl:owner/repo, HTTP/registry shortcodes (registry.json — e.g. anthology or tr → gh:falsisdev/anthology), vessel://install?src=…, and Nuvio scraper manifests.

A plugin exports an object (default export or vessel.definePlugin(...)):

  • getHomeFeed(cursor?) — returns categorized poster or landscape shelves
  • search(query, filters, page) — returns matching MediaSummary items
  • getDetails(nativeId) — returns MediaDetail, optional seasons, and episodes
  • getSeasonEpisodes(nativeId, seasonId) — optional lazy season loader
  • getStreams(streamId) — returns playable StreamCandidate[], SubtitleTrack[], and optional SkipSegment[]
  • searchSubtitles(query) & resolveSubtitle(subtitleId) — optional SubtitleProvider contract for external subtitle plugins (capabilities: ["subtitles"])

See the full Plugin Development SDK guide (offline copy) for TypeScript types, manifest.json schemas, vessel.* APIs, and packaging instructions.


Roadmap

  1. Unified OAuth & Secure Token Storage: Shared OAuth flows (Desktop loopback, Android deep link, TV Device Code / QR) backed by OsKeyringSecretStore (OS Keychain / Android Keystore) and token refresh handling.
  2. Cloud & Tracker Sync: Incremental SQLite sync with deletion tombstones via Google Drive and bidirectional scrobbling & library sync with Simkl, Trakt, AniList, MyAnimeList, and Kitsu.
  3. Performance & Platform Polish: Dynamic PluginPool memory tuning, cache/TTL caps, Android ABI split apks, and optional Desktop embedded libmpv HUD.
  4. iOS / iPadOS & Long-Term Media: Native SwiftUI + MPVKit shell powered by vessel-ffi .xcframework, plus Torrent / Debrid / Magnet integration and optional Desktop ffmpeg -c copy single-.mp4 export.

License

Vessel is licensed under the GNU General Public License v3.0 (GPL-3.0). See LICENSE for the full license text.

About

Vessel is a local-first, cross-platform streaming and media center currently being written from the ground up in Rust.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages