Been investigating this for a bit, including Pleroma, PeerTube, Hubzilla, Mastodon, Diaspora* and others. Many have mature code bases with extensive protocols and small but significant user bases. UX needs help but we're in the midst of a very creative period.