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

tget

v0.9.2

Published

Command-line torrent downloader and HTTP streaming server

Downloads

17

Readme

tget

Command-line torrent downloader and HTTP streaming server

npm install -g tget

Based on the fantastic torrent-stream and peerflix, by mafintosh

Usage

tget <path|url|magnet> [options]

Example

tget "magnet:?xt=urn:btih:757fc565c56462b28b4f..." -s 9000

Options

| Option | Long name | Description | Default | |--------------|-----------------|---------------------------------------|---------------| | -c NUM | connections | Maximum connections | 100 | | -d NUM | dht | Number of DHT peers to find | 10000 | | -e | ephemeral | Ephemeral mode | | | -i | idle | Stay idle and don't quit when done | | | -l PORT | listen | Listen for incoming connections | | | -p PEER | peer | Explicit peer (in the form addr:ip) | | | -q | quiet | Quiet mode | | | -s [PORT] | stream | Enable live streaming on given port | 8888 | | -t | notracker | Disable trackers | | | -u NUM | uploads | Maximum upload slots | 10 | | -w | wait | Wait for stream before downloading | |

Video streaming

When downloading a video torrent, tget can stream it to your favorite media player as soon as its pieces are received.

Passing the -s option (with an optional port number) enables the streaming feature.

Then, simply open http://127.0.0.1:<port>/<file_id> in your media player.

The default streaming port is 8888.

If you don't specify the target file, tget will search for media files inside the torrent. If more than one media file is available, tget will provide a m3u playlist listing all media files found. Else, the default file will be the biggest file from the torrent.

While stream data has higher priority than non-stream data (such as .nfo or preview files), tget still download the entire torrent data when bandwidth allows it. When the -w option is given, tget will wait an incoming stream connection before dowloading any data from the torrent.

When the -w option is given, -e and -i are implicitely enabled. This turns tget into a streaming-only downloader and no data will be kept upon exit.

Local streaming

The stream engine from tget can also be used for streaming local files.

When the -S option is given, tget will not attempt to download a torrent but will instead use the given path as the stream data source. This can be a single file as well as a directory.

tget ./local.mp4 -S

If the -S option is given, no other option will be used. -i is implicitely enabled.

License

MIT