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

@vielzeug/ripple

v1.2.1

Published

Fine-grained reactive state — signals, computed values, effects, stores, and reactive scopes

Readme

@vielzeug/ripple

Tiny, type-safe reactive primitives — signals, effects, computed values, and object stores. Zero dependencies, works everywhere.

npm version License: MIT

Package: @vielzeug/ripple  ·  Category: State

Key exports: signal, computed, effect, effectAsync, resource, watch, batch, store, storeWithHistory, untrack, scope, onCleanup, readonly, isSignal, isComputed, isStore

When to use: Fine-grained reactivity without a framework. Powers Ore templates. Works in any TS/JS environment including Node, Deno, and SSR.

Related: @vielzeug/ore · @vielzeug/forge · @vielzeug/herald

@vielzeug/ripple is part of Vielzeug and ships as a zero-dependency TypeScript package with ESM+CJS output.

Installation

# pnpm
pnpm add @vielzeug/ripple
# npm
npm install @vielzeug/ripple
# yarn
yarn add @vielzeug/ripple

Sub-paths

| Import | Purpose | | --------------------------- | ------------------------------------------------------------------------ | | @vielzeug/ripple | Core primitives and types | | @vielzeug/ripple/devtools | installDevTools, debugEffect — dev-only, tree-shaken from production | | @vielzeug/ripple/ssr | SSR tracking isolation helpers (setTrackingProvider, createAsyncProvider, withProvider, runWithProvider). Node.js only — do not import in browser builds. |

Quick Start

import { signal, computed, effect, store, watch, batch } from '@vielzeug/ripple';

// Signals
const count = signal(0);
const doubled = computed(() => count.value * 2); // Computed<number>

const sub = effect(() => {
  console.log('doubled:', doubled.value); // re-runs when count changes
});

count.value = 5; // → logs "doubled: 10"
sub.dispose();
doubled.dispose();

// Stores with typed lenses
const cart = store({ items: 0, label: 'empty' });
const items = cart.lens('items'); // Signal<number> — cached, path-scoped

items.value = 3;
console.log(cart.value); // { items: 3, label: 'empty' }

cart.replace((s) => ({ ...s, label: 'checkout' })); // replace entire state via fn
cart.reset();

// Effect options — scheduler, name
const stop = effect(() => console.log('items:', items.value), { scheduler: 'microtask', name: 'cart-logger' });
stop.dispose();

// Async resource — tracks deps and re-runs on change
import { resource } from '@vielzeug/ripple';

const userId = signal('u1');
const userState = resource(async (signal) => {
  const id = userId.value; // tracked dep
  return fetch(`/users/${id}`, { signal }).then((r) => r.json());
});
// userState.value → { status: 'loading' | 'ready' | 'error', data, error }

// Store with undo/redo history
import { storeWithHistory } from '@vielzeug/ripple';

const editor = storeWithHistory({ text: '' }, { maxHistory: 50 });
editor.patch({ text: 'hello' });
editor.patch({ text: 'hello world' });
editor.undo(); // back to 'hello'
editor.redo(); // forward to 'hello world'

Documentation

License

MIT © Helmuth Saatkamp — part of the Vielzeug monorepo.