
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
loro-protocol
Advanced tools
Compact binary wire protocol for collaborative CRDTs (Loro/Yjs), with encoders/decoders and bytes utilities
Binary wire protocol for Loro CRDTs (TypeScript). Provides compact encoders/decoders for all protocol messages, bytes utilities, and helpers for the %ELO end-to-end encrypted flow (AES‑GCM with 12‑byte IV and exact-header AAD).
pnpm add loro-protocol
BytesWriter, BytesReader) with varUint/varBytes/varStringSee protocol.md and protocol-e2ee.md at the repo root for the ground‑truth spec.
Encode and decode messages:
import { encode, decode, CrdtType, MessageType } from "loro-protocol";
const join = encode({
type: MessageType.JoinRequest,
crdt: CrdtType.Loro,
roomId: "room-1",
auth: new Uint8Array(), // join metadata (auth/session tokens, etc.)
version: new Uint8Array(),
});
const msg = decode(join);
console.log(msg.type); // 0x00 JoinRequest
%ELO encrypted records (AES‑GCM):
import {
EloRecordKind,
encryptSnapshot,
encryptDeltaSpan,
decryptEloRecord,
encodeEloContainer,
decodeEloContainer,
parseEloRecordHeader,
} from "loro-protocol";
// Encrypt a snapshot
const key = crypto.getRandomValues(new Uint8Array(32));
const plaintext = new Uint8Array([1, 2, 3]);
const { record } = await encryptSnapshot(plaintext, { vv: [], keyId: "k1" }, key);
const container = encodeEloContainer([record]);
// Later, parse and decrypt
const [rec] = decodeEloContainer(container);
const parsed = parseEloRecordHeader(rec);
const out = await decryptEloRecord(rec, async () => key);
console.log(parsed.kind === EloRecordKind.Snapshot, out.plaintext);
Notes
ct.encode(msg), decode(buf), tryDecode(buf)BytesWriter, BytesReaderencodeEloContainer, decodeEloContainer, parseEloRecordHeader, encryptSnapshot, encryptDeltaSpan, decryptEloRecord%ELO crypto uses Web Crypto (globalThis.crypto.subtle). Node 18+ provides it via globalThis.crypto.
MIT
FAQs
Compact binary wire protocol for collaborative CRDTs (Loro/Yjs), with encoders/decoders and bytes utilities
We found that loro-protocol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.