Lifeline: back up your YouTube subscriptions, playlists, and Watch Later into your vault

Disclaimer

Is this plugin open source? Yes (GPL-3.0)
Is this plugin completely free? Yes
Is this plugin vibe-coded beyond the author’s ability to comprehend how it works? No
Community Directory: Link


Hi all! I’d like to share Lifeline, a desktop-only plugin that backs up your YouTube data into plain Markdown notes in your vault.

YouTube accounts can get terminated, playlists get emptied, and videos disappear without warning. Lifeline keeps a local record of what you subscribed to and organized, in plain Markdown you control.

What it writes

  • Channels.md: every channel you subscribe to, as Dataview-queryable inline fields
  • Playlists/*.md: one note per playlist you choose to track
  • Watch Later.md: a note for the playlist you use as your Watch Later substitute (YouTube’s own Watch Later isn’t available through the API)
  • Dashboard.md (opt-in, needs Dataview): A home note with stats, new-since-sync videos, and playlist and channel panels
  • Views in notes (opt-in): poster, chips, and table views above the entries, with search and paging
  • Images (opt-in, Off by default): channel avatars and banners, and video thumbnails, either linked or downloaded once during sync

Good to know

  • Desktop only. It uses your own Google OAuth credentials. The secrets go in the OS keychain through Obsidian’s secret storage, never in your vault.
  • No telemetry and no video downloads. It calls only the YouTube Data API (read-only), plus Google’s image hosts when image settings are on.
  • It syncs at startup if the last sync is older than your interval. It is not a background scheduler.
  • Saved playlists from other channels can’t be listed by the API, so there’s a collector script (or a Web viewer flow) to import their IDs.
  • Version 0.1.1.

Setup takes a few minutes: create a Desktop OAuth client in Google Cloud, paste the client ID and secret into Lifeline’s settings, authenticate, and sync. The README walks through each step.

AI disclosure: Lifeline was created with the help of AI. An AI coding assistant worked alongside me on the code, docs, and design. I direct, review, and test the project, but I want to be upfront about it. Feedback on the code, setup, and anything that looks off is very welcome.

Links

Screenshots



Feedback and bug reports are welcome on GitHub issues.

Lifeline 0.2.0 is out. It is a large feature release, and existing installs migrate automatically. Release notes

New

  • Liked videos and Liked music backups (opt-in). Two toggles under Playlists → Backed-up playlists → System lists write Liked Videos.md and Liked Music.md, using the same fetch path as any playlist. Their frontmatter type keeps them out of the Dashboard counts and feed. Both are off by default, and turning one off leaves the note as a backup.
  • Identify Shorts. Playlist and Watch Later videos can now carry duration and short. The default, Confirm with YouTube, answers anything over 3 minutes from its length with no request, and looks up shorter videos once on the watch page. Answers are cached, at most 50 pages are fetched per sync, and an unclear page is retried later. The first run shows one disclosure notice.
  • Video facts. Bullets now record the upload date, an effective region block, and live/upcoming, all from calls sync already made. Three toggles under Notes → Video bullet fields are on by default, and the views draw Blocked and Upcoming badges plus a Published column and search scope.
  • Removed-video archive. A video that leaves a playlist stays in the note by default, marked removed and removed_on, instead of vanishing. Count only keeps the old output. Each playlist can override the mode, and Purge, Restore, and Clear archive keep the backup counts honest.
  • Rebuilt playlist page. Playlists to track and Get saved playlist IDs are now one Backed-up playlists page, grouped into created, saved, system lists, and not resolved yet. The collector moved into a collapsed section, and refreshing now resolves imported IDs properly.
  • Blur age-restricted videos toggle, so the manual blur list can stand alone.

Changed

  • The video views gain live Shorts (Everything, Hide Shorts, Only Shorts) and Removed (Everything, Hide removed, Only removed) controls. Both also drive the Dashboard feed where relevant, and both apply without a sync.
  • Two more note-view scripts and stylesheets, lifeline-liked.js and lifeline-liked-music.js, each with its own layout row.

Upgrade notes

  • state.json and state_purged.json become a state/ folder, one file per concern. The old files are migrated once and renamed .migrated-<timestamp>.
  • If state/runtime.json exists without state/playlists.json, sync pauses instead of overwriting the backup. Restore the file, or delete runtime.json and reload.
  • An existing vault rewrites its playlist notes once on the next sync to pick up the new video fields. Set Identify Shorts to Off if you do not want duration/short written.
  • Still desktop only, still minAppVersion 1.14.0, no new API scopes.

Feedback and bug reports are welcome on GitHub issues.