We are also thinking the same thing about decoupling
Sorry for all the mess. I am trying REALLY hard to get things better organized, and cross-linked. If you have a link or a repo I would be happy to follow it so that we can look into federating down the road
I would much rather connect to an API for features like video sharing (PeerTube), and your project than trying to re-invent the wheel all the time. Not only does it save us coding effort, but it promotes the community.