Client<->Server API - defines how Matrix compatible clients communicate with Matrix homeservers. Server<->Server API - defines how Matrix homeservers exchange messages and synchronise history with each other.
Given the data model (which allows merges) forkdb
could be a close candidate to substitute a Client <-> Client API (also called peer to peer).