yjsSignal

Creates a bidirectional Angular WritableSignal synchronized with Yjs CRDT types (Y.Map, Y.Array, Y.Text). Features non-destructive delta reconciliation, recursive nested CRDT structure preservation, key-level mapping, and configurable batching. Fully interoperable as a model driver for Angular Signal Forms (@angular/forms/signals).

TypeScriptexample.ts
import { yjsSignal } from '@angular-helpers/yjs'

# Properties

FieldTypeDescription
sharedTypeY.Map<any> | Y.Array<any> | Y.TextThe target Yjs shared type instance to synchronize.
options?YjsSignalOptions<T>Options specifying key (for Y.Map), initialValue, batching ("none" | "microtask" | "animationFrame" | number), destroyRef, and origin.
LCP N/A
CLS N/A
INP N/A