Community & Social · Social Networking
PeerTube
A federated, ad-free video platform with browser-based peer-to-peer delivery.
PeerTube is free, AGPL-3.0 software for running federated video-hosting instances. Built with TypeScript and Node.js, it combines ActivityPub federation, WebTorrent peer-to-peer delivery, transcoding, live streaming, plugins, and administrator-controlled governance. It offers an open alternative to centralized services such as YouTube, Dailymotion, and Vimeo. Server operators control their own deployment and operating policies.
Key facts
- License
- AGPL-3.0
- Main language
- TypeScript, JavaScript
- Maintainer
- Framasoft and PeerTube contributors
- First released
- 2018
- Latest release
- v8.3.1, September 28, 2026
- GitHub stars
- 15,367, October 2026
- Hosted option
- Join an existing PeerTube instance or run a self-hosted instance.
What PeerTube is
PeerTube is software for creating a network of independent video-hosting websites rather than one centralized service. Each installation is an instance with its own administrator, users, channels, storage, moderation policies, and domain. Instances can follow one another through ActivityPub, allowing videos and channels from participating servers to appear across the federation. This structure differs from YouTube, Dailymotion, and Vimeo, where the service operator controls the central platform. Users can join an existing instance or operate their own. The model supports community ownership, ad-free publishing, and reduced vendor lock-in, while preserving the practical experience of uploading, discovering, watching, embedding, and discussing videos through a web interface. It also lets organizations select governance rules and hosting arrangements that match their communities.
How it works
PeerTube combines conventional HTTP video delivery with peer-to-peer sharing in the browser. Its WebTorrent tracker helps viewers exchange video segments through WebRTC while the origin server and cache instances continue serving content over HTTP. This can distribute delivery work when several people watch the same video, although the instance still needs suitable storage, bandwidth, and administration. The architecture includes a TypeScript and Express server, PostgreSQL for persistent metadata, Redis for caching and task queues, NGINX as a reverse proxy, FFmpeg for transcoding, and an Angular single-page client. HLS playback can use both HTTP sources and browser peers, while direct Web Video playback remains available according to configuration.
Architecture and recent releases
Federation is if through ActivityPub, enabling PeerTube instances to follow remote instances, accounts, and channels. A local search can display videos from followed servers, and creators can be followed from PeerTube or compatible fediverse software such as Mastodon. PeerTube therefore differs from a standalone video website: the local administrator chooses relationships with other instances, and remote content remains part of a wider network. Administrators can also configure redundancy, allowing selected videos to be mirrored by cache instances. These arrangements can improve availability and distribute bandwidth, but they require clear storage policies and moderation decisions. Federation expands reach without requiring a single company to host every channel or video.
License and pricing
For creators and viewers, PeerTube supports video uploads, descriptions, tags, channels, playlists, comments, RSS feeds, embeds, downloads, subtitles, live streaming, and multiple resolutions through transcoding. These features let people organize content, follow updates, watch through embedded players, save files, and provide accessible subtitles. Instance administrators can manage registration, roles, quotas, moderation, federation, storage, and presentation, shaping both access and day-to-day operation. Plugins and themes allow further customization, while another API-compatible interface can replace the official client. PeerTube does not rely on advertising recommendations or a commercial attention feed. Communities instead determine how their instances operate and connect, making the platform useful for organizations, educators, publishers, associations, and groups seeking control over hosting and governance.
Limitations and how it compares
PeerTube is open source under the GNU Affero General Public License version 3.0 and is maintained by Framasoft with contributions from the wider PeerTube community. The project began as a personal federated video-platform project, reached version 1.0 in October 2018, and continues to receive security, administration, federation, playback, and plugin improvements. The current release information identifies v8.3.1 as the latest release on September 28, 2026. Compared with YouTube, PeerTube provides more hosting control and no centralized recommendation business model, but it does not offer the same single global service. Compared with Vimeo, it emphasizes federation and self-hosting rather than one commercial provider.
Main features
- Federated video hosting. Instances exchange video and channel information through ActivityPub, letting communities publish independently while participating in a broader federated network.
- Peer-to-peer delivery. WebTorrent and WebRTC allow browsers watching the same video to share segments, supplementing HTTP delivery from origin and cache servers.
- Live streaming. Administrators can enable live containers using RTMP input, FFmpeg processing, and HLS playlists served to web browsers.
- Transcoding and playback. FFmpeg creates compatible video and HLS resolutions, supporting different devices, bandwidth conditions, and configured playback modes.
- Customization and administration. Plugins, themes, quotas, roles, moderation settings, federation controls, storage policies, and API access support tailored instances.
Self-hosting PeerTube
Self-hosting PeerTube requires more than installing a single application. The production guide calls for a server, a dedicated peertube user, PostgreSQL with required extensions, Redis, PeerTube dependencies, NGINX, HTTPS, storage, and a process supervisor such as systemd. Administrators configure the public hostname, secrets, database, Redis, email, storage, and webserver settings, then monitor transcoding, bandwidth, disk usage, federation, moderation, backups, and upgrades. NGINX is the officially supported reverse proxy configuration. Video libraries can require substantial storage and delivery capacity, and transcoding consumes compute resources. Remote runners can offload transcoding jobs when enabled. Existing instances provide a simpler hosted path, but self-hosting gives control over branding, membership, policies, federation, and data.
Strengths
- Federation avoids dependence on one central video operator.
- AGPL-3.0 licensing supports inspection, modification, and sharing.
- Browser P2P can supplement origin and cache bandwidth.
- Administrators control moderation, storage, branding, and federation.
Drawbacks
- Self-hosting requires storage, bandwidth, security, and upgrade administration.
- Federated discovery depends on instance relationships and policies.
- Transcoding and live streaming can require substantial server resources.
What teams replace with it
Teams usually evaluate PeerTube when they want to move off YouTube, Dailymotion, Vimeo.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to PeerTube
- YouTube
- Vimeo
- Dailymotion
- MediaGoblin
Frequently asked questions
What is PeerTube?
PeerTube is free software for operating federated video-hosting instances. Each instance is an independent website with its own administrator, users, channels, storage, and policies. Instances can exchange information through ActivityPub, while WebTorrent and WebRTC can help viewers share video segments. PeerTube is therefore a network of connected installations, not a single centralized service like YouTube, Dailymotion, or Vimeo.
Can PeerTube be self-hosted?
Yes. The production installation guide describes running PeerTube on a server with PostgreSQL, Redis, NGINX, HTTPS, storage, and a process supervisor. Administrators configure the hostname, database, secrets, email, and storage, then manage updates, backups, moderation, bandwidth, and transcoding. People who do not want to administer infrastructure can instead join an existing PeerTube instance.
How does PeerTube differ from YouTube?
YouTube is a centralized service operated by one company, while PeerTube is software used by many independently administered instances. PeerTube emphasizes federation, community governance, self-hosting, and ad-free operation, and it can use browser peer-to-peer delivery. YouTube provides one globally recognizable service and centralized discovery, whereas PeerTube distributes responsibility for hosting, moderation, storage, and federation among instance operators.
Does PeerTube support Mastodon?
PeerTube uses ActivityPub, the protocol also used by Mastodon and other fediverse software. This allows compatible accounts and instances to follow PeerTube channels or users and interact with federated content where supported. The relationship is not the same as a shared centralized database. Each PeerTube instance remains independently administered, and federation depends on the connections and moderation policies chosen by administrators.
What technologies does PeerTube use?
PeerTube uses a TypeScript and Node.js server with Express, PostgreSQL for persistent data, Redis for caching and task queues, NGINX as a reverse proxy, WebTorrent for peer-to-peer functions, and FFmpeg for transcoding. Its official web client is an Angular single-page application. ActivityPub handles communication between instances, while HLS and Web Video support browser playback.
Similar projects to compare
- BlueskyMIT for social-app source code, SPDX: MIT; certain artwork, icons, fonts, logos, trademarks, and third-party assets are excluded or separately licensed. The hosted service is operated commercially by Bluesky Social, PBC.Bluesky is a free social application whose client source is licensed under MIT, while some artwork, icons, fonts, and brand assets have separate licensing. It runs on the AT Protocol, with Bluesky Social, PBC operating the hosted application and network services. Users can access it on the web, iOS, and Android, while developers can operate protocol components independently.
- HeyGPL-3.0 (public code frozen at May 15, 2026)Hey is a decentralized social application built on Lens, where users publish, follow, react, repost, quote, join communities, and use Social Payments. The public code is licensed under GPL-3.0, while hey.xyz provides the hosted service and wallet-based onchain interactions can incur gas or GHO fees. Its repository is a historical codebase rather than a statement of current production implementation.
- LemmyAGPL-3.0Lemmy is AGPL-3.0 software for running federated discussion and link-aggregation communities. It targets operators, moderators, and users who want Reddit-style forums connected through ActivityPub. The software is free to download and self-host, while many independent instances provide hosted access funded by donations. Server operators control their own deployment and operating policies.
- LoopsAGPL-3.0Loops is AGPL-3.0 software for federated short-video publishing, discovery, and social interaction. It is aimed at creators, communities, and operators seeking a TikTok-style service connected through ActivityPub. The server is free to self-host, while the Loops team operates loops.video and related platform services without publishing a standard paid hosting price.
- MastodonAGPL-3.0Mastodon is a free, open-source social network server based on ActivityPub. People publish text, links, pictures, and video, while accounts on different servers communicate across the federated Fediverse. Administrators control their own community, moderation, and infrastructure. The project supports self-hosting through documented deployment options and offers paid organisational hosting, moderation, and support by quotation.
- PixelfedAGPL-3.0Pixelfed is an AGPL-3.0 photo and video sharing platform for people who want a federated alternative to Instagram. It is maintained by the Pixelfed community around creator Daniel Supernault, and users can join an existing server or run their own. The software is free; hosted servers are operated independently rather than sold as one central subscription.