Skip to content

Offline & installed app

Horde can be installed to your phone's home screen and used without a connection: the app loads instantly from a local copy, and videos you Download are stored inside Horde on that device, the same way the YouTube app's downloads work.

Requires HTTPS

These features only work when Horde is opened at an https:// address (or on localhost). Over plain http://192.168.x.x:8686 Horde works normally, but downloads fall back to saving files and the app isn't cached. See Setting up HTTPS below.

Install the app

  • iPhone / iPad (Safari): Share → Add to Home Screen.
  • Android (Chrome): menu → Install app (or Add to Home screen).
  • Desktop Chrome / Edge: the install icon in the address bar.

On Android, the installed app also appears in the share sheet, so you can share a video link straight to Horde's Download page; see Sending links to Horde.

The installed app behaves more like a native app than a browser tab:

  • On a phone, a floating bar at the bottom of the screen holds Home, Search, Download and Ask. Tap the current tab to jump back to the top. Choose the tabs and their order in Settings → Appearance → Tab bar; everything else is still in the menu at the top right.
  • On iPhone and iPad, swipe right from the left edge of the screen to go back, since apps added to the Home Screen have no back button.
  • On a phone or tablet, pull a page down from its top to refresh it: a refresh mark drops in under the top bar and lights up once letting go will reload. On Recommended the pull reshuffles the feed, like Refresh.
  • Otherwise the page doesn't bounce past its ends, pinching doesn't zoom the whole interface (use Settings → Appearance → Text size for larger text), and long-pressing a thumbnail or the menu doesn't select text or open a preview.

A browser tab keeps the browser's usual behaviour, and so does the installed desktop app apart from its own window.

After the first visit, the UI (scripts, styles, icons) is cached by a service worker. Later launches don't re-download it, even on a slow connection; new versions are fetched in the background but never swapped in under you: an Update available notice with a Reload button appears, and the new version starts when you press it (or the next time every Horde tab has been closed). Tabs that were open before an update keep working until reloaded, because the previous version's files are kept for one release. If you are coming from a release older than this one, fully close the app (all tabs) once: the old service worker has no update prompt.

Downloading videos

Where How
Watch page (phone) The Download button next to Add to playlist
Watch page (desktop) ••• → Download for offline
Library select mode Select videos → Download
Download page Destination Save to this device — Horde fetches the URL with yt-dlp, then the app saves it offline (not added to the library)

Horde saves the file this device can actually play: the original when the device decodes it smoothly, otherwise the ≤1080p H.264 copy. If neither exists yet (an AV1 video on a device without AV1 decode), Horde starts creating the copy and asks you to save it again once it finishes. See Playback compatibility.

Downloads run one at a time in the background while Horde is open. Video data is fetched in 4 MB pieces, so a dropped connection resumes where it stopped instead of starting over. Thumbnails, subtitles, chapters and SponsorBlock segments are saved with the video. Scrub-preview sprites are not.

Manage everything on the Offline page (/offline, shown in the nav once you have downloads; on phones also the download icon in the header): progress, pause / resume, retry, remove, and how much storage is used.

The old behaviour — saving the raw file to the device's Downloads folder — is still available as ••• → Save file to device, Save files in library select mode, and Save file on device download job cards.

Storage full

If the device runs out of space during a download, Horde removes the partial download, marks it as failed and shows how much storage is free. Remove other offline videos and retry.

Storage

Horde asks the browser to keep downloads persistent, but the OS may still reclaim space when the device is very low on storage. iOS keeps far more for apps added to the Home Screen than for Safari tabs, so install the app if you plan to download a lot.

Sharing downloads between accounts

Videos you save for offline viewing are stored in the browser, so everyone who uses the same device could see them. Each account decides whether they do:

  • Share downloads (the default). Anyone who signs in on the device sees your saved videos, labelled Saved by , and can watch or remove them. This is how it worked before accounts could choose.
  • Private. Other accounts do not see your saved videos. Instead, the Offline page tells them how many there are ("3 videos saved by jon on this device are private. Switch to jon to watch them.") with a Switch account button that signs out and opens the sign-in page with the name filled in. Only you can remove a private download.

Set it under Account settings → Downloads on shared devices (turning sharing off asks for your password). Administrators choose it when they add a user or edit one. The first administrator starts with sharing on and can change it there afterwards.

The setting travels with the account, but each device has to know it while there is no connection, so a device remembers which accounts have signed in on it and whether each shares. A change takes effect on a device the next time that account is seen by the server there (when it signs in or the app refreshes its session).

Nobody is locked out: unlocking offline

Say you saved videos on your phone, your kid signs in to his own account, and then you go camping with no signal. Open the Offline page: it says your videos are private and offers Unlock. Enter your password and the app acts as you on this device until the connection returns, so you can watch your downloads and your watch positions stay yours. The account menu shows (offline) meanwhile. When Horde can reach the server again, whoever the server says is signed in takes over again, and the positions you saved offline wait for your next sign-in (as they do for any account).

To make this work with no server, a device keeps a check value of your password (PBKDF2-SHA256, 600 000 iterations with a random salt) while you keep your downloads private. The password itself is never stored and the check value never leaves the device. Because it is a derivative of your password that could be attacked offline, a device holds one only while it holds downloads saved by your account:

  • It is stored in that browser's IndexedDB (database horde-offline, store deviceAccounts), next to your name and whether you share. Nothing else of it is anywhere, and the server never sees it.
  • The first time a private account saves a download on a device, Horde asks once: "So you can open your private downloads offline, confirm your password." The server checks the password (the same throttle as changing it), then the device stores the check value. If you choose Not now, the download is still saved and the Offline page shows a note with Set up offline unlock; without it you cannot unlock your account on that device.
  • Signing in on a device that already holds your downloads refreshes it, and so does changing your password in Account settings there. Signing in on a device without your downloads stores nothing.
  • It is kept when you sign out (that is the camping case above), and deleted when the last download of yours is removed from the device, or when you turn sharing back on.
  • If your password changes elsewhere, sign in again on each device with the new one. Unlock appears only for accounts the device has such a value for, so on a device where you have not set it up, switch to your account while online.

Privacy between household accounts, not encryption

Private downloads are hidden in the app; the files are not encrypted. Someone with full access to the browser profile (the device's own user, or developer tools) can still read them, and the saved check value could be attacked offline with a weak password. It keeps kids and housemates out of each other's list, not a determined attacker out of a shared profile. Use a separate browser profile for real separation.

If the same video is already saved on the device by an account that keeps its downloads private, you can't save another copy of it: a device holds one copy per video. Ask them to share, or remove it.

Downloads you queue from the Download page with the destination Offline (this device) follow the same rule on the server: while you keep your downloads private, other accounts cannot fetch your job, see it or its progress, edit, retry, cancel, change its quality or dismiss it (404 on every route), and adding the same link yourself makes a separate job instead of reporting that it is already queued. Administrators still can see them all.

Connection status

A tag next to the HORDE logo shows the connection state. It is hidden while everything is fine.

Tag Meaning
Connecting… Starting up or reconnecting. After 5 seconds a Go offline button appears. After 15 seconds without an answer Horde switches to offline mode by itself.
Slow connection · Go offline The server answers, but slowly (pings over 2.5 s). Horde checks again whenever app requests are slow.
Offline Offline mode. Tap it to try reconnecting now.

In offline mode:

  • Home shows only downloaded videos, and they play from local storage.
  • Playlists, History, Download and Import are greyed out.
  • Videos other accounts keep private are not listed; the Offline page says how many there are and offers Unlock (see above).
  • Downloaded videos resume where you left off, not where someone else using the device did: each account has its own place in a saved video. Opened while online, a saved video resumes from your latest position on any device (or from a newer one this device has not sent yet).
  • Watch progress is saved locally and synced to the server when you're back, to the account that was signed in while you watched. It is sent with the time you watched, so it never rewinds a video you have since watched further on another device. If someone else signs in on the device first, your positions wait for you (for up to 30 days) instead of landing in their history. If the signed-in account changes while positions are syncing (another tab signs in), the sync stops and carries on for the new account. A position the server refuses for good (the video was deleted) is dropped; one that hits a server error stays queued and is retried next time.

If Horde went offline by itself (server unreachable), it keeps checking in the background with a tiny /api/ping request (backing off from 3 s to once a minute, paused while the app is hidden) and returns to normal automatically. If you chose Go offline, it stays offline until you tap the tag.

Downloaded videos always play from local storage, even when online, which saves bandwidth on a slow or metered connection.

Setting up HTTPS

Why it's needed

Offline features are built on a browser feature called a service worker: a small script the browser keeps on your device that can answer the app's requests itself, from local storage, when the server is slow or unreachable. Because a service worker can intercept everything a site loads, browsers only allow one on secure (https://) addresses, so a network attacker can't install a malicious one. Offline video storage has the same rule.

http://localhost counts as secure, which is why it works on the machine running Horde. A LAN address like http://192.168.1.20:8686 or a plain Tailscale IP does not. The certificate must also be valid and trusted: a self-signed certificate the browser warns about isn't enough.

Horde itself doesn't need any changes. Put something that speaks HTTPS in front of it.

Option 1: Tailscale HTTPS (easiest, private)

If you already reach Horde over Tailscale, Tailscale can give it a real certificate on your private tailnet:

  1. In the Tailscale admin console, open DNS, make sure MagicDNS is on, and click Enable HTTPS (under HTTPS Certificates).
  2. On the machine running Tailscale that can reach Horde (usually the Docker / TrueNAS host), run:

    tailscale serve --bg 8686
    

    If Tailscale runs somewhere else on your LAN, point it at Horde's address instead: tailscale serve --bg http://192.168.1.20:8686.

  3. Open the https://<machine-name>.<tailnet-name>.ts.net URL that the command prints. The first load can take a few seconds while the certificate is issued.

  4. Install the app from that https URL (see Install the app). An app installed from the old http:// address won't get offline features, so remove it and re-add it from the https URL.

This stays private to your tailnet: nothing is exposed to the internet.

TrueNAS Tailscale app

If Tailscale runs as a TrueNAS app (in a container), run tailscale serve inside that app's shell, using Horde's LAN address as in step 2.

Option 2: Reverse proxy with a certificate

Any reverse proxy with a trusted certificate works, for example Caddy, Nginx Proxy Manager or Traefik. Horde has its own sign-in, but if the hostname is reachable from the internet, follow the internet exposure checklist.

Check that it worked

Open Horde at the https address. The amber "offline videos & the installable app are off" notice on Home should be gone, and a video's Download button should start a download instead of explaining HTTPS.