Skip to content
ContractSpec
Start here

Package manual · integrations

·Forms, data views and data exchange

integration.crdt-loro

Isolated Loro-compatible CRDT adapter proof for data transmission collaboration envelopes.

integrationsintegrationv2.0.5experimentalservernode
@lssm-tech/integration.crdt-loro
bun add @lssm-tech/integration.crdt-loro
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

Isolated Loro adapter proof for ContractSpec collaboration envelopes.

Boundary

This is the only V0 package that imports loro-crdt. Core data-transmission spec/runtime packages expose ContractSpec envelopes and never expose raw Loro types.

The production adapter uses Loro's base64 distribution so its WebAssembly is embedded in serverless bundles. Hosts do not depend on build-machine paths or provider-specific file tracing to initialize collaborative documents.

Convergence proof

The package exports runLoroConvergenceProof, which applies independent left/right document updates, exchanges snapshots/updates through adapter-scoped envelopes, and verifies converged snapshots, versions, update counts, and byte counts without leaking Loro document objects to core contracts.

V0 constraints

The proof covers in-memory update/snapshot/export/import/merge semantics. Production persistence, auth, managed WebSocket hosting, multi-region guarantees, and hosted collaboration backends are future work.

Standalone declaration exports keep their existing public subpath names. The shared builder preserves their original declaration suffix and copies checked source declarations into dist, without overwriting emitted implementation types.

Relationships

THIS PACKAGEintegration.crdt-loro9 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

2 declarations

Declared capabilities

Integration Crdt Loro

Isolated Loro-compatible CRDT adapter proof for data transmission collaboration envelopes.

Scripts

  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • cleanrimraf dist .turbo
  • lintbun lint:fix
  • lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .
  • lint:checknode ../../../scripts/biome.cjs check .
  • testbun test
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit