Magnetio

Minimal BitTorrent-based streaming and downloading client written in C

Description

Magnetio

Magnetio is a minimal BitTorrent-based streaming and downloading client written in C.
It focuses on clean architecture, low-level socket programming, and protocol-level implementation of the BitTorrent ecosystem.

Inspired by Stremio, but built from scratch for systems-level learning and control.


Overview

Magnetio is designed in layers:

  • utils/ → Parsing, hashing, logging

  • net/ → Raw sockets, HTTP, event loop

  • core/ → Torrent engine (trackers, peers, pieces)

  • gui/ → GTK4 interface and playback

The torrent engine is independent from the GUI.


Features

  • Stream video from magnet links

  • Download media via BitTorrent

  • Multi-peer support

  • Event-driven networking

  • Magnet search (planned)