6 Federated (ActivityPub) video streaming platform using P2P (BitTorrent)
7 directly in the web browser with <a href="https://github.com/feross/webtorrent">WebTorrent</a>.
10 **PeerTube is sponsored by [Framasoft](https://framatube.org/#en), a non-profit
11 that promotes, spreads and develops free culture in general, and free-libre
12 software in particular. If you want to support this project, please [consider
13 donating to them](https://soutenir.framasoft.org/en/).**
16 <strong>Client</strong>
20 <a href="https://david-dm.org/Chocobozzz/PeerTube?path=client">
21 <img src="https://david-dm.org/Chocobozzz/PeerTube.svg?path=client" alt="Dependency Status" />
24 <a href="https://david-dm.org/Chocobozzz/PeerTube?path=client&type=dev">
25 <img src="https://david-dm.org/Chocobozzz/PeerTube/dev-status.svg?path=client" alt="devDependency Status" />
30 <strong>Server</strong>
34 <a href="https://travis-ci.org/Chocobozzz/PeerTube">
35 <img src="https://travis-ci.org/Chocobozzz/PeerTube.svg?branch=develop" alt="Build Status" />
38 <a href="https://david-dm.org/Chocobozzz/PeerTube">
39 <img src="https://david-dm.org/Chocobozzz/PeerTube.svg" alt="Dependencies Status" />
42 <a href="https://david-dm.org/Chocobozzz/PeerTube?type=dev">
43 <img src="https://david-dm.org/Chocobozzz/PeerTube/dev-status.svg" alt="devDependency Status" />
46 <a href="http://standardjs.com/">
47 <img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg" alt="JavaScript Style Guide" />
50 <a href="https://kiwiirc.com/client/irc.freenode.net/#peertube">
51 <img src="https://img.shields.io/badge/%23peertube-on%20freenode-brightgreen.svg" alt="PeerTube Freenode IRC" />
58 <a href="https://peertube.cpy.re">
59 <img src="https://lutim.cpy.re/mRdBAdeD.png" alt="screenshot" />
65 Want to see it in action?
67 * Demonstration servers:
68 * [peertube.cpy.re](http://peertube.cpy.re)
69 * [peertube2.cpy.re](http://peertube2.cpy.re)
70 * [peertube3.cpy.re](http://peertube3.cpy.re)
71 * [Video](https://peertube.cpy.re/videos/watch/f78a97f8-a142-4ce1-a5bd-154bf9386504)
72 to see what the "decentralization feature" looks like
76 We can't build a FOSS video streaming alternatives to YouTube, Dailymotion,
77 Vimeo... with a centralized software. One organization alone may not have
78 enough money to pay for bandwidth and video storage of its servers.
80 So we need to have a decentralized network of servers seeding videos (as
81 [Diaspora](https://github.com/diaspora/diaspora) for example). But it's not
82 enough because one video could become famous and overload the server. It's the
83 reason why we need to use a P2P protocol to limit the server load. Thanks to
84 [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (thus
85 BitTorrent) inside the web browser, as of today.
89 - [X] Angular frontend
90 - [X] Join the fediverse
91 - [X] Follow other instances
92 - [X] Unfollow an instance
93 - [X] Get for the followers/following list
96 - [X] Send the meta data with ActivityPub to followers
97 - [X] Remove the video
99 - [X] View the video in an HTML5 player with WebTorrent
104 - [X] Federated videos view counter
105 - [X] Federated videos likes/dislikes
106 - [X] Transcoding to different definitions
107 - [X] Download file/torrent
108 - [X] User video bytes quota
109 - [X] User video channels
110 - [X] NSFW warnings/settings
111 - [X] Video description in markdown
112 - [X] User roles (administrator, moderator)
113 - [X] User registration
114 - [X] Video privacy settings (public, unlisted or private)
115 - [X] Signaling a video to the admin origin PeerTube instance
116 - [X] Federated videos comments
117 - [ ] Video imports (URL, Torrent, YouTube...)
118 - [ ] Advanced search
121 - [ ] User subscriptions (by tags, author...)
122 - [ ] Add "DDOS" security
125 ## Front compatibility
141 See the [production guide](support/doc/production.md).
145 See the [contributing
146 guide](/.github/CONTRIBUTING.md)
147 to see how to contribute to PeerTube. Spoiler alert: you don't need to be a
152 See [ARCHITECTURE.md](/ARCHITECTURE.md) for a more detailed explanation.
156 * The backend is a REST API.
157 * Servers communicate with each others with [Activity
158 Pub](https://www.w3.org/TR/activitypub/).
159 * Each server has its own users who query it (search videos, query where the
160 torrent URI of this specific video is...).
161 * If a user uploads a video, the server seeds it and sends its followers some
162 metadata (name, short description, torrent URI...).
163 * A server is a tracker responsible for all the videos uploaded in it.
164 * Even if nobody watches a video, it is seeded by the server (through
165 [WebSeed protocol](http://www.bittorrent.org/beps/bep_0019.html)) where the
168 Here are some simple schemes:
172 <img src="https://lutim.cpy.re/6Qut3ure.png" alt="Decentralized" />
174 <img src="https://lutim.cpy.re/NvRAcv6U.png" alt="Watch a video" />
176 <img src="https://lutim.cpy.re/pqKm3Q5S.png" alt="Watch a P2P video" />