Self-host Invidious Router
1.2Health-aware load-balancing proxy for Invidious instances
docker run gaincoder/invidious-router- Port
- 8050 (HTTP server that routes requests to healthy Invidious instances)
gaincoder/invidious-routerWhat is Invidious Router?
Written in Go, this router sits between you and the public Invidious frontends, forwarding each web request to whichever instance currently looks healthy. It periodically probes instances (checking status codes, scanning pages for YouTube-block notices, and weighing their success ratio), can keep only the fastest responders, pulls the default instance list from api.invidious.io with optional region filtering, and lets you add your own instances or blacklist unwanted ones. Traffic is spread evenly across what remains, recovered instances rejoin automatically, and an optional fallback to YouTube is off by default. The /router-status and /router-config endpoints let end users see which instances were picked and how the router is configured. Self-hosting is straightforward: grab a release binary or a distro package, or run the Docker image; the app serves HTTP on port 8050 and writes a YAML config (by default ./config/config.yaml) on first launch. It is MIT-licensed; the newest release, 1.2, came out in October 2024.
Invidious Router alternatives
InvidiousOpen-source AGPL front-end for YouTube: watch without ads, tracking or JavaScript, with own subscriptions, playlists and a REST API; runs via Docker and PostgreSQL.CompareInvidious with Invidious Router
GoltyGolty is a self-hosted, open-source tool that automatically downloads YouTube channels and playlists on a schedule, with a simple web dashboard.CompareGolty with Invidious Router
MaterialiousOpen-source, self-hosted material-design frontend for YouTube and Invidious: encrypted subscriptions, SponsorBlock, DeArrow, no ads. Web, desktop & Android TV support.CompareMaterialious with Invidious Router
TraefikTraefik is a self-hosted, open-source reverse proxy that auto-discovers services from Docker, Kubernetes, and other orchestrators to route traffic without manual config.CompareTraefik with Invidious Router
godoxyHigh-performance reverse proxy and container orchestrator for self-hostersComparegodoxy with Invidious Router
hometubeSelf-hosted, open-source video downloader for 1800+ platforms. Strips sponsors via SponsorBlock, organizes files for Plex, Jellyfin, Emby. Single Docker container.Comparehometube with Invidious Router
netgoatNetGoat is an open-source, self-hosted Go reverse proxy and free Cloudflare alternative with domain routing, WAF rules, rate limiting, TLS/ACME and bot challenges.Comparenetgoat with Invidious Router
pipedOpen-source, self-hosted alternative front end for YouTube: no ads or tracking, with subscription feeds, playlists, SponsorBlock and audio-only playback.Comparepiped with Invidious Router
Should you self-host Invidious Router?
Invidious Router scores 50/100 on selfhost.directory (how scoring works) and ranks #2 of 2 in Load Balancer.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is mit-licensed.
Its closest alternative on selfhost.directory is HAProxy (68/100). It scores higher overall, so compare the two before you pick. See Invidious Router vs HAProxy side by side.
Features
- Automatic recovery
- Custom instance list
- Health Checks
- Instance blacklist
- Load Balancing
- Region filtering
- Response time filtering
- Status endpoints
- YAML configuration file
- YouTube fallbackdisabled by default
How to install Invidious Router
Install Invidious Router with Docker
docker run gaincoder/invidious-router
More in Load Balancer
NGINXNGINX is a self-hosted, open-source web server that also functions as a reverse proxy, load balancer, content cache, and mail proxy.
nginx-loveSelf-hosted open-source platform for managing Nginx reverse proxies with ModSecurity WAF, Let's Encrypt SSL, load balancing, JA4 bot detection, and multi-user RBAC.
nginx-proxySelf-hosted Nginx reverse proxy for Docker: this open-source container writes vhost configs from running containers and reloads them, with HTTPS and load balancing.
PgDogSelf-hosted, open-source PostgreSQL proxy written in Rust: transaction-mode connection pooling, read/write load balancing with health checks, and automatic sharding.
production-stackSelf-hosted, open-source Helm stack that scales vLLM across a Kubernetes cluster, with KV-cache-aware request routing and a Prometheus/Grafana monitoring dashboard.
TraefikTraefik is a self-hosted, open-source reverse proxy that auto-discovers services from Docker, Kubernetes, and other orchestrators to route traffic without manual config.
CaddyFast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
docker-flow-proxyDocker Flow Proxy is a self-hosted, open-source reverse proxy built on HAProxy that automatically reconfigures when services are deployed or scaled in Docker Swarm.
FerronOpen-source, self-hosted Rust web server for static sites, PHP and reverse-proxied apps, with automatic TLS, Prometheus/OTLP metrics, and trace IDs in every log line.
HAProxyHAProxy is a free, very fast and reliable reverse-proxy offering high availability, load balancing, and proxying for TCP and HTTP-based applications.
0 comments