https://github.com/YouROK/TorrServerthis is a server that can be installed on any platform, even on some routers.
this server immediately downloads and outputs the stream via a torrent link, and, by default, does not save data to disk, everything is in memory, only in RAM. but you can also specify a disk, if there is little memory. You only need 64 megabytes of memory to play a single torrent.
to download a torrent to this server, you connect to it via the web interface, add a link to a torrent on the Internet or to a local torrent file, and you can get a link to play from the added torrenta. almost all well-known players support this link.
the solution is simply gorgeous - you can not use disk storage at all, all players play its links, you can play thousands of torrents at the same time, this is OPEN SOURCE.