Coder Social home page Coder Social logo

min-torrent's Introduction

MinTorrent

CircleCI

MinTorrent is a minimalistic, zero dependency torrent client, written in Go (golang).

Demo of the CLI downloading torrent:

Demo

BitTorrent protocol

This BitTorrent client implemented the original BitTorrent protocol spec from 2001.

Features

  • Simple, 'no-nonsense' torrent leeching (doesn't support seeding yet)
  • Supports .torrent files (doesn't support magnet links yet)
  • HTTP trackers (no UDP trackers)

Also:

  • Single binary
  • Cross platform
  • Tiny runtime footprint โ€” designed for running on servers and in the future, on resource-constrained environments such as embedded devices.

Installation

go get github.com/cedrickchee/min-torrent

TODO: provide prebuild binaries (compiled downloads).

Basic usage

min-torrent <torrent_file_path.torrent> <output_file_path>

# Example: downloading Arch Linux ISO from
# https://www.archlinux.org/download/
min-torrent archlinux-2020.01.01-x86_64.iso.torrent archlinux.iso

Development

Running on embedded devices/microcontroller boards

That's the plan! However, this is still work-in-progress.

I believe, if we compile the program using TinyGo, we can run on several different microcontroller boards such as the Arduino Uno and the Rasberry Pi.

Limitations

  • No support for DHT, uTP, PEX and various extensions.

Why I started this project?

In 2019, I was motivated to learn a new programming language after I've been writing JavaScript for a over a decade. I decided to learn a statically typed and compiled programming language and I choose Go.

I started this project to relearn Go and to practice systems programming. My project idea was inspired by several blog posts and tutorials below (credits to them):

min-torrent's People

Contributors

cedrickchee avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.