Collaborative editing from VS Code to anything and everything using the Braid-HTTP protocol.
Install from the VS Code Marketplace (coming soon), or clone and load as a development extension:
git clone https://github.com/braid-org/braid-vscode.git
cd braid-vscode
npm install
npm run compileThen press F5 in VS Code to launch an Extension Development Host.
Syncs VS Code buffers with HTTP resources. Uses the simpleton merge algorithm. Implements HTTP with braid-http and reads/writes Braid-HTTP in TypeScript.
Open any braid-text resource:
Ctrl+Shift+P → "Braid: OPEN URL" → https://dt.braid.org/foo
braid-vscode automatically connects and starts syncing.
Edits you make are pushed to the server immediately, and edits from other clients appear in real time. Close the buffer to disconnect.
If the server supports collaborative cursors, braid-vscode automatically subscribes to cursor updates. Remote cursors and selections appear as colored highlights in the editor, and your cursor position is broadcast to other clients.
braid-vscode depends on:
-
braid-http — a Braid-HTTP client library. Subscribe to any Braid resource and receive streaming updates (209 Multiresponse parsing, automatic reconnection). Send versioned PUTs with patches.
-
braid-text — a simpleton sync client. Connects to a braid-text resource and handles the full sync lifecycle: diffing, patching, version tracking, and digest verification.