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

spools

v0.1.0

Published

Intimate, local-first, P2P shared documents. An artifact that can change, that's passed around.

Readme

spools

An artifact that can change, that's passed around.

The SDK for Spool — intimate, local-first, peer-to-peer shared documents. Two (or a few) people share a living thing — a mixtape, a chat, a list — with no central server that ever sees their content. Each person holds their own complete copy: it syncs live when you're online together, reconciles when you reconnect, and persists on your device forever even if you never sync again.

import { newSpool, openSpool } from 'spools'

const spool = await newSpool()               // fresh, encrypted by default
spool.wind({ kind: 'note', body: 'made you a thing' })
const link = spool.share()                    // hand this to someone —
                                              // the link IS the key exchange

// on their side
const same = await openSpool(link)
same.on('entry', () => render(same.entries))

spool.rewind(ts)    // the spool as it was — read-only time travel
spool.export()      // a portable JSON file, readable in 2040, yours forever
  • Encrypted end-to-end. The key rides in the link's URL fragment (never sent to servers); the relay forwards ciphertext it cannot read — and that's tested, not asserted.
  • No discovery, no accounts, no feed. The only way into a spool is a link handed to you by a person. That remaining friction is the point.
  • Built on Yjs — stock sync protocol, every Yjs editor binding works. The protocol is small enough to read: SPEC.md.
  • Bring your own relay with spools-relay (npx spools-relay) — or use the default. Honesty clause: a relay is a rendezvous point that sees IPs and room codes, never content.

Status: 0.1.0 — young but real: the full surface above works and is tested (multi-writer convergence, encrypted transport, history, export round-trips). Pre-1.0 semantics, stated plainly: minor bumps may break the API (0.1 → 0.2 is the breaking lane), patches are fixes and docs only — pin ^0.1.0 plus a lockfile and upgrade deliberately. The SPEC is the stable thing; spools on different SDK versions interoperate. The surface documented in SDK-API.md is the contract — everything else this package exports is scaffolding and may move in any 0.x.

yjs and y-protocols are peer dependencies, so your app and the SDK always share one Yjs instance (this matters if you bind an editor). npm ≥ 7 and pnpm install peers automatically — npm i spools stays the whole setup.

MIT · https://github.com/osfasofa/spools