New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@circuitz/collab-core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@circuitz/collab-core

CRDT- and transport-agnostic protocol orchestrator. Wires a pluggable `CollabAdapter` (CRDT engine) to a pluggable `TransportAdapter` (peer discovery + message bus), and bridges the resulting mutations into the `@circuitz/core` graph via `CrdtMutationDriv

latest
Source
npmnpm
Version
0.1.16
Version published
Weekly downloads
1
-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

@circuitz/collab-core

CRDT- and transport-agnostic protocol orchestrator. Wires a pluggable CollabAdapter (CRDT engine) to a pluggable TransportAdapter (peer discovery + message bus), and bridges the resulting mutations into the @circuitz/core graph via CrdtMutationDriver.

Chosen CRDT: Yjs

The abstraction here is intentionally CRDT-agnostic, but the only shipped implementation is Yjs (via @circuitz/collab-yjs). The adapter interface is kept to leave the door open for swapping in something else (Automerge, Loro, etc.) without rewiring the editor — not because we plan to.

A real CRDT swap would also touch @circuitz/collab-yjs/webrtc, which takes a Y.Doc directly. Treat the collab-yjs/* subpath family as Yjs-specific by convention.

Transport

Transport stays pluggable. Today:

  • @circuitz/collab-yjs/webrtc — WebrtcBundle wraps y-webrtc's WebrtcProvider for peer discovery + sync.
  • @circuitz/collab-memory — in-process transport for tests and single-peer demos.

FAQs

Package last updated on 04 Jun 2026

Related posts