Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@jxsuite/collab

Latest version: v0.13.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: avunu
7 Stars
3 Forks
25 Versions
3.6K Downloads
TypeScript Repo language

Scan summary

@jxsuite/collab was last scanned on 24 Nov 2026 at version 0.13.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 25 versions; the latest 2 were published within 2 days (23 and 24 Nov 2026).
  • Findings: No rules fired in version 0.13.1.
  • Downloads: 3,638 downloads.

Versions

25 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.13.1 LATEST 24 Nov 2026 No rules fired
0.13.0 23 Nov 2026 No rules fired
0.12.5 17 Nov 2026 No rules fired
0.12.3 15 Nov 2026 Not shown
0.12.2 14 Nov 2026 Not shown

No rules fired in 0.13.1

Findings

Findings for v0.13.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.13.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@jxsuite/collab

Realtime co-editing for Jx Studio: the shared Y.Doc schema for a Jx document, the bridge between Studio's transactional op-log and Yjs, a structural differ, the binary wire envelope every collab backend speaks, and the provider contract Studio consumes through its Platform Abstraction Layer.

Everything here is environment-agnostic TypeScript (no DOM, no Node/Bun APIs): the same modules run in the browser, in the @jxsuite/server dev server, and on Cloudflare Workers.

The document model

One Y.Doc per open file:

Root type Purpose
source: Y.Text The authoritative file content. Providers persist getText("source").toString() and nothing else.
structure: Y.Map The JxMutableNode tree, projected by Studio. Only children nests (Y.Array); every other key is a plain-JSON value merged whole (LWW).
frontmatter: Y.Map Per-field plain-JSON values.
meta: Y.Map schemaVersion, structureSeeded, canonical, canonicalRev, sourceFormat.

The CRDT granularity deliberately equals Studio's op-log granularity: mutators emit whole-value set-keys and children splices, so those are the only merge points.

Seeding contract. Providers seed only source from file bytes; they never parse or serialize Jx documents. Clients derive structure on first sync via seedStructure(), which is safe under concurrent seeders because it only performs whole-key Y.Map sets (per-key LWW keeps one seeder's subtrees wholesale; it never uses array inserts, which would duplicate). A client's Y.Doc must start empty; never seed locally before the provider's sync completes.

The op bridge

  • applyDocOpsToY(doc, ops, origin) replays Studio's recorded forward JxDocOps onto the Y tree in one origin-tagged transaction (LOCAL_ORIGIN for user edits, MIRROR_ORIGIN for derived writes, SEED_ORIGIN for bootstraps).
  • yEventsToDocOps(events) converts a remote transaction's deep events back into JxDocOps. Call it inside the observeDeep callback. It returns null for shapes it cannot convert safely; reconcile by diffing instead.
  • diffDocs(a, b) produces ops transforming a into b (invariant: apply(clone(a), diff(a,b)) ≡ b); returns null past maxOps, in which case replaceYStructure() hard-replaces and bumps meta.canonicalRev so stale mirror writes are discarded.
  • applyDocOpToDoc, inverseOf and applyDocOpsWithInverse (in ./ops, yjs-free) re-export the canonical plain-JSON op vocabulary from @jxsuite/schema/doc-ops, shared with Studio's history replay and the canvas shadow doc, so a host without yjs can apply the same ops.

The wire envelope (./envelope)

One WebSocket per project, multiplexing every open document (lib0 binary frames):

frame          := varUint frameType, body
0 DOC_SYNC     := varString path, varUint docEpoch, varUint8Array y-protocols sync body
1 AWARENESS    := varUint8Array y-protocols awareness update (project-scoped)
2 DOC_CLOSE    := varString path
3 CONTROL      := varString json    — hello | open | opened | doc-reset | flush | flush-ack | error

docEpoch is the server-owned lifetime counter of a doc's Y history. Y history is never deleted or replaced without an epoch bump: out-of-band content replacement (git discard/pull/rename, non-collab writes) bumps it and broadcasts doc-reset; clients destroy their Y.Doc and re-open. Stale-epoch frames are dropped. This invariant is what prevents divergent-history duplicate-content merges.

Session flow: connect → server sends hello{login, name?, avatarUrl?, color, permission} → client sends open{path} per document → server ensures the room (loads persisted Y state or seeds source from the file) → opened{path, epoch} → y-protocols sync handshake → updates flow. Read-only sockets receive sync and may publish awareness, but their doc updates are dropped with one error{read-only}.

Awareness (./awareness-types)

One project-level Awareness per connection. State shape: { user: {login, name?, avatarUrl?, color}, focusedPath, mode?, structuralSelection?, selection? }. File-tree presence (the plain selection field is the code view's in-buffer cursor) and per-document cursor overlays both filter the same states. Identity comes from the server hello; colors are deterministic (colorForKey).

Provider contract (./provider, type-only)

StudioPlatform.collab?: (docPath) => Promise<CollabHandle | null> where a handle carries {doc, awareness, whenSynced, identity(), flush(), onStatus(), onReset(), destroy()}. onReset fires on a doc-reset: the handle is dead, so destroy it and re-acquire.

Versioning

Published to npm as @jxsuite/collab, following the monorepo's release train. Like every @jxsuite package, it ships TypeScript source. Within the monorepo, other packages (@jxsuite/server, @jxsuite/studio) depend on it via workspace:^.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @jxsuite/collab

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229