[Skip to content](https://github.com/Aswinajay/stremio-addon#start-of-content)

You signed in with another tab or window. [Reload](https://github.com/Aswinajay/stremio-addon) to refresh your session.You signed out in another tab or window. [Reload](https://github.com/Aswinajay/stremio-addon) to refresh your session.You switched accounts on another tab or window. [Reload](https://github.com/Aswinajay/stremio-addon) to refresh your session.Dismiss alert

{{ message }}

[Aswinajay](https://github.com/Aswinajay)/ **[stremio-addon](https://github.com/Aswinajay/stremio-addon)** Public

- [Notifications](https://github.com/login?return_to=%2FAswinajay%2Fstremio-addon) You must be signed in to change notification settings
- [Fork\\
13](https://github.com/login?return_to=%2FAswinajay%2Fstremio-addon)
- [Star\\
7](https://github.com/login?return_to=%2FAswinajay%2Fstremio-addon)


main

[**2** Branches](https://github.com/Aswinajay/stremio-addon/branches) [**0** Tags](https://github.com/Aswinajay/stremio-addon/tags)

[Go to Branches page](https://github.com/Aswinajay/stremio-addon/branches)[Go to Tags page](https://github.com/Aswinajay/stremio-addon/tags)

Go to file

Code

Open more actions menu

## Folders and files

| Name | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| ## Latest commit<br>[![Aswinajay](https://avatars.githubusercontent.com/u/53073365?v=4&size=40)](https://github.com/Aswinajay)[Aswinajay](https://github.com/Aswinajay/stremio-addon/commits?author=Aswinajay)<br>[chore: bump to v4.0.0, remove engine resource limits, and update depl…](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8)<br>Open commit detailssuccess<br>2 months agoMay 30, 2026<br>[1e2ecd1](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8) · 2 months agoMay 30, 2026<br>## History<br>[126 Commits](https://github.com/Aswinajay/stremio-addon/commits/main/) <br>Open commit details<br>[View commit history for this file.](https://github.com/Aswinajay/stremio-addon/commits/main/) 126 Commits |
| [.vscode](https://github.com/Aswinajay/stremio-addon/tree/main/.vscode ".vscode") | [.vscode](https://github.com/Aswinajay/stremio-addon/tree/main/.vscode ".vscode") | [Mar 1, 2026, 6:32 PM](https://github.com/Aswinajay/stremio-addon/commit/f9e205dc14dbe71482c72e99018a1c5aa8978021 "Mar 1, 2026, 6:32 PM") | 5 months agoMar 1, 2026 |
| [public](https://github.com/Aswinajay/stremio-addon/tree/main/public "public") | [public](https://github.com/Aswinajay/stremio-addon/tree/main/public "public") | [chore: restore logo file for local development](https://github.com/Aswinajay/stremio-addon/commit/150db5d30f94959a450b50dbe373af114b6304e2 "chore: restore logo file for local development") | 5 months agoMar 2, 2026 |
| [.gitignore](https://github.com/Aswinajay/stremio-addon/blob/main/.gitignore ".gitignore") | [.gitignore](https://github.com/Aswinajay/stremio-addon/blob/main/.gitignore ".gitignore") | [Mar 1, 2026, 5:42 PM](https://github.com/Aswinajay/stremio-addon/commit/9f0579260a25561834989aaf5b35a9a1c750cc98 "Mar 1, 2026, 5:42 PM") | 5 months agoMar 1, 2026 |
| [Dockerfile](https://github.com/Aswinajay/stremio-addon/blob/main/Dockerfile "Dockerfile") | [Dockerfile](https://github.com/Aswinajay/stremio-addon/blob/main/Dockerfile "Dockerfile") | [feat: add Dockerfile and instructions for Hugging Face deployment (16…](https://github.com/Aswinajay/stremio-addon/commit/015660b9eb31c44e55e8843db8d38892faf68827 "feat: add Dockerfile and instructions for Hugging Face deployment (16GB RAM tier)") | 5 months agoMar 2, 2026 |
| [README.md](https://github.com/Aswinajay/stremio-addon/blob/main/README.md "README.md") | [README.md](https://github.com/Aswinajay/stremio-addon/blob/main/README.md "README.md") | [chore: bump to v4.0.0, remove engine resource limits, and update depl…](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8 "chore: bump to v4.0.0, remove engine resource limits, and update deployment config") | 2 months agoMay 30, 2026 |
| [addon.js](https://github.com/Aswinajay/stremio-addon/blob/main/addon.js "addon.js") | [addon.js](https://github.com/Aswinajay/stremio-addon/blob/main/addon.js "addon.js") | [chore: bump to v4.0.0, remove engine resource limits, and update depl…](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8 "chore: bump to v4.0.0, remove engine resource limits, and update deployment config") | 2 months agoMay 30, 2026 |
| [package-lock.json](https://github.com/Aswinajay/stremio-addon/blob/main/package-lock.json "package-lock.json") | [package-lock.json](https://github.com/Aswinajay/stremio-addon/blob/main/package-lock.json "package-lock.json") | [Mar 1, 2026, 6:08 PM](https://github.com/Aswinajay/stremio-addon/commit/425530ad0f68a73f31aeb67b31e06bc7204b5b17 "Mar 1, 2026, 6:08 PM") | 5 months agoMar 1, 2026 |
| [package.json](https://github.com/Aswinajay/stremio-addon/blob/main/package.json "package.json") | [package.json](https://github.com/Aswinajay/stremio-addon/blob/main/package.json "package.json") | [chore: bump to v4.0.0, remove engine resource limits, and update depl…](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8 "chore: bump to v4.0.0, remove engine resource limits, and update deployment config") | 2 months agoMay 30, 2026 |
| [render.yaml](https://github.com/Aswinajay/stremio-addon/blob/main/render.yaml "render.yaml") | [render.yaml](https://github.com/Aswinajay/stremio-addon/blob/main/render.yaml "render.yaml") | [chore: bump to v4.0.0, remove engine resource limits, and update depl…](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8 "chore: bump to v4.0.0, remove engine resource limits, and update deployment config") | 2 months agoMay 30, 2026 |
| [server.js](https://github.com/Aswinajay/stremio-addon/blob/main/server.js "server.js") | [server.js](https://github.com/Aswinajay/stremio-addon/blob/main/server.js "server.js") | [chore: bump to v4.0.0, remove engine resource limits, and update depl…](https://github.com/Aswinajay/stremio-addon/commit/1e2ecd1129b864dae62f14ac720e2b2bf65d57b8 "chore: bump to v4.0.0, remove engine resource limits, and update deployment config") | 2 months agoMay 30, 2026 |
| [test.js](https://github.com/Aswinajay/stremio-addon/blob/main/test.js "test.js") | [test.js](https://github.com/Aswinajay/stremio-addon/blob/main/test.js "test.js") | [fix: bypass Torrentio Cloudflare 403 using allorigins proxy](https://github.com/Aswinajay/stremio-addon/commit/695a1c582f82f76fc285479807189f1dc3ccf15e "fix: bypass Torrentio Cloudflare 403 using allorigins proxy") | 5 months agoMar 1, 2026 |
| View all files |

## Repository files navigation

| title | Torrent to weblink |
| emoji | 🎬 |
| colorFrom | purple |
| colorTo | indigo |
| sdk | docker |
| pinned | false |

# 🎬 Torrent to weblink — The Ultimate Stremio Addon

[Permalink: 🎬 Torrent to weblink — The Ultimate Stremio Addon](https://github.com/Aswinajay/stremio-addon#-torrent-to-weblink--the-ultimate-stremio-addon)

[![Status](https://camo.githubusercontent.com/ea8e49f66e3a95ba8e001cc9d7e8b236d2a04805f83469d469f486488a6df8a1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5374617475732d4865616c7468792d627269676874677265656e3f7374796c653d666f722d7468652d6261646765)](https://stremio.eletroclay.com/health)[![Version](https://camo.githubusercontent.com/f63209db54eed0fb9bcba9510e1c163c23cf6f0b73e556a47fa756f31ca34a8f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d342e302e302d626c75653f7374796c653d666f722d7468652d6261646765)](https://github.com/Aswinajay/stremio-addon)[![Platform](https://camo.githubusercontent.com/4331a64154a7fb3fef182125b8823fa444fd4300eafb03a15ece5cdd8f9fb9fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486f73742d52656e6465722e636f6d2d626c61636b3f7374796c653d666f722d7468652d6261646765)](https://render.com/)[![License: MIT](https://camo.githubusercontent.com/be94d48fbb0a54afa49b8339e6f6394b232947ac2129b7272cb3127b5a61eea1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e7374796c653d666f722d7468652d6261646765)](https://opensource.org/licenses/MIT)

**Torrent to weblink** is a high-performance, self-hosted **Stremio addon** specifically engineered for flawless streaming on free-tier cloud platforms like **Render.com, Railway, and Heroku (512MB RAM limits)**.

By utilizing an advanced, predictive RAM controller, this addon streams **4K HDR Movies and TV Series** from **40+ aggregated torrent sources** without ever crashing, buffering, or hitting Memory Limit (OOM) restarts.

* * *

## 🚀 The "Hydra Brain": Advanced Resource Management

[Permalink: 🚀 The "Hydra Brain": Advanced Resource Management](https://github.com/Aswinajay/stremio-addon#-the-hydra-brain-advanced-resource-management)

Most Stremio torrent addons crash on free hosting because torrenting consumes massive amounts of RAM. **Torrent to weblink** introduces the **Hydra Brain**, a specialized controller that guarantees 100% uptime:

### 🧠 Predictive RAM Guard & Tiered Scaling

[Permalink: 🧠 Predictive RAM Guard & Tiered Scaling](https://github.com/Aswinajay/stremio-addon#-predictive-ram-guard--tiered-scaling)

The system continuously monitors your server's RAM usage and **growth velocity (MB/s)**. It predicts memory spikes before they happen and automatically shifts the server into 7 dynamic performance modes:

- ⚡ **HIGH Mode (<100MB RAM)**: 60+ connections per engine for instant, maximum-speed playback.
- ⚖️ **BALANCED / MEDIUM Modes**: Dynamically throttles active peer limits to stabilize memory across multiple users.
- 🚨 **EMERGENCY Mode (>185MB RAM)**: Instantly prunes slow peers down to **1 seeder** per engine, ensuring server survival during heavy loads.

### ⚖️ Weighted Per-Engine Budget

[Permalink: ⚖️ Weighted Per-Engine Budget](https://github.com/Aswinajay/stremio-addon#%EF%B8%8F-weighted-per-engine-budget)

Instead of splitting peers evenly, the addon analyzes active streaming speeds. **Fast, active streams get a much larger share of the peer budget**, while idle or background engines receive minimal resources.

### 🛡️ High-Value Seed Protection

[Permalink: 🛡️ High-Value Seed Protection](https://github.com/Aswinajay/stremio-addon#%EF%B8%8F-high-value-seed-protection)

Even when the server enters EMERGENCY mode, **Torrent to weblink NEVER disconnects fast seeders (>0.2 MB/s)**. It sacrifices slow or dead peers first, maintaining smooth playback over heavy buffering.

### 📡 Smart Peer Recovery

[Permalink: 📡 Smart Peer Recovery](https://github.com/Aswinajay/stremio-addon#-smart-peer-recovery)

When RAM recovers and stabilizes, the addon implements a 30-second cooldown before triggering a **DHT & Tracker Re-announce**, actively inviting new peers to reconnect and restore peak download speeds.

* * *

## 🔥 Unmatched Streaming Features

[Permalink: 🔥 Unmatched Streaming Features](https://github.com/Aswinajay/stremio-addon#-unmatched-streaming-features)

- **🌐 40+ Aggregated Scrapers**: Fetches results in real-time from top-tier sources including **The Pirate Bay (TPB), YTS, Torrentio, Comet, MediaFusion, Nyaa, and Jackettio**.
- **🌊 Smart Scraper Waves**: Scrapers execute in 3 timed waves with automated Garbage Collection (GC) pauses. This prevents the server memory spikes normally caused by bulk API requests.
- **🧬 Advanced Torrent Merging**: If multiple scrapers find the exact same file (matching hash), the addon **fuses them into a single result**, combining source tags and prioritizing the highest seeder count.
- **� No Arbitrary Limits**: Watch as many concurrent movies as you want. There are no artificial "Max 3 Streams" limits—engine capacity is 100% dynamic and based solely on available RAM.
- **🧹 3-Minute Auto-Cleanup**: If you close the Stremio player, the active torrent engine is forcefully terminated 3 minutes later, instantly flushing the RAM cache while allowing enough buffer grace time.

* * *

## 🛠️ How To Deploy Your Own (Free)

[Permalink: 🛠️ How To Deploy Your Own (Free)](https://github.com/Aswinajay/stremio-addon#%EF%B8%8F-how-to-deploy-your-own-free)

Deploying your own private Stremio server takes less than 2 minutes.

### Method 1: Deploy to Render.com (Recommended)

[Permalink: Method 1: Deploy to Render.com (Recommended)](https://github.com/Aswinajay/stremio-addon#method-1-deploy-to-rendercom-recommended)

[![Deploy to Render](https://camo.githubusercontent.com/c3053e93bc9f0a2cd84050a5ff9f07cc5e639621a72e50dce48781f4a38f10e2/68747470733a2f2f72656e6465722e636f6d2f696d616765732f6465706c6f792d746f2d72656e6465722d627574746f6e2e737667)](https://render.com/)

1. Fork or clone this repository to your GitHub account.
2. Sign up at [Render.com](https://render.com/).
3. Click **New** → **Web Service** → Connect your GitHub repository.
4. Settings:
   - **Environment**: Node
   - **Build Command**: `npm install`
   - **Start Command**: `node server.js`
   - **Plan**: Free
5. Click **Deploy Web Service** and wait for it to go live.

### Method 2: Hugging Face Spaces (FREE 16GB RAM! 🚀)

[Permalink: Method 2: Hugging Face Spaces (FREE 16GB RAM! 🚀)](https://github.com/Aswinajay/stremio-addon#method-2-hugging-face-spaces-free-16gb-ram-)

This is currently the best "High RAM" free option. It offers **16GB RAM**, which is 32x more than Render's free tier.

01. **Sign up** at [huggingface.co](https://huggingface.co/).
02. Click **New** → **Space**.
03. Name your Space (e.g., `my-stremio-addon`).
04. **SDK**: Select **Docker** (This is critical).
05. **Template**: Choose **Blank**.
06. **Public/Private**: Public is fine.
07. Once created, click **Files and versions** → **Add file** → **Upload files**.
08. Upload everything in this repository (including the `Dockerfile` I created).
09. Wait 1 minute for it to build.
10. Your Space will provide a direct URL (e.g., `https://username-my-stremio-addon.hf.space`).
11. Add `/manifest.json` to that URL and paste it into Stremio!

### Method 3: Oracle Cloud Free Tier (24GB RAM - The King 👑)

[Permalink: Method 3: Oracle Cloud Free Tier (24GB RAM - The King 👑)](https://github.com/Aswinajay/stremio-addon#method-3-oracle-cloud-free-tier-24gb-ram---the-king-)

If you can get an account, this is the most powerful free server on earth.

1. Create an "Always Free" instance with **Ampere A1 (ARM)**.
2. Allocate **24GB of RAM** and 4 OCPUs.
3. Install Node.js and run the server. It can handle hundreds of 4K streams simultaneously.

### Method 4: Local / VPS Hosting

[Permalink: Method 4: Local / VPS Hosting](https://github.com/Aswinajay/stremio-addon#method-4-local--vps-hosting)

```
git clone https://github.com/Aswinajay/stremio-addon.git
cd stremio-addon
npm install
npm start
# Server will run on http://localhost:10000
```

* * *

## 🔌 Quick Install (Use the Live Server)

[Permalink: 🔌 Quick Install (Use the Live Server)](https://github.com/Aswinajay/stremio-addon#-quick-install-use-the-live-server)

Don't want to deploy your own? You can use my public, maintained instance of **Torrent to weblink** right now:

1. Open Stremio.
2. Go to **Addons** → **Add External Addon**.
3. Paste: `https://stremio.eletroclay.com/manifest.json`
4. Click **Install**.

* * *

## 🔌 How to Install Your Own Deploy

[Permalink: 🔌 How to Install Your Own Deploy](https://github.com/Aswinajay/stremio-addon#-how-to-install-your-own-deploy)

1. Copy your deployed server URL (e.g., `https://stremio.eletroclay.com`).
2. Open the **Stremio App**.
3. Go to the **Addons** section.
4. Click on the search bar / **Add external addon**.
5. Paste your URL, ensure it ends with `/manifest.json` (e.g., `https://stremio.eletroclay.com/manifest.json`).
6. Click **Install**. You are ready to stream!

* * *

## 📊 Real-Time Server Monitoring

[Permalink: 📊 Real-Time Server Monitoring](https://github.com/Aswinajay/stremio-addon#-real-time-server-monitoring)

**Torrent to weblink** comes with built-in endpoints so you can monitor your server's health and the Hydra Brain's decisions:

- **Graphical Dashboard**: Navigate to `/dashboard` on your deployed URL to see a live visual feed of Active Engines, Download Speeds, RAM fluctuations, and Dynamic Modes.
- **Health JSON API**: Navigate to `/health` to output raw server metrics, uptime, and peer allocations.

* * *

## ☕ Support the Development

[Permalink: ☕ Support the Development](https://github.com/Aswinajay/stremio-addon#-support-the-development)

Building and maintaining high-performance bypasses for free-tier constraints takes a lot of time and coffee. If this addon improved your streaming experience and saved you money on Debrid services, please consider supporting the developer!

[![Buy Me A Coffee](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/withaswin)

* * *

## 📜 License

[Permalink: 📜 License](https://github.com/Aswinajay/stremio-addon#-license)

This project is open-source software licensed under the **MIT License**. See the [LICENSE](https://github.com/Aswinajay/stremio-addon/blob/main/LICENSE) file for more details.

## About

4K torrent‑to‑stream Stremio addon with smart RAM control for free tiers


[stremio.eletroclay.com/](https://stremio.eletroclay.com/ "https://stremio.eletroclay.com/")

### Topics

[nodejs](https://github.com/topics/nodejs "Topic: nodejs") [heroku](https://github.com/topics/heroku "Topic: heroku") [torrent](https://github.com/topics/torrent "Topic: torrent") [streaming](https://github.com/topics/streaming "Topic: streaming") [render](https://github.com/topics/render "Topic: render") [webtorrent](https://github.com/topics/webtorrent "Topic: webtorrent") [railway](https://github.com/topics/railway "Topic: railway") [hdr](https://github.com/topics/hdr "Topic: hdr") [stremio](https://github.com/topics/stremio "Topic: stremio") [ram-optimization](https://github.com/topics/ram-optimization "Topic: ram-optimization") [stremio-addon](https://github.com/topics/stremio-addon "Topic: stremio-addon") [free-tier](https://github.com/topics/free-tier "Topic: free-tier")

### Resources

[Readme](https://github.com/Aswinajay/stremio-addon#readme-ov-file)

### Uh oh!

There was an error while loading. [Please reload this page](https://github.com/Aswinajay/stremio-addon).

[Activity](https://github.com/Aswinajay/stremio-addon/activity)

### Stars

[**7**\\
stars](https://github.com/Aswinajay/stremio-addon/stargazers)

### Watchers

[**0**\\
watching](https://github.com/Aswinajay/stremio-addon/watchers)

### Forks

[**13**\\
forks](https://github.com/Aswinajay/stremio-addon/forks)

[Report repository](https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FAswinajay%2Fstremio-addon&report=Aswinajay+%28user%29)

## [Releases](https://github.com/Aswinajay/stremio-addon/releases)

No releases published

## [Packages\  0](https://github.com/users/Aswinajay/packages?repo_name=stremio-addon)

No packages published

## [Contributors\  1](https://github.com/Aswinajay/stremio-addon/graphs/contributors)

- [![@Aswinajay](https://avatars.githubusercontent.com/u/53073365?s=64&v=4)](https://github.com/Aswinajay)[**Aswinajay** aswin ajay](https://github.com/Aswinajay)

## Languages

- [JavaScript98.9%](https://github.com/Aswinajay/stremio-addon/search?l=javascript)
- [Dockerfile1.1%](https://github.com/Aswinajay/stremio-addon/search?l=dockerfile)

You can’t perform that action at this time.