This looks interesting for our use case: GUN is a realtime, distributed, offline-first, graph database engine. https://github.com/amark/gun