Your self hosted YouTube media server
open sourceGPL-3.0-onlyself-hostablefree
Tube Archivist is a self-hosted YouTube media server: it subscribes to channels and playlists, downloads their videos with yt-dlp, indexes the metadata, subtitles and comments in Elasticsearch, and plays the archive back in its own web interface with watched state, playlists and full-text search. Rescans and downloads run on a schedule, with per-channel settings for shorts, streams and page sizes, SponsorBlock segments, Return YouTube Dislike ratings, browser cookies, a PO token provider and Apprise notifications when tasks finish. The Tube Archivist Companion browser extension adds download and subscribe buttons to youtube.com, and separate plugins sync the library's metadata to Jellyfin and Plex. It runs only in Docker, as three containers (the app, Elasticsearch and Redis), needs about 2 to 4 GB of memory, and is GPL-3.0; sponsors can join a paid members site that adds real-time notifications of new uploads.
Ways to install
On your own server
Problems it solves
- keep an offline copy of my favourite YouTube channels in case videos get deleted
- a self-hosted YouTube archive I can browse and search like the real site
- my downloaded YouTube videos are a mess of files and I can't find anything
- search the subtitles and comments of thousands of archived YouTube videos
- automatically download every new video from the channels I subscribe to
- let my kids watch only the YouTube channels I've downloaded, without the recommendations
- watch my archived YouTube videos with ads and sponsor segments skipped
- track which archived YouTube videos I've already watched
- archive a whole YouTube channel, including shorts and livestreams, to my NAS
- keep the original upload date, description and comments with each video I archive
- add a download button to youtube.com that sends the video to my home server
- see my YouTube archive inside Jellyfin or Plex with proper channel and video metadata
- get a notification on my phone when new videos from my channels finish downloading
- notice when videos in my archive were taken down from YouTube
- re-download videos in a better resolution when they become available
- give family members read-only logins to our YouTube archive
- sign in to my YouTube archive with our LDAP directory or Authelia
- build my own integrations on a YouTube archive with a REST API
- self-hosted YouTube media server for preserving channels I care about
- automatically delete YouTube videos I've watched after a few days to save disk space
- a YouTube archiver that scales to 100,000 videos without slowing down
Features
- subscribe to channels and playlists and rescan them for new videos on a schedule
- download queue for single videos, playlists and complete channels, with ignore lists
- downloads with yt-dlp, configurable formats, speed limits and sleep intervals
- indexes video metadata in Elasticsearch, built to scale to 100k+ videos
- full-text search over titles, subtitles and comments, with filters and a query syntax
- built-in player with watched state, keyboard shortcuts and Google Cast
- subtitle download and indexing, including auto-generated subtitles
- comment download and indexing
- per-channel settings for videos, shorts and livestreams
- user-created playlists, and grid, list and table views
View 10 more
- SponsorBlock and Return YouTube Dislike integrations
- browser cookie import and a PO token provider URL for YouTube's bot checks
- metadata refresh that deactivates videos no longer on YouTube
- optional automatic deletion of watched videos after a set time
- Apprise notifications when scheduled tasks finish
- multiple users with read-only accounts, LDAP and forward-auth login
- REST API with token authentication
- Tube Archivist Companion browser extension for Firefox and Chrome
- Jellyfin plugin and Plex scanner and agent
- index snapshots, backup and restore, and import of files already downloaded
Limitations
- Only downloads from YouTube: there are no plans to support other video platforms5
- No custom file naming: videos are stored as <channel-id>/<video-id>.mp4 so paths never change56
- No native installers: Docker is the only supported installation method5
- No audio-only downloads yet: audio download and a podcast mode are on the roadmap6
- Users share one library: every user sees the same videos and channels, with per-user settings and read-only accounts7
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what Tube Archivist does.