Skip to content

Deploying Webtor

Introduction

Webtor is a web-based torrent streaming service that allows you to stream video and audio content from torrents directly in your browser without downloading the entire file first. It converts torrent files or magnet links into streamable content.

The service acts as a torrent-to-HTTP bridge, fetching pieces of the torrent on-demand and serving them as a continuous stream. This enables watching movies or listening to music from torrents as if they were hosted on a traditional streaming server.

Key features of Webtor include:

  • Browser Streaming: Stream torrent content directly in any web browser
  • Magnet Link Support: Paste magnet links to start streaming
  • Video Transcoding: On-the-fly transcoding for compatibility
  • Subtitle Support: Load external subtitles
  • Multiple Formats: Support for various video and audio formats
  • No Download Required: Stream without waiting for full download
  • Resume Playback: Continue where you left off
  • File Browser: Browse files within a torrent
  • API Access: Programmatic access to streaming functionality

This guide walks you through deploying Webtor on Klutch.sh using Docker for torrent streaming.

Prerequisites

Before deploying Webtor on Klutch.sh, ensure you have:

  • A Klutch.sh account
  • A GitHub account with a repository for your configuration
  • Understanding of torrent technology and legal considerations
  • Basic familiarity with Docker concepts

Webtor is a tool for accessing torrent content. Ensure you only use it for:

  • Content you have rights to access
  • Public domain materials
  • Creative Commons licensed content
  • Your own distributed files

Using Webtor to access copyrighted content without authorization is illegal.

Repository Structure

Create a GitHub repository with the following structure:

webtor-deploy/
├── Dockerfile
└── .dockerignore

Dockerfile

Create a Dockerfile in your repository:

FROM webtor/web-ui:latest
# Web interface port
EXPOSE 8080
# The base image handles the entrypoint

Environment Variables

VariableRequiredDefaultDescription
PORTNo8080Web interface port
NODE_ENVNoproductionNode environment

Deployment on Klutch.sh

  1. Push your Dockerfile to your GitHub repository.
  2. Log in to Klutch.sh and create a new project.
  3. Create a new app within your project and connect your GitHub repository containing the Dockerfile.
  4. Configure the deployment settings: - Select **HTTP** as the traffic type - Set the internal port to **8080**
  5. Attach a persistent volume for cache: - Mount path: `/data` - Recommended size: 50 GB (adjust based on usage) - Purpose: Torrent cache and temporary files
  6. Click **Deploy** and wait for the build to complete.
  7. Access your Webtor instance at the provided URL.

Usage

Streaming Content

  1. Navigate to your Webtor URL
  2. Paste a magnet link or upload a torrent file
  3. Select the file you want to stream
  4. Content begins streaming in your browser

Subtitle Support

Webtor supports loading external subtitle files for video content.

Troubleshooting

Streaming Buffering

Torrent streaming depends on peer availability. Popular content streams more smoothly. Allow time for initial buffering.

Content Not Playing

Some formats may require transcoding. Check browser compatibility and codec support.

Additional Resources