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

rxfy-server

v3.1.1

Published

Server-side live data library for rxfy

Readme

rxfy-server

Storage-agnostic server-side live data for rxfy. Write through the sync server, publish sync updates to subscribers, and sign the grants clients subscribe with — over a pluggable storage adapter.

Install

npm install rxfy-server
# peer deps: rxfy zod
# plus a storage adapter: rxfy-server-drizzle (Postgres) or rxfy-server-memory (in-memory)

What it gives you

  • createSync({ storage, hub, secret }) — the sync server. secret is the HMAC key for signing/verifying grants; storage is a SyncStorage adapter. Exposes live.create / live.update / live.delete that persist through the adapter and publish patch / stale messages, plus live.renew to reissue an expiring grant. Generic over the adapter's binding, so it accepts only that adapter's resources.
  • SyncStorage<TBinding> — the persistence port implemented by adapters (rxfy-server-drizzle, rxfy-server-memory). Resource<TInsert, TRow, TBinding> is the storage-neutral resource each adapter's defineResource / defineCollection produces.
  • createResourceRegistry — a neutral, typed index of resources (optional; createSync does not require it).
  • createInMemoryHub — socket-keyed pub/sub routing that pushes patch / stale messages to the sockets subscribed on verified grant frames.
  • live.serve — a read-endpoint pass-through: parses the payload, signs a per-state grant (its claims name the channel and the entity topics served), and attaches it as $grant. Stateless — no hub interaction, no requester session.
  • live.hydration — the one-call SSR payload: dehydrate the registry and embed the grants the render logged as grants: string[].
  • signGrant / verifyGrant — the HS256 grant primitives (the WebSocket transport verifies with the same secret).

See the rxfy-server docs for the full walkthrough, and Storage adapters for picking a SyncStorage.