I built a BitTorrent engine that streams to Plex without downloading

TL;DR AI
2 min readKey summary
Tiramisu combines a FUSE virtual filesystem with a BitTorrent engine to let Plex stream media immediately without saving files locally.
It mounts a fake media library so Plex can scan it like normal files, while the actual content is fetched piece by piece from peers.
The project had to solve real production issues, including cache invalidation causing audio sync drift, a shutdown deadlock in the pipe-based reader, and permanent bans for corrupt peers.
Adaptive controls tune connection counts and error handling based on system load and playback conditions, making swarm-based streaming reliable enough for home media use.
