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

@frondruntime/sorus-react

v0.3.1

Published

React hooks for Sorus: useValue, useValues, useSelect, and a realm provider.

Readme

@frondruntime/sorus-react

React hooks for Sorus, a glitch-free reactive state library for applications. It emphasizes:

  • Granular rerenders. A component rerenders only when what it read changes, under Object.is.
  • No wrapper. A render body has no read, so the hooks are the only way in: there is no observer wrapper, and the hooks work with the React Compiler.
  • No provider for a value. useValue and useValues need none: an observable carries its realm.
  • Stable identity. A write replaces a box's value rather than changing it in place, so a memoized child sees a new identity exactly when the value changed.

The package imports nothing from Effect. React 19 or later and @frondruntime/sorus are peer dependencies. Sorus is before 1.0: any release may change the API. It was called Pinna through 0.2.1.

Packages

| Package | Purpose | | --- | --- | | @frondruntime/sorus | The main package: realms, boxes, computed values, atoms, keyed collections, models, views, stages, atomic updates, and watchers. No Effect. | | @frondruntime/sorus-react | React hooks: useValue, useValues, useSelect. React 19 or later. | | @frondruntime/sorus-effect | Opt-in, for an application already on Effect: boxes that check an Effect Schema on every write, models decoded from the wire, and Effect programs that react to state. effect 4.1 or a later 4.x. | | @frondruntime/sorus-core | The raw reactive graph (cells, derived values, atoms, watchers, reactions) with no runtime dependencies, for code that builds on the graph itself. |

Quick start

| Package manager | Command | | --- | --- | | Bun | bun add @frondruntime/sorus @frondruntime/sorus-react | | npm | npm install @frondruntime/sorus @frondruntime/sorus-react | | pnpm | pnpm add @frondruntime/sorus @frondruntime/sorus-react | | Yarn | yarn add @frondruntime/sorus @frondruntime/sorus-react |

import { Box, Computed, Realm } from "@frondruntime/sorus";
import { useValue } from "@frondruntime/sorus-react";

const realm = Realm.make();
const $count = Box.make(realm, 0);
const $double = Computed.make(realm, (read) => read($count) * 2);

const increment = () => {
  Realm.update(realm, (read, write) => {
    write($count, read($count) + 1);
  });
};

function Counter() {
  const double = useValue($double);
  return <button onClick={increment}>{double}</button>;
}

useValue needs no provider: the value carries its realm. useSelect runs view logic in the realm of the nearest RealmProvider and throws without one. A write goes in an event handler, through Realm.update.

Exports

| Export | Does | | --- | --- | | useValue($x) | The value of one observable. Needs no provider. | | useValues([$a, $b]) | The values of several observables of one realm, as a typed array that keeps its identity until one changes. Needs no provider. | | useSelect((read) => ...) | The result of view logic over observables, in the realm of the nearest RealmProvider. Throws without one. | | RealmProvider, useRealm | Give the components below a realm, and read it. |

Documentation

https://sorus.frondruntime.dev/docs/react/hooks