This is so cool. Would love a p2p railsish full-stack framework please, this is a great first step.

Why p2p? In theory it allows one to push hosting and bandwidth costs to the clients and make software that is usable as long as people want to use it. In practice, building p2p apps is like 10x harder than a web app because it’s uncommon and there’s very little in the way of tooling and common app design patterns.

you may find qbittorrent interesting https://github.com/qbittorrent/qBittorrent

they've been a popular p2p app for a few years