selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

piped logo

Self-host piped

Privacy-first YouTube frontend with feeds and SponsorBlock

ReleaseOpen SourceAGPL-3.0
Updated4 weeks ago
LanguageVue
Setup difficultyModerate
MobilePWA
ThemeDark mode
Stars
10 329
Docker
1337kavin/piped-frontend
Install with Docker Compose
piped screenshot 1piped screenshot 2

What is piped?

Piped is an open-source alternative front end for YouTube, meant for people who want to watch and listen without handing their viewing data to Google. The web app offers trending, subscription feeds, playlists, an account login, no ads or tracking, 4K and audio-only playback, infinite scrolling, embedded video support, locally stored preferences and translations into many languages. Nothing here relies on official YouTube APIs: a Java backend built on NewPipeExtractor and ActiveJ does the extraction, a Rust proxy serves the streams, and instances can federate over Matrix so geo-blocked content can be fetched elsewhere. To run it yourself the documented route is the Piped-Docker compose script, where you answer a few hostname questions and pick Caddy or nginx; the stack needs PostgreSQL and, if the instance is public, an IPv6 rotator or a VPN/proxy sitting between the backend and Google's servers, since datacenter addresses commonly get blocked there. Expect a multi-service deployment rather than a single container: separate frontend, API and proxy hostnames, your own TLS certificates, and a cache layer (varnish/nginx) in front.

Should you self-host piped?

piped scores 70/100 on selfhost.directory (how scoring works) and ranks #2 of 38 in Video Streaming. It has 10 329 GitHub stars, +52 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Vue.

Its closest alternative on selfhost.directory is iSponsorBlockTV (74/100, 7 133 stars). It scores higher overall, so compare the two before you pick. See piped vs iSponsorBlockTV side by side.

Features

  • 4K video playback
  • Ad-free playback
  • Audio-only playback
  • Embedded video support
  • Infinite Scrolling
  • Instance federation over Matrix
  • LBRY-backed streaming
  • Locally stored preferences
  • Multi-language UI
  • Playlists
  • Public JSON API
  • Return YouTube Dislike counts
  • SponsorBlock segment skipping
  • Subscription feeds
  • Tracking-free playback

piped README

Piped

AGPL v3 Matrix Lemmy Registered Users IPFS Build GitHub Repo stars GitHub last commit Translation status

An open-source alternative frontend for YouTube which is efficient by design.

A list of public instances can be found at the documentation here.

The Problem

YouTube has an extremely invasive privacy policy which relies on using user data in unethical ways. You give them a lot of data - ranging from ideas, music taste, content, political opinions, and much more than you think.

How to install piped

Install piped with Docker Compose

Environment variables
BACKEND_HOSTNAME, HTTP_MODE

First, install git, docker, and the compose plugin for docker.

Run git clone https://github.com/TeamPiped/Piped-Docker.

Then, run cd Piped-Docker.

Then, run ./configure-instance.sh and fill in the hostnames when asked. Choose caddy as the reverse proxy when asked.

Now, create A (and AAAA) records to your server's public IP with the hostnames you had filled in above.

Finally, run docker compose up -d and you're done!

Two variants are documented: one using Caddy (TLS handled automatically, ports 80/443) and one where you bring your own reverse proxy in front of 127.0.0.1:8080 and configure TLS yourself.

How to configure piped

  • BACKEND_HOSTNAMEHostname of the backend API the frontend container talks to (set by configure-instance.sh).
  • HTTP_MODEWhether the instance hostnames are reachable over http or https.
  • PORTPort the backend listens on.
  • HTTP_WORKERSNumber of server workers to use.
  • PROXY_PARTBase URL of the stream proxy belonging to this backend.

More in Video Streaming

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…