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

@folijs/collab

Latest version: v0.2.1

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: josepaudenis
0 Stars
0 Forks
2 Versions
156 Downloads
TypeScript Repo language

Scan summary

@folijs/collab was last scanned on 25 Nov 2026 at version 0.2.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 2 days (24 and 25 Nov 2026).
  • Findings: No rules fired in version 0.2.1.
  • Downloads: 156 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.1 LATEST 25 Nov 2026 No rules fired
0.1.1 24 Nov 2026 No rules fired

No rules fired in 0.2.1

Findings

Findings for v0.2.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.2.1; other versions have their own rules, not their own score.

README

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

@folijs/collab

The authority for real-time editing of a Foli document by several people (ADR-0012). It orders every step: a client sends the steps it made since the version it knows; the authority accepts them only if they start from its version, are steps of the document's schema, the app's authorize lets them through and they apply, and gives what to broadcast. No transport, no storage, no DOM and no Node built-ins: it runs in Node, workers and Durable Objects; the app moves the messages and stores what it gives. Its only dependency is @folijs/core, a peer at an exact version.

Unstable (0.x). Outside the 1.0 promise of the other packages: its API may change in any 0.x release. npm install @folijs/collab @folijs/core.

import { createAuthority } from "@folijs/collab";

const authority = createAuthority({
  document,
  package: pkg,
  authorize: (clientID) => canEdit(clientID),
});

// A client's message (`{ version, steps }`, from `sendableSteps` in @folijs/core), with the
// client id your connection authenticated (never the one the message claims):
const result = authority.receive(text, connection.clientID);
if (result.ok)
  broadcastToEveryone(result.broadcast); // the sender too: it confirms its steps
else reply(result); // `stale`: the client catches up (`stepsSince`), rebases, sends again

authority.stepsSince(version); // { version, steps, clientIDs } or { snapshot } when compacted
authority.snapshot(); // { version, document, package }: what to store

Or let createHub and connect speak the protocol, and carry their messages over whatever you have (a WebSocket, a Yjs channel, WebRTC, BroadcastChannel):

import { connect, createHub } from "@folijs/collab";

// Where the authority lives (a server, or the hosting browser):
const hub = createHub(authority);
const deliver = (from, out) => {
  for (const { to, message } of out) sendTo(to, from, JSON.stringify(message)); // everyone, sender or others
};
onJoin((clientID) => deliver(clientID, hub.join(clientID))); // its snapshot first
onMessage((clientID, text) => deliver(clientID, hub.receive(text, clientID)));
onClose((clientID) => deliver(clientID, hub.leave(clientID)));

// In each client, once the snapshot came: an editor with `collab`, connected.
const editor = createEditor({
  document: snapshot.document,
  plugins: [collab({ version: snapshot.version, clientID })],
});
const connection = connect(editor, {
  send: (message) => socket.send(JSON.stringify(message)),
  name: "Ada",
  color: "#c2410c",
  onSnapshot: (snapshot) => restart(snapshot), // too far behind: create the editor again
  onError: (reason) => showError(reason), // refused for good: its steps are not sent again
});
socket.onmessage = (event) => connection.receive(event.data);
socket.onreconnect = () => connection.resume();

connect sends one batch at a time, checks every broadcast against the editor's version, catches up after a gap or a stale refusal and sends and shows presence (EditorView draws the others' carets). A presence message over 4000 characters is dropped by the hub (a name is cut to 100 characters before it is sent). Each catchup answers with steps or a whole snapshot: rate-limit them per connection when clients may be hostile.

The client side is collab, sendableSteps, receiveBroadcast and getVersion in @folijs/core. Refusals: stale, malformed, invalid (a step does not apply, or an envelope or story step no longer finds what it changes), too-large (limits: message size, steps per message) and unauthorized. The log keeps limits.log steps (default 10 000); a client further behind gets a snapshot. Pass log (authority.log, stored) and version to start again after a restart. Locked content controls are not checked again by the authority (their rules depend on the command that made an edit): an app whose clients may be hostile checks them in authorize.

Versions. A version counts steps. broadcast.version is the version before the broadcast's steps: a client applies it when broadcast.version === getVersion(editor.state), keeps one from later until those before it arrive, and drops one it already has. received.version is the authority's version after them. Broadcast to everyone, the sender too: its own broadcast is how its steps are confirmed. A client that skips it, applies a broadcast twice or drops a stale refusal is refused as stale until it catches up, or for good: see the guide's My edits stop.

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 @folijs/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

Copy of Template Design OX Blog (2)
Research

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

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229