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

rumblejs

v1.0.8

Published

Reactive Data Storage in the browser.

Readme

RumbleJS

Reactive Storage wrapped around either localStorage or sessionStorage, in the browser. you chooose which engine fits your needs.

It works like this:

import SetupStorage from "rumblejs";

const rls = SetupStorage(localStorage);

const readSubscriber = rls.onRead("user", (event) => {
    console.log("User readed", event.value);
});

const writeSubscriber = rls.onWrite("user", (event) => {
    console.log(event.previous, event.value);
});

const removeSubscriber = rls.onRemove("user", (event) => {
    console.log("User removed. Need to signin again");
});

const clearSubscriber = rls.onClear(() => {
    console.log("Storage has been cleared");
});

rls.setItem("user", "Paul Logan");
rls.getItem("user");
rls.removeItem("user");

readSubscriber.cancel();
writeSubscriber.cancel();
removeSubscriber.cancel();
clearSubscriber.cancel();
/// same for other subscribers

How it works:

RumbleJS encapsulates either localStorage or sessionStorage to provide the same functionality as localStorage or sessionStorage, but is able to react to changes applied to the keys stored by it, on demand. Events are passed through the sender associated with the document, to allow function calls without latency or promise.

Available functions and attributes

readonly length: number

Returns the total number of keys available in the storage

clear(): void

Clears the storage, and triggers the clear event. Interceptable with onClear.

getItem(key: string): string | null

Returns the current value associated with the given key, or null if the given key does not exist

getString(key: string): string | null

Returns the current value associated with the given key, or null if the given key does not exist

getObject(key: string): any | null

Returns the current value associated with the given key with automatic conversion to Javascript Object with JSON.parse, or null if the given key does not exist

getNumber(key: string): number | null

Returns the current value associated with the given key with automatic parsing to number with parseFloat, or null if the given key does not exist

getBoolean(key: string): boolean

Returns the current value associated with the given key with automatic parsing to boolean by checking if the value is equal to true or 1, or false if the given key does not exist

getMatches(pattern: string | RegExp): { key: string, value: string | null }[]

Returns every key value pair where the key match the given pattern. if each key-pair, the value might be null

getNonNullMatches(pattern: string | RegExp): { key: string, value: string }[]

Returns every key value pair where the key match the given pattern. if each key-pair, but skip keys with null values.

key(index: number): string | null

Return the key at the specified index

removeItem(key: string): void

Remove the specified key from the storage.

setItem(key: string, value: string): void

Append the given key value to storage.

onRead(key: SubscribeParams['key'], listener: SubscribeParams['listener']): Subscription

onWrite(key: SubscribeParams['key'], listener: SubscribeParams['listener']): Subscription

onRemove(key: SubscribeParams['key'], listener: SubscribeParams['listener']): Subscription

onClear(listener: SubscribeParams['listener']): Subscription

on(params: SubscribeParams): Subscription;