HUB
Sign inSign up

bhooshanb/ytdlp-webapp

By bhooshanb

•Updated 3 months ago

Standalone YT-DLP docker webapp to download videos.

Image
0

76

bhooshanb/ytdlp-webapp repository overview

⁠Local yt-dlp Downloader (Docker)

A self-contained web frontend for yt-dlp⁠. The container bundles Node.js (Express), the yt-dlp CLI, and FFmpeg, so it runs standalone — no local yt-dlp/FFmpeg install is required.

⁠Features

  • Tailwind CSS UI with a light / dark mode toggle (persisted per browser).
  • Paste a video URL — the output filename is suggested from the video title fetched from yt-dlp. Specify a name to override, or leave it to use the title.
  • The file extension is added automatically by yt-dlp.
  • Optional Audio only (-x) and Best quality (bestvideo+bestaudio) modes.
  • Optional cookies file for region/age-restricted videos.
  • Live progress via Server-Sent Events inside the browser.
  • Download history below the form lists every current and previous download (name, source URL, status) with a Save button per file.
  • When a download finishes, the browser opens a Save As dialog so you can choose where to store the file.

⁠Run with Docker

# Build the image (first build downloads yt-dlp + FFmpeg, so it takes a bit)
docker build -t ytdlp-downloader .

# Run it, mounting a local ./downloads folder so files persist
docker run -p 3456:3456 --volume $(pwd)/downloads:/usr/src/app/downloads ytdlp-downloader

Then open http://localhost:3456⁠.

The downloads volume maps to the host folder ./downloads so downloaded files (and the download history) are written where you can reach them. Omit the --volume mount if you only need ephemeral downloads.

⁠npm shortcut

npm run docker

(equivalent to the build + run commands above)

⁠Rebuilding the Tailwind stylesheet

public/tailwind.css is a prebuilt Tailwind v4 stylesheet. If you change classes in public/, regenerate it (Tailwind is a dev dependency):

npm install   # once, to fetch dev deps
npm run build:css

⁠Environment note

  • PORT defaults to 3456 and is read from process.env.PORT by server.js.

⁠How it works in the container

  1. node:22-alpine base image provides the Node.js runtime.
  2. Alpine packages python3, py3-pip, deno, and ffmpeg are installed (deno is the JavaScript runtime modern yt-dlp needs for YouTube extraction).
  3. python3 -m pip install yt-dlp provides the yt-dlp command.
  4. npm install installs Express.
  5. server.js starts an HTTP server and spawns yt-dlp on each request.

⁠Running locally (without Docker)

npm install
# ensure yt-dlp and ffmpeg are on PATH
npm start

Tag summary

Content type

Image

Digest

sha256:ee733e07a…

Size

173.1 MB

Last updated

3 months ago

docker pull bhooshanb/ytdlp-webapp