Invidious — Alternative Privacy-First Frontend for YouTube
Invidious lets you watch YouTube without ads, tracking, or a Google account. It proxies video content and strips all tracking — a self-hostable frontend for YouTube that respects your privacy.
这个资产会安全暂存
这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。
npx -y tokrepo@latest install 30ea4998-381e-11f1-9bc6-00163e2b0d79 --target codex先暂存文件;激活前需要读取暂存 README 和安装计划。
What it is
Invidious is an open-source alternative frontend for YouTube that proxies video content and strips all Google tracking. It runs as a self-hosted web application written in Crystal, serving YouTube videos without ads, without JavaScript requirements, and without Google account dependencies.
Privacy-conscious users, self-hosters, and organizations that want to provide YouTube access without exposing users to Google telemetry use Invidious. Public instances are also available for users who do not want to self-host.
How it saves time or tokens
Invidious eliminates ad watching time and reduces page load times by stripping heavy JavaScript bundles from YouTube. For developers and researchers who scrape or process YouTube content, Invidious provides a cleaner API for accessing video metadata, captions, and comments without dealing with YouTube's obfuscated frontend code.
How to use
- Use a public instance or self-host:
# Self-host with Docker
git clone https://github.com/iv-org/invidious.git
cd invidious
cp docker-compose.yml docker-compose.override.yml
docker compose up -d
- Open
http://localhost:3000in your browser. - Search for videos, subscribe to channels (stored locally), and watch without Google tracking.
Example
# Access Invidious API for video metadata
curl 'http://localhost:3000/api/v1/videos/dQw4w9WgXcQ' | python3 -m json.tool
# Get video captions
curl 'http://localhost:3000/api/v1/captions/dQw4w9WgXcQ'
# Search videos via API
curl 'http://localhost:3000/api/v1/search?q=linux+terminal+tools'
Related on TokRepo
- AI tools for web scraping — Tools for extracting and processing web content
- Self-hosted tools — Applications you can run on your own infrastructure
Common pitfalls
- Public instances frequently go down or get rate-limited by YouTube. For reliable access, self-host your own instance.
- Invidious depends on reverse-engineering YouTube's internal API, which YouTube changes regularly. Keep your instance updated to avoid breakage.
- Some YouTube features (live chat, community posts, premieres) are not supported or have limited functionality in Invidious.
常见问题
Invidious is open-source software that accesses publicly available YouTube content. Its legality depends on your jurisdiction and how you use it. It does not bypass DRM or download protected content by default. Check your local laws regarding alternative frontends.
Yes. Invidious stores subscriptions locally in its database (not through a Google account). You can import and export subscription lists in OPML format. Subscriptions work without logging into Google.
Invidious provides direct video stream URLs that can be used with tools like yt-dlp. The web interface does not have a download button by default, but the API exposes stream URLs for each quality level.
YouTube regularly changes its internal APIs, which can break Invidious functionality. The maintainers typically release fixes within days. Self-hosted instances should pull updates frequently. Using the Docker image with automatic updates reduces downtime.
Invidious is written in Crystal, a compiled language with Ruby-like syntax. The choice of Crystal provides good performance for proxying video content while keeping the codebase readable. PostgreSQL is used for data storage.
引用来源 (3)
- Invidious GitHub— Invidious is an alternative frontend for YouTube
- Invidious README— Written in Crystal with PostgreSQL backend
- Invidious API Docs— Provides REST API for video metadata and captions
讨论
相关资产
Nitter — Privacy-Focused Alternative Frontend for Twitter/X
Nitter is a free and open-source alternative frontend for Twitter (X) that provides a fast, private browsing experience with no JavaScript, ads, or tracking.
Piped — Privacy-Friendly YouTube Frontend
Piped is a self-hosted alternative YouTube frontend that proxies video streams through your server, removing ads and tracking while providing a fast, modern viewing experience.
Plausible Analytics — Privacy-First Google Analytics Alternative
Plausible is an open-source, cookie-free web analytics tool that provides essential traffic insights while respecting visitor privacy. GDPR/CCPA compliant by design.
Dawarich — Self-Hosted Google Timeline Alternative for Location History
An open-source, self-hosted alternative to Google Timeline that stores and visualizes your location history with full privacy, supporting imports from Google Takeout, OwnTracks, and GPX files.