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

y-atproto

v1.1.0

Published

A [Yjs](https://yjs.dev/) CRDT provider that syncs documents over the [AT Protocol](https://atproto.com/). Documents are stored as ATProto records and real-time updates are delivered via [Jetstream](https://github.com/bluesky-social/jetstream).

Readme

y-atproto

A Yjs CRDT provider that syncs documents over the AT Protocol. Documents are stored as ATProto records and real-time updates are delivered via Jetstream.

How it works

  • Each collaborative session is represented by a room record (io.github.uwx.yjs.room) in the user's ATProto repository.
  • Document updates are written as io.github.uwx.yjs.update records, with small updates stored inline and large updates (>1 MB) stored as blobs.
  • Real-time sync is achieved by subscribing to Jetstream for new update and awareness records.
  • Rooms can optionally be encrypted (AES-256-GCM with PBKDF2 key derivation) and restricted to an allowlist of DIDs.
  • Awareness (cursor positions, user presence) is supported via io.github.uwx.yjs.awareness records.

Installation

pnpm install y-atproto

Usage

Creating a new room

import { Doc } from "yjs";
import AtprotoProvider from "y-atproto";

const ydoc = new Doc();

const { provider, room } = await AtprotoProvider.createNew({
  secret: "optional-password",
  repo: did,
  handler: agent,
  ydoc,
  autosaveInterval: 1000,
});

Joining an existing room

const provider = await AtprotoProvider.resume({
  secret: "optional-password",
  repo: did,
  handler: agent,
  room: "at://did:plc:.../io.github.uwx.yjs.room/...",
  ydoc,
  autosaveInterval: 1000,
});

Options

| Option | Type | Description | |---|---|---| | secret | string | Optional password for end-to-end encryption | | repo | ActorIdentifier | DID or handle of the authenticated user | | handler | FetchHandler \| KittyAgent | Authenticated AT Protocol agent | | ydoc | Doc | Yjs document to sync | | autosaveInterval | number | Milliseconds between flushes of queued updates | | resendAllUpdates | boolean | If true, always send the full document state | | fullUpdateRate | number | Probability (0-1) of sending a full update on each flush (default 0.1) | | awareness | Awareness | Custom Yjs awareness instance to reuse | | awarenessLive | boolean | If true, broadcast awareness on every local change instead of on an interval | | awarenessBroadcastInterval | number | Milliseconds between awareness broadcasts (default 29000) |

Demos

Building

Requires pnpm.

pnpm install
pnpm build

License

MIT