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

@coderbuzz/ryu

v0.1.3

Published

Portable reactive signal primitives for TypeScript - lightweight observable state for Node.js, Bun, and Deno.

Readme

Ryu — @coderbuzz/ryu

Portable reactive signal primitives for TypeScript. Ryu provides a minimal, framework-agnostic observable state primitive that works in Node.js, Bun, and Deno — no dependencies, no runtime overhead.

Features

  • signal<T>() — create a typed reactive value with get, set, and subscribe
  • Immediate notification — subscribers are called with the current value on subscription
  • Automatic cleanupsubscribe returns an unsubscribe function
  • Multiple subscribers — independent listeners each receive updates
  • Strict valuesnull and undefined are rejected to prevent silent bugs
  • Runtime agnostic — works in Node.js, Bun, Deno, and browsers

Installation

# npm
npm install @coderbuzz/ryu

# Bun
bun add @coderbuzz/ryu

# Deno
import { signal } from "npm:@coderbuzz/ryu";

Quick Start

import { signal } from "@coderbuzz/ryu";

const count = signal(0);

// Read the current value
console.log(count.get()); // 0

// Update the value
count.set(1);
console.log(count.get()); // 1

// Subscribe to changes (fires immediately with current value)
const unsubscribe = count.subscribe((value) => {
  console.log("count changed:", value);
});
// → "count changed: 1"  (fires immediately)

count.set(2);
// → "count changed: 2"

// Stop listening
unsubscribe();
count.set(3);
// (no log — listener has been removed)

API

signal<T>(initialValue: T): Signal<T>

Creates a new reactive signal with the given initial value. Throws if the initial value is null or undefined.

import { signal } from "@coderbuzz/ryu";

const name = signal("Alice");
const active = signal(true);
const config = signal({ theme: "dark", locale: "en" });

Signal<T> interface

interface Signal<T> {
  /** Returns the current value. */
  get(): T;

  /** Updates the value and notifies all subscribers. Throws if value is null/undefined. */
  set(value: T): void;

  /**
   * Subscribe to value changes. The listener is called immediately with the
   * current value, and again on every subsequent `set()`.
   * Returns an unsubscribe function.
   */
  subscribe(listener: (value: T) => void): () => void;
}

Examples

Derived / Computed Values

import { signal } from "@coderbuzz/ryu";

const firstName = signal("Alice");
const lastName = signal("Smith");

// Derive a full name whenever either changes
let fullName = `${firstName.get()} ${lastName.get()}`;

firstName.subscribe(() => {
  fullName = `${firstName.get()} ${lastName.get()}`;
});
lastName.subscribe(() => {
  fullName = `${firstName.get()} ${lastName.get()}`;
});

firstName.set("Bob");
console.log(fullName); // "Bob Smith"

Shared State Between Modules

// state.ts
import { signal } from "@coderbuzz/ryu";

export const currentUser = signal<{ id: string; name: string } | null>(
  { id: "guest", name: "Guest" }
);

// auth.ts
import { currentUser } from "./state";

export function login(user: { id: string; name: string }) {
  currentUser.set(user);
}

// ui.ts
import { currentUser } from "./state";

currentUser.subscribe((user) => {
  console.log("Active user:", user.name);
});

Reactive Config Reload

import { signal } from "@coderbuzz/ryu";

const config = signal({ debug: false, timeout: 5000 });

config.subscribe(({ debug, timeout }) => {
  console.log(`Config updated — debug: ${debug}, timeout: ${timeout}ms`);
});

// Later, apply a new config
config.set({ debug: true, timeout: 10000 });
// → "Config updated — debug: true, timeout: 10000ms"

License

MIT © 2026 Indra Gunawan