Open-source YouTube alternative that offers video, audio and image uploads, livestreaming and built-in monetization
NodeTube
NodeTube is an open-source YouTube alt that offers video, audio and image uploads, livestreaming and built-in monetization
A live NodeTube instance is available to interact with at https://newtube.app
You can join the open-source community actively developing NodeTube on Discord, Riot.im and Reddit
You can get an instance up instantly using one-click deployment with Heroku below:
Running On Your Local Computer Required Software
See instructions on installing these prerequisites for both OS X and Linux. There are also Docker instructions if that's your thing.
Once Prerequisites Are Installed
Now that the prerequisites are ready to go it's a few simple commands to get your instance up and running.
# Get the latest version of NodeTube git clone https://github.com/mayeaux/nodetubeEnter the nodetube folder that was just created
cd nodetube
Install Node modules
npm install
Then simply start your app
npm start
If you're developing locally, you can boot the app with nodemon with:
npm run dev
And that's it! Your first user registered will automatically be an admin user and you will be able to see the admin and moderation functionality. Each additional user will be a regular user and will be able to upload video, audio or images up to 500MB.
For ease of local development I recommend using Nodemon to automatically restart the app while working on backend code.
Using ngrok
NodeTube comes with ngrok preinstalled with the setting in .env.settings
to run for new instances automatically. This means that when you boot the app you will see a log come through with a link where you can access the app from the ngrok subdomain. Great you're live on the internet, that was simple!
Technical Details
NodeTube is an Express application powered by NodeJS, with MongoDB as a database, with Redis for caching and ffmpeg
for converting and compressing video content. It uses Pug as a templating engine and loads process variables through the .env.settings
and .env.private
files.
NodeTube uses resumable.js
on the frontend as a library to allow stable and resumable uploads allowing for the upload process to not be broken during a system reboot.
NodeTube has the functionality to act as an authentication app for an nginx-rtmp server which allows NodeTube to facilitate livestreaming. NodeTube also has a built in livestreaming frontend with a live chat, live viewer count and which uses hls.js to stream the files being created by nginx-rtmp
[This section is being expanded rapidly so please Watch this repo so you can easily see when more documentation is available]
Reasons To Use NodeTube Reasons to use NodeTube as an Instance Host:
ngrok
integration.Reasons to use NodeTube as a Free User:
Reasons To Use NodeTube as a Paid User:
Additional Info
You may also be interested in videodownloader, a video downloader that supports 110 websites and is powered by Electron and youtube-dl.
Don't forget to join the open-source community developing NodeTube on Discord, Riot.im and Reddit
Live NodeTube Instances
Domain Registrations Open Ratings Allowed
https://newtube.app Yes SFW Only
https://allwat.ch Yes SFW/NSFW/Sensitive
License
Licensed under the MIT License. © NodeTube Organization
Twice a month we will interview people behind open source businesses. We will talk about how they are building a business on top of open source projects.
We'll never share your email with anyone else.