A command line toy BitTorrent client written in Node.js.
- Supports downloading files (both single and multiple files) 📂
- It automatically resumes from the last downloaded percentage ⏸️
- Shows download progress 📊
- Node.js: Download here
-
Clone the repo:
git clone https://github.com/srijit2002/bittorrent-client.git
-
Navigate to the project directory:
cd bittorrent-client
-
Install the necessary dependencies:
npm install
-
Link the client:
npm link
-
Now type the follwing commmand and it will open a dialog box. Select a
.torrent
file and click ok.download-torrent
Note: Currently, only UDP trackers are supported.
- How to Make Your Own BitTorrent Client
- BitTorrent Internals
- BitTorrent Specification
- BEP 0003
- UDP Tracker Protocol
- BEP 0015