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

magnet-cli

v0.1.2

Published

A CLI for querying and retrieving torrent magnet links

Downloads

1

Readme

magnet

Search. Select. Stream.

magnet is a command-line torrent search scraper for magnet links. It can pass a selected magnet (and additional parameters) through to peerflix to start downloading (and streaming) the search result automatically. Or you could pipe the output from magnet into your preferred torrent utility!

This utility gets search results and magnet links from thepiratebay.org. The responsibility lies upon the user to not download malicious, false or illegal material using this tool.

The search isn't limited to just video, of course!

$ magnet "Ubuntu" 1 --

Usage

Basic

Search:
$ magnet "Night of the Living Dead 1968"
1: Night Of The Living Dead 1968 720p BluRay x264 CtrlHD PublicHD
2: Night Of The Living Dead 1968 720p BRRip x264 x0r
3: Night of the Living Dead 1968 BDRip hV
4: Night Of The Living Dead 1968 1080p Bluray x264 hV N0 RaRs
5: Night Of The Living Dead 1968 720p BDrip x264 AAC V4G
Select:
$ magnet "Night of the Living Dead 1968" 1
magnet:?xt=urn:btih:F17FB68CE756227FCE325D0513157915F5634985&dn=night+of+the+living+dead+1968+720p+brrip+x264+x0r&tr=udp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce
Stream:

Supply -- and the magnet is sent to peerflix. All options after -- are passed to peerflix.

$ magnet "Night of the Living Dead 1968" 1 -- --vlc
# this starts downloading the torrent via peerflix

Advanced

More/fewer results

You can choose how many results to show with the --rows option:

$ magnet --rows=10 "Night of the Living Dead 1968"
1: Night of the Living Dead 1968 (1080p, x265, AAC 1.0)
2: George Romero 1968-1985 Night Dawn and Day Of The Living Dead
3: Night of the Living Dead[1968]DvDrip[Eng]-Stealthmaster.avi
4: Night.Of.The.Living.Dead.1968.720p.BluRay.x264-CtrlHD [PublicHD]
5: Night Of The Living Dead 1968 Colorized DVDrip x264-[MULVAcoded]
6: Night of the Living Dead (1968) - In Colour - DivX  [akhiugo]
7: Night Of The Living Dead (Millennium Edition; 1968).avi
8: Night of the Living Dead (1968)
9: Night Of The Living Dead [1968 - 30th Anniversary Edition]
10: Night Of The Living Dead 1968 720p_sujaidr
Download using other torrent clients

You may prefer to use another torrent client using the output from magnet

# rtorrent
$ tr=`magnet "Night of the Living Dead 1968" 1`
$ rtorrent "$tr"

# clipboard (macOS) to paste into a GUI torrent client
$ magnet "Night of the Living Dead 1968" 1 | pbcopy

# clipboard (X on GNU/Linux) to paste into a GUI torrent client
$ magnet "Night of the Living Dead 1968" 1 | xclip -i -sel clipboard

Note that Night of the Living Dead [1968] is in the public domain. Download responsibly.

Installation

npm install -g magnet-cli
# optional, if you want to stream/download using '--' as shown in the Basic Usage section:
npm install -g peerflix