https://github.com/bittricky/node-torrent
Simple node.js bittorrent client
https://github.com/bittricky/node-torrent
javascript nodejs torrent tutorial
Last synced: 5 months ago
JSON representation
Simple node.js bittorrent client
- Host: GitHub
- URL: https://github.com/bittricky/node-torrent
- Owner: bittricky
- Created: 2024-05-08T20:46:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-26T21:34:24.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T11:48:33.429Z (about 1 year ago)
- Topics: javascript, nodejs, torrent, tutorial
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node Torrent
> Simple exercise in building a node.js torrent client
### Prerequisites
Installing Node and NPM is pretty straightforward using the installer package available from the [Node.js](https://nodejs.org/en/).
### Install
To install the project dependencies run the following command
```
$ npm install
```
### Development
```
$ npm run start
```
### Project Structure
```
node-torrent/
├── node_modules/
├── src/
│ ├── client/
│ │ ├── peer.js
│ │ ├── message-handler.js
│ ├── tracker/
│ │ ├── tracker.js
│ ├── torrent/
│ │ ├── torrent-parser.js
│ │ ├── piece-manager.js
│ ├── utils/
│ │ ├── buffer-utils.js
│ │ ├── id-generator.js
├── test/
│ ├── puppy.torrent
├── .gitignore
├── package.json
├── README.md
└── index.js
```
### Credit
based on the [how to make your own bittorrent client](https://allenkim67.github.io/programming/2016/05/04/how-to-make-your-own-bittorrent-client.html#getting-peers-via-the-tracker)