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

downstream-torrent

v0.0.2

Published

A useful torrent client

Downloads

2

Readme

Downstream

Build Status

JavaScript Style Guide

Downstream is a torrent client built on top of webtorrent. It provides an easy way to add torrents, either manually via torrent urls and magnet links, or automated through RSS feeds.

Usage

Requirements

Installing and Running

  1. Clone (or download) this repository to your local machine.
  2. Open your terminal in the root of the Downstream directory and run npm install to install the dependencies.
  3. Customise your config (see the config section below)
  4. Run Downstream using npm start

Command Line

You can use the Downstream command line by running ./bin/downstream. This will automatically connect to the Downstream service if it is running and allows you to manually manage torrents being downloaded by Downstream.

Commands

  • add <magnet|torrent> - Adds the magnet uri or torrent url and begins downloading
  • remove <torrent id> - Removes the torrent matching the specified id
  • list - Shows the status, id, progress, and other information for each torrent added to Downstream

Config

Downstream's settings can be configured using the config/default.json file. This file allows you to change the port that Downstream runs on, change the location for downloading and completed torrents, and add feeds that can be used to automatically import torrents.

Port

The port config option specifies the port where Downstream can be accessed.

Paths

You can specify separate downloading (incomplete) and completed as full paths in local file system. Once a torrent is finished downloading it will be copied to the completed folder.

"paths": {
  "downloading": "/Volumes/storage/torrents/downloading",
  "complete": "/Volumes/storage/torrents/complete"
}

RSS Feeds

Downstream can periodically scan RSS feeds and automatically add the discovered torrents to the download queue. You can use Regular Expressions to filter a feed even further.

Adding a Feed

To add an RSS feed, edit the feeds in config/default.json and

"feeds": [{
  "url": "https://example.com/myrssfeed"
}]

Pattern Matching

You can also add a match option to a feed to filter item titles for either a simple string or a Regular Expression.

String

To match a string, you can simply specify a match option alongside the url for your feed.

"feeds": [{
  "url": "https://example.com/myrssfeed",
  "match": "2160p"
}]

Regular Expression

To match a Regular Expression you can specify both a pattern and the flags to match against.

The following example matches any feeds that include the format S[number]E[number] and 1080p.

"feeds": [{
  "url": "http://example.org/somerssfeed",
  "match": {
    "pattern": "(?=.*S\\d*E\\d*)(?=.*1080p).*",
    "flags": "gi"
  }
}]

Note: You must escape (\) backslashes in your Regular Expression (e.g. \d becomes \\d).