Skip to content

Peer-to-peer Live Sync

  1. Need an extreme real-time synchronization experience.
  2. Need multi-user real-time content sharing.
NOTE

Live Sync is a Professional feature. You cannot fill in a room and join collaboration without unlocking it.

In Settings → Sync, expand the “N” P2P Hot Sync section and follow these steps:

  1. Room Name: Enter a room ID. Leave blank to use the vault name by default. Devices in the same room can sync notes with each other.
  2. Room Password (optional): Set a password; devices joining the same room must use the same password.
  3. Nickname: Set the name shown for this device in the room.
  4. Connection Mode: Choose Direct P2P or Relay.
  5. Click Enter to start the real-time collaboration engine and sync with other devices in the room.
TIP

After multiple devices join the same room (with the same password), they will appear in the collaboration view.

Devices establish a peer-to-peer connection over WebRTC; a signaling server is only needed to set up the connection. Choose the Service Provider:

ProviderUse Case
Websocket (standard)Default standard mode
Cloudflare (do)Suitable for specific network environments
Aliyun (fc)Recommended for networks in mainland China

Devices on the same LAN usually connect directly; across networks the plugin automatically attempts NAT traversal, and you can configure a TURN server if needed.

Devices exchange data through a cloud Worker relay, suitable for cross-network scenarios or when direct connection fails (e.g., strict NAT):

  • Relay URL: Defaults to https://relay.sync-vault.com/relay, provided and maintained by Sync Vault. You can also self-host one.
  • Relay Token (optional): Must match if your self-hosted Worker has RELAY_SHARED_TOKEN configured.
NOTE

In Relay mode, all devices in the room connect automatically—no manual per-device connect/disconnect is needed.

Open the dashboard (click the cloud icon in the sidebar) and switch to the Collaboration tab; on mobile, you can also tap the 👥 icon in the Obsidian sidebar to open it directly.

Collaboration View
Collaboration View

The collaboration view provides:

  • Collaboration status: current device, room, and the number of online devices.
  • Online devices: lists devices in the room; in P2P mode you can connect / disconnect individual devices (Relay mode connects automatically).
  • Current activity: shows in-progress file transfers and their progress.
  • Collaborated files: lists shared files, where you can set individual files to Writable / Read-only.

The topology diagram at the top of the dashboard also shows the live connection between this device and peers in real time; the status bar shows 🔥 Live Collab Active (N connected) or ⚡ Waiting for peers....

You need a machine reachable from the public internet (e.g., a cloud server). The signaling server only exchanges connection information—file contents never pass through it.

Terminal window
git clone git@github.com:abcamus/webrtc-signaling-server.git
cd webrtc-signaling-server
npm run docker:build
npm run docker:run

After deployment, enter ws://your-server:1234 in Self-hosted Configuration → Signaling Server Address and rejoin the room to take effect.

When direct P2P fails due to NAT restrictions, configure a TURN server to relay. Enter it in Self-hosted Configuration → TURN Server, in the format:

turn:host:port?username=xxx&password=xxx

The Relay is a Cloudflare Worker that forwards data between devices. You can implement your own Worker following the built-in Relay URL: point Relay URL at your Worker and set a Relay Token if needed.