npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

torhero

v1.2.62

Published

Mobile and WebUI minimalist seedbox server based on webtorrent

Downloads

12

Readme

TorHero Logo TorHero

Mobile-first and WebUI minimalist seedbox server to download torrent (magnets only). Based on ❤ webtorrent. (no other BitTorrent client required)

| Download Magnet | Add Folder | | --- | --- | | Download Magnet | Add Folder |

Install

npm install -g torhero

Start the server

torhero

By default, the port is 8000. You can change that with

torhero -p 1234

You can keep the server running by using PM2

# Stop your torhero server first (Ctrl+C)
npm install pm2 -g
pm2 start torhero

WebUI - First use

  1. Add a folder

    1. Click on this button Add Folder Icon
    2. Choose a Name and set the complete root path to the folder
    # Examples
    C:/Users/pi/torrents # For Windows
    /home/pi/torrents # For Linux

    Folder Dialog

  2. Start download

    1. Copy a magnet link into the field
    2. Click on the download button on the left

Other features

Password protection

You can use a rudimentary password protection. To encrypt your password use any bcrypt encryption tool online. Then, to access to the server, the url is http://torhero_url/?pwd=mypassword

torhero -auth 'bcrypt-encrypted-password'
#For example
torhero -auth '$2a$12$rdJX3qYiA6L9epeoZ8K6SundSiC8wCjP45nahMsPWj6YcyHDt8S2m' #Password here is "abcdef"
#http://localhost:8000/?pwd=abcdef

Stop download

You can remove the torrent during it's downloading.

Important: It will NOT remove the files

Provide a folder configuration file

You can provide a json file containing folders' names and path by using this command. By default, a folders.json file is created inside the script folder.

torhero -folders path/to/folders.json

For example, inside folders.json

{
    "Torrents":"/home/pi/torrents"
}

Important: you should have read/write access to this file

Magnet scheme/protocol handler

You can set TorHero as your default handler for magnet: links. To do so, just click on the gear on top to open the Config dialog.

Important: your torhero server must run on local or https server.

Https server

You can start torhero as a https server. You only need to provide an SSL key and certificate. You can use mkcert to create those files. As mentionned, it will allow you to open magnet: links with torhero.

torhero -s -k path/to/key -c path/to/certificate