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 🙏

© 2025 – Pkg Stats / Ryan Hefner

piratesbey

v1.0.0

Published

The Pirate Bay

Downloads

21

Readme

Gracias a archive.org, tpb archive, Karel Bilek y Rick Falkvinge por la diferente data y scripts.

Sources

Archivos fuentes en formato compatible actualizados seran liberados como torrent, mientras tanto:

  • http://www.karelbilek.com/piratebay/
  • https://github.com/tpb-archive/8xxxxxx
  • https://www.reddit.com/r/thepiratebay/comments/2p4b6h/20140918_latest_dump_of_thepiratebayse_index/

The Pirate's Bey

Requirements:

  • Node JS

  • Java 7 (for elasticsearch)

Running the application:

  1. Clone this repository

  2. Run npm install

  3. Setup the database using your mysql client

create database piratesbey_dev;
grant all privileges on piratesbey_dev.* to 'piratesbey'@'localhost' identified
by 'piratesbey';
flush privileges;
  1. Run node index.js and check out the app at http://localhost:1337

Search engine

It uses Elastic Search to create a distributed search engine for torrents. Anyone will be able to join the network to host the bigger torrents database in the world.

The search engine is embedded into the application, so you just need to follow the installation instructions and the site will use it by default.

New torrents added to the database will be automatically synchronized with the search engine.

Remember to configure your firewall to allow connections from ports 9200:9400 in order to make the nodes see each other in the cluster.

Cargar Sources y Scrapear TPB(s)

Los scripts estan tan optimizados como fue posible, los sources no estan incluidos (por ahora).

bin/db.py
---------
con = mdb.connect(host='localhost', user='root', passwd='', db='piratesbey');

Cargar desde un mirror

python bay2bey_torrents.py 
--------------------------
source_site = 'http://oldpiratebay.org'
min_tpb_id = 3211594
max_tpb_id = 11671120

Cargar desde un backup en formato csv (tpb-archive)

python csv2bey_torrents.py
--------------------------
csv_path = 'sources/'
min_tpb_id = 3211594
max_tpb_id = 11671120

Cargar desde un backup en formato xml (karel)

python xml2bey_torrents.py
--------------------------
python xml2bey_comments.py
--------------------------
xml_path = 'sources/rich-and-valid.xml'
min_tpb_id = 3211594

Cargar desde un backup en formato csv (reddit) python csv2bey2_torrents.py --------------------------- csv_path = 'sources/tpb.txt'

Si te da error de byte NULL simplemente buscalo y borralo grep -Pan '\x00' ../sources/tpb-9-14.txt