Create a proxy for youtube, becouse the youtube return erro 153 in ios apps, like Ionic and react.
282
A simple YouTube proxy streaming application built with TypeScript and Express. This service allows you to embed YouTube videos through a proxy endpoint, supporting both video IDs and full YouTube URLs.

youtube.com and youtu.be URL formatsgit clone https://github.com/starleyDev/youtube-proxy.git
cd youtube-proxy
npm install
Run the application with hot-reload enabled:
npm run dev
Build and run the application:
npm start
The server will start on http://localhost:3000
docker-compose up -d
docker build -t youtube-proxy .
docker run -p 3000:3000 youtube-proxy
docker run -d -p 3000:3000 --name youtube-proxy-server youtube-proxy
docker logs youtube-proxy-server
docker stop youtube-proxy-server
docker-compose up -d
http://<your-casa-os-ip>:3000docker-compose.yml content/Returns a welcome page with usage instructions and examples.
Response: Returns a modern HTML landing page with gradient background and usage instructions.
/yt-proxyProxy endpoint for embedding YouTube videos using query parameters.
Query Parameters:
urlOrVideoId (required): Either a YouTube video ID or full YouTube URLSupported Input Formats:
dQw4w9WgXcQhttps://www.youtube.com/watch?v=dQw4w9WgXcQhttps://youtu.be/dQw4w9WgXcQResponse: Returns an HTML page with an embedded YouTube video iframe with transparent background.
Examples:
# Using video ID
curl http://localhost:2536/yt-proxy?urlOrVideoId=dQw4w9WgXcQ
# Using full YouTube URL
curl http://localhost:2536/yt-proxy?urlOrVideoId=https://www.youtube.com/watch?v=dQw4w9WgXcQ
# Using short URL
curl http://localhost:2536/yt-proxy?urlOrVideoId=https://youtu.be/dQw4w9WgXcQ
Note: The service automatically extracts the video ID from full YouTube URLs.
youtube-proxy/
├── src/
│ └── index.ts # Main application entry point
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
npm start - Run the compiled JavaScript versionnpm run dev - Run with TypeScript and hot-reload using nodemonStarley Cazorla
This project is licensed under the MIT License - see the LICENSE file for details.
Content type
Image
Digest
sha256:62dd3af81…
Size
59.3 MB
Last updated
4 months ago
docker pull starleydev/youtube-proxy