Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trackerjs - A nodejs-based BitTorrent tracker

pre-reqs: node

 Clone the repo
 cd trackerjs
 edit config.js
 node tracker.js

Obviously you will need torrents that list your new tracker. In linux I
prefer mktorrent:

 mktorrent -a http://yourhost:port/announce <file or dir>

Fair warning: this was an exercise to learn more about node and js. The code
is terrible, barely works (or may not work for anything but my test), and
implements the bare minimum necessary to allow BT peers to talk to one
another.

The most horrible hack can be found in byte_array.js. Does js truly not have
a binary-safe datatype?

I welcome code or conceptual contributions.

It borrows from Anton Ekblad's bencode.js. Thanks to him.

TODO:

 * fix host/ip handling

 * tests

 * implement peer list selection and numwant

 * something better than byteArray.

 * Stats tracking and eventual persistence for a companion index project

 * IPv6 extensions

 * Better Configuration

About

BitTorrent tracker built in nodejs

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages