stable

`@noy-db/by-*` — Session-share transports

The session-share transports: by-peer (WebRTC, same network) and by-tabs (BroadcastChannel, same browser) move an unlocked session between contexts.

Move an unlocked session between contexts. A by-* package carries noy-db's encrypted envelopes live between two running instances — tabs in the same browser, peers across a network — so they can see each other's changes. The transport itself never sees plaintext, only AES-256-GCM ciphertext.

Catalog

Peer-to-peer

PackageWhat it does
peerWebRTC DataChannel transport between two browsers or Node processes — no relay server in the middle.

Same-device tabs

PackageWhat it does
tabsBroadcastChannel transport — sub-millisecond fan-out between tabs of the same browser origin.

Compare

PackageTransportScopeSees only ciphertext
peerWebRTC data channelremote peers✓
tabsBroadcastChannelsame-device tabs✓
  • sync service and crdt service — the hub-side strategies that produce the change stream a by-* transport carries.
  • Real-time CRDT app — the canonical real-time recipe; pairs naturally with by-peer and by-tabs.