HiDB is an open source API for realtime web apps. It sets up peer-to-peer connections via webRTC, and backs that up with a more reliable client/server WebSocket connection.
- Fast: Updates are sent peer to peer to minimize latency.
- Light: hidb-client is 3kb, and has no dependencies.
- Offline-First: User actions are applied optimistically until a connection becomes available.
npm i hidb-server
npm i hidb-client
Examples can be found in /examples.