• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
tiagovasc

tiagovasc

YoutubeDownloader

Public
Like
YoutubeDownloader
Home
Code
4
backend
3
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
index.ts
https://tiagovasc--e059345a37db11f0a0209e149126039e.web.val.run
README.md

YouTube Video Downloader

A web application for downloading YouTube videos and extracting audio using yt-dlp.

Features

  • Download YouTube videos in highest quality available
  • Extract audio from YouTube videos
  • Clean, responsive web interface
  • Progress tracking for downloads
  • Support for YouTube URLs and video IDs

Project Structure

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ index.ts          # Main Hono server
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ download.ts   # Download API endpoints
β”‚   β”‚   └── static.ts     # Static file serving
β”‚   └── services/
β”‚       └── youtube.ts    # YouTube download service
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html        # Main HTML template
β”‚   β”œβ”€β”€ index.tsx         # React frontend
β”‚   └── components/
β”‚       β”œβ”€β”€ App.tsx       # Main app component
β”‚       └── DownloadForm.tsx # Download form component
└── shared/
    └── types.ts          # Shared TypeScript types

Usage

  1. Enter a YouTube URL or video ID
  2. Choose download type:
    • Video: Downloads the full video in MP4 format
    • Audio: Downloads video and extracts audio in MP3 format
  3. Click download and wait for processing

Technical Notes

  • Uses yt-dlp for video processing
  • Downloads are processed server-side
  • Supports highest quality available (up to 720p for reasonable file sizes)
  • Audio extraction uses MP3 format for compatibility
HTTP
  • index.ts
    tiagovasc--e0…9e.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.