Invidious is an alternative front-end to YouTube https://invidious.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

230 lines
9.0 KiB

8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # Invidious
  2. ## Invidious is an alternative front-end to YouTube
  3. - Audio-only mode (and no need to keep window open on mobile)
  4. - [Free software](https://github.com/omarroth/invidious) (AGPLv3 licensed)
  5. - No ads
  6. - No need to create a Google account to save subscriptions
  7. - Lightweight (homepage is ~4 KB compressed)
  8. - Tools for managing subscriptions:
  9. - Only show unseen videos
  10. - Only show latest (or latest unseen) video from each channel
  11. - Delivers notifications from all subscribed channels
  12. - Automatically redirect homepage to feed
  13. - Import subscriptions from YouTube
  14. - Dark mode
  15. - Embed support
  16. - Set default player options (speed, quality, autoplay, loop)
  17. - Does not require JS to play videos
  18. - Support for Reddit comments in place of YT comments
  19. - Import/Export subscriptions, watch history, preferences
  20. - Does not use any of the official YouTube APIs
  21. - Developer [API](https://github.com/omarroth/invidious/wiki/API)
  22. Liberapay: https://liberapay.com/omarroth
  23. Patreon: https://patreon.com/omarroth
  24. BTC: 356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY
  25. BCH: qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk
  26. Onion links:
  27. - kgg2m7yk5aybusll.onion
  28. - axqzx4s6s54s32yentfqojs3x5i7faxza6xo3ehd4bzzsg2ii4fv2iid.onion
  29. [Alternative Invidious instances](https://github.com/omarroth/invidious/wiki/Invidious-Instances)
  30. ## Screenshots
  31. | Player | Preferences | Subscriptions |
  32. | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
  33. | [<img src="screenshots/01_player.png?raw=true" height="140" width="280">](screenshots/01_player.png?raw=true) | [<img src="screenshots/02_preferences.png?raw=true" height="140" width="280">](screenshots/02_preferences.png?raw=true) | [<img src="screenshots/03_subscriptions.png?raw=true" height="140" width="280">](screenshots/03_subscriptions.png?raw=true) |
  34. | [<img src="screenshots/04_description.png?raw=true" height="140" width="280">](screenshots/04_description.png?raw=true) | [<img src="screenshots/05_preferences.png?raw=true" height="140" width="280">](screenshots/05_preferences.png?raw=true) | [<img src="screenshots/06_subscriptions.png?raw=true" height="140" width="280">](screenshots/06_subscriptions.png?raw=true) |
  35. ## Installation
  36. See [Invidious-Updater](https://github.com/tmiland/Invidious-Updater) for a self-contained script that can automatically install and update Invidious.
  37. ### Docker:
  38. #### Build and start cluster:
  39. ```bash
  40. $ docker-compose up
  41. ```
  42. And visit `localhost:3000` in your browser.
  43. #### Rebuild cluster:
  44. ```bash
  45. $ docker-compose build
  46. ```
  47. #### Delete data and rebuild:
  48. ```bash
  49. $ docker volume rm invidious_postgresdata
  50. $ docker-compose build
  51. ```
  52. ### Linux:
  53. #### Install dependencies
  54. ```bash
  55. # Arch Linux
  56. $ sudo pacman -S shards crystal imagemagick librsvg postgresql
  57. # Ubuntu or Debian
  58. # First you have to add the repository to your APT configuration. For easy setup just run in your command line:
  59. $ curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash
  60. # That will add the signing key and the repository configuration. If you prefer to do it manually, execute the following commands:
  61. $ curl -sL "https://keybase.io/crystal/pgp_keys.asc" | sudo apt-key add -
  62. $ echo "deb https://dist.crystal-lang.org/apt crystal main" | sudo tee /etc/apt/sources.list.d/crystal.list
  63. $ sudo apt-get update
  64. $ sudo apt install crystal libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev librsvg2-dev postgresql imagemagick libsqlite3-dev
  65. ```
  66. #### Add invidious user and clone repository
  67. ```bash
  68. $ useradd -m invidious
  69. $ sudo -i -u invidious
  70. $ git clone https://github.com/omarroth/invidious
  71. $ exit
  72. ```
  73. #### Setup PostgresSQL
  74. ```bash
  75. $ sudo systemctl enable postgresql
  76. $ sudo systemctl start postgresql
  77. $ sudo -i -u postgres
  78. $ psql -c "CREATE USER kemal WITH PASSWORD 'kemal';"
  79. $ createdb -O kemal invidious
  80. $ psql invidious < /home/invidious/invidious/config/sql/channels.sql
  81. $ psql invidious < /home/invidious/invidious/config/sql/videos.sql
  82. $ psql invidious < /home/invidious/invidious/config/sql/channel_videos.sql
  83. $ psql invidious < /home/invidious/invidious/config/sql/users.sql
  84. $ psql invidious < /home/invidious/invidious/config/sql/session_ids.sql
  85. $ psql invidious < /home/invidious/invidious/config/sql/nonces.sql
  86. $ exit
  87. ```
  88. #### Setup Invidious
  89. ```bash
  90. $ sudo -i -u invidious
  91. $ cd invidious
  92. $ shards update && shards install
  93. $ crystal build src/invidious.cr --release
  94. # test compiled binary
  95. $ ./invidious # stop with ctrl c
  96. $ exit
  97. ```
  98. #### systemd service
  99. ```bash
  100. $ sudo cp /home/invidious/invidious/invidious.service /etc/systemd/system/invidious.service
  101. $ sudo systemctl enable invidious.service
  102. $ sudo systemctl start invidious.service
  103. ```
  104. ### OSX:
  105. ```bash
  106. # Install dependencies
  107. $ brew update
  108. $ brew install shards crystal-lang postgres imagemagick librsvg
  109. # Clone repository and setup postgres database
  110. $ git clone https://github.com/omarroth/invidious
  111. $ cd invidious
  112. $ brew services start postgresql
  113. $ psql -c "CREATE ROLE kemal WITH LOGIN PASSWORD 'kemal';"
  114. $ createdb invidious -U kemal
  115. $ psql invidious < config/sql/channels.sql
  116. $ psql invidious < config/sql/videos.sql
  117. $ psql invidious < config/sql/channel_videos.sql
  118. $ psql invidious < config/sql/users.sql
  119. $ psql invidious < config/sql/session_ids.sql
  120. $ psql invidious < config/sql/nonces.sql
  121. # Setup Invidious
  122. $ shards update && shards install
  123. $ crystal build src/invidious.cr --release
  124. ```
  125. ## Update Invidious
  126. You can see how to update Invidious [here](https://github.com/omarroth/invidious/wiki/Updating).
  127. ## Usage:
  128. ```bash
  129. $ ./invidious -h
  130. Usage: invidious [arguments]
  131. -b HOST, --bind HOST Host to bind (defaults to 0.0.0.0)
  132. -p PORT, --port PORT Port to listen for connections (defaults to 3000)
  133. -s, --ssl Enables SSL
  134. --ssl-key-file FILE SSL key file
  135. --ssl-cert-file FILE SSL certificate file
  136. -h, --help Shows this help
  137. -t THREADS, --crawl-threads=THREADS
  138. Number of threads for crawling YouTube (default: 0)
  139. -c THREADS, --channel-threads=THREADS
  140. Number of threads for refreshing channels (default: 1)
  141. -f THREADS, --feed-threads=THREADS
  142. Number of threads for refreshing feeds (default: 1)
  143. -v THREADS, --video-threads=THREADS
  144. Number of threads for refreshing videos (default: 0)
  145. -o OUTPUT, --output=OUTPUT Redirect output (default: STDOUT)
  146. ```
  147. Or for development:
  148. ```bash
  149. $ curl -fsSLo- https://raw.githubusercontent.com/samueleaton/sentry/master/install.cr | crystal eval
  150. $ ./sentry
  151. ```
  152. ## Documentation
  153. [Documentation](https://github.com/omarroth/invidious/wiki) can be found in the wiki.
  154. ## Extensions
  155. [Extensions](https://github.com/omarroth/invidious/wiki/Extensions) can be found in the wiki, as well as documentation for integrating it into other projects.
  156. ## Made with Invidious
  157. - [FreeTube](https://github.com/FreeTubeApp/FreeTube): An Open Source YouTube app for privacy.
  158. - [CloudTube](https://github.com/cloudrac3r/cadencegq): Website featuring pastebin, image host, and YouTube player
  159. - [PeerTubeify](https://gitlab.com/Ealhad/peertubeify): On YouTube, displays a link to the same video on PeerTube, if it exists.
  160. - [MusicPiped](https://github.com/deep-gaurav/MusicPiped): A materialistic music player that streams music from YouTube.
  161. ## Contributing
  162. 1. Fork it ( https://github.com/omarroth/invidious/fork )
  163. 2. Create your feature branch (git checkout -b my-new-feature)
  164. 3. Commit your changes (git commit -am 'Add some feature')
  165. 4. Push to the branch (git push origin my-new-feature)
  166. 5. Create a new Pull Request
  167. ## Contact
  168. Feel free to send an email to omarroth@protonmail.com or join our [Matrix Server](https://riot.im/app/#/room/#invidious:matrix.org), or #invidious on Freenode.
  169. You can also view release notes on the [releases](https://github.com/omarroth/invidious/releases) page or in the CHANGELOG.md included in the repository.
  170. ## License
  171. [![GNU AGPLv3 Image](https://www.gnu.org/graphics/agplv3-155x51.png)](http://www.gnu.org/licenses/agpl-3.0.en.html)
  172. Invidious is Free Software: You can use, study share and improve it at your
  173. will. Specifically you can redistribute and/or modify it under the terms of the
  174. [GNU Affero General Public License](https://www.gnu.org/licenses/agpl.html) as
  175. published by the Free Software Foundation, either version 3 of the License, or
  176. (at your option) any later version.