Build an open source chat service… - eviltoast

Do you think that it’s possible to build a web service to chat compatible with email , xmpp and matrix?
(and why not even with activityPub or rocketChat ?? )

[exemple and why in the post…]