Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 642 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 642 Bytes

TS Torrent

Very basic BitTorrent v1.0 spec client built in TypeScript. Primarily done to learn modern Node JS + TS.

Usage

npm run dev

Features

  • Decodes tracker information from a .torrent file
  • Queries tracker to discover peers
  • Negotiates TCP connections to peers
  • Leeches data from peers
  • Validates downloaded pieces against SHA1 hashes
  • Writes validated pieces to disk
  • Restore progress on reboot

Missing

  • Configure via command line arguments
  • Announce progress to peers
  • Seed data to peers
  • Self-implemented bencode decode / encode
  • Any tests :D