npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@doxi/collab

v0.11.0

Published

Doxiva collaboration engine — step-based CRDT and transports.

Readme

@doxi/collab

Real-time collaboration substrate for Doxiva. Step-based concurrency control with per-peer Lamport ordering, pluggable transports, and presence cursors.

Status: v0.10.x preview. v0.6.0 ships sequential + disjoint-position convergence. Same-position concurrent inserts are a known limitation — see below.

What it does

  • CollabEngine — wraps a local EditorView so every dispatched Transaction is mirrored to remote peers, and inbound updates are rebased and applied locally. Per-peer Lamport clock + monotonic local version. Concurrency uses Mapping-based rebase of pending local updates against inbound steps (the ProseMirror-collab model).
  • Transport interface — pluggable channel for CollabUpdate + RemoteCursor messages. Two implementations ship:
    • InMemoryBroker (@doxi/collab/transports/in-memory) — in-process fan-out, primarily for tests.
    • BroadcastChannelTransport (@doxi/collab/transports/broadcast) — same-origin tab sync via the browser BroadcastChannel API. No server, no auth, no persistence.
  • RemoteCursorTracker + installRemoteCursors(view, engine) — presence cursors painted as a direct-DOM overlay anchored to the view. Caret + peer label, color per peer.

Install

pnpm add @doxi/collab @doxi/core

Quickstart

import { CollabEngine, installRemoteCursors } from '@doxi/collab'
import { BroadcastChannelTransport } from '@doxi/collab/transports/broadcast'

const transport = new BroadcastChannelTransport('doxiva-demo')
const engine = new CollabEngine({
  view,
  transport,
  peer: { id: crypto.randomUUID(), label: 'Alice', color: '#d93025' },
})
const uninstall = installRemoteCursors(view, engine)

// Later: uninstall(); engine.dispose(); transport.dispose()

Known limitations

  • Same-position concurrent inserts may diverge in ordering. v0.6 is step-based, not character-CRDT. A Logoot/RGA fractional-index variant is on the roadmap.
  • No authoritative server / replay log. Peers joining late don't see prior history. v0.6 is peer-to-peer only via BroadcastChannel (same-origin tabs).
  • No WebSocket transport in-tree. The transport interface is open; consumers wire their own. WebSocket adapter is planned.
  • No RBAC, comments, suggestions, track-changes — these need their own model layer.

See spec §7.2 for the full design and convergence model.

Tests

400 fast-check cases per scenario family across convergence.prop.test.ts (sequential + disjoint-position + cursor-only). Arbitrary async schedules are a v0.6.x follow-up reserved by an it.todo.

License

MIT