This is a simple YouTube downloader. It can download videos only from YouTube.
You can only download videos that are smaller than 6 MB. That's because of the Vercel's serverless functions limit. If you want to download bigger videos, you can follow the instructions below to host the project on your own server or computer or use my python YouTube downloader here.
- Copy the link of the video you want to download from the address bar of your browser or else it won't work.
- Paste the link in the input field.
- Click on the download button.
- Wait for the download to finish, don't paste another link until the download is finished.
- When the download is finished, you can either download the video or the audio file.
- Clone the repository.
- Run the command
npm install
in the root directory. - Run the command
npm run dev
to start the development server. - Open
localhost:3000
in your browser. - You can use it like the online version, the only difference is that you can download bigger videos.
The project is built using Express.js and vanilla JavaScript.
It works bi utilizing the ytdl-core package, using which it downloads the video and audio files from YouTube.
It then saves the downloaded to cache using the blob
object and then creates a download link for the user to download the file.
No license. Feel free to use it however you want, just don't claim it as your own.