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

@nisoku/sairin

v0.1.2

Published

Sairin, the modern, powerful, and compact reactive engine.

Readme

Fine-grained reactive UI framework with a virtual filesystem model

CI Deploy npm version License: Apache-2.0

Documentation | API Reference


Sairin is a fine-grained reactive UI framework built around a virtual filesystem model. Every piece of state lives at a path, and reactivity flows through those paths like a living directory tree.

Features

| Feature | Description | | --------- | ------------- | | Path-Based Graph | Signals at paths like /user/name, subscribe to namespaces | | Fine-Grained Updates | Only exactly what changes gets updated | | Three Scheduling Tiers | Sync, microtask, and idle effects | | Locks and Ownership | Prevent writes from outside designated scopes | | Memory Efficient | Incremental cleanup, effect pooling, retained memory caps | | Satori Integration | Structured logging with full context |

Quick Start

import { signal, effect, path } from 'sairin';

const count = signal(path("counter", "value"), 0);

effect(() => {
  console.log("Count is now:", count.get());
});

count.set(1);  // Logs: "Count is now: 1"

Why Path-Based

Most reactive systems use a flat model:

signal -> Set<subscriber>

Sairin uses a filesystem model:

/user/name     <- signal
/user/age      <- signal
/user          <- namespace
/ui/header     <- derived, depends on /user/name

This gives you namespace subscriptions, natural scoping, and path-based debugging.

Installation

npm install @nisoku/sairin

Sairin is available on NPM!

Documentation

| Section | Description | | --------- | ------------- | | Quick Start | Your first Sairin app | | Configuration | Lock behavior and logging | | Path System | Paths, globs, and aliases | | Signals | Creating and using signals | | Effects | Running code when signals change | | Derived | Computed values that auto-update | | Batching | Grouping updates efficiently | | Locks | Preventing unauthorized writes | | API Reference | Complete API documentation |

Used By

  • Sakko - A DSL compiler that uses Sairin for reactive state in compiled components

Project Structure

Sairin/
  Build/            # Source code and build config
    src/            # TypeScript source
      kernel/      # Core reactivity (signals, effects, derived)
      store/       # Reactive data structures
      flow/        # Async flow utilities
      async/       # Async patterns
      dom/         # DOM bindings
  Docs/             # Documentation (docmd)

Development

Install dependencies

cd Build && npm install

Run tests

cd Build && npm test

Type check

cd Build && npm run typecheck

Build

cd Build && npm run build

Build docs

cd ../Docs && npm run build

License

Apache License v2.0