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

@ricardofuzeto/ws-store

v0.0.1-4

Published

Web service store library

Readme

Warning note

This library is still under development. We do not recommend using it yet since its features and/or interfaces might change in a nightly basis.

Also, it has not been tested properly yet. Test cases are still being designed as the library evolves, so its stability can't be guaranteed for now.

If you still want to use it, consider checking this library's behavior when debugging your project.

About

Implementation of the Facebook's Flux architecture for Node.js environments.

This library is supposed to assist you developing cleaner source codes by removing the need of passing data sets around every corner of your system. This is done following Flux's concept of single-direction data flow by using a store, which holds all data published to it and cascades newly modified data automatically to wherever you use them.

How to use

Setting the store up

To set the store up, just import the library:

const { store } = require('@ricardofuzeto/ws-store');

Note that you won't have to worry about setting the store manually: the library does this work by itself.

Writing data to the store

To write data to the store, use the method notify:

const { store } = require('@ricardofuzeto/ws-store');

const data = { field: 'value' };
store.notify(data);

This method just writes data to the store, creating the field property or replacing its old value by the new one.

Subscribing to store data sets

To make your entity subscribe to some field changes, use the method subscribe:

const { store } = require('@ricardofuzeto/ws-store');

const data = store.subscribe('field1', 'field2'/*, field3...*/);

console.log(data.field1);
console.log(data.field2);

In the example above, field1 and field2 would have the values defined in their last notify call. Consider the following example as right after the above:

store.notify({
  field1: 'field1 value',
  field2: 'field2 value',
});

console.log(data.field1); // field1 value
console.log(data.field2); // field2 value

store.notify({ field2: 'field1 copy value' });

console.log(data.field1); // field1 value
console.log(data.field2); // field1 copy value

Planned features

We have some suggested features for this library. However, each one must be analyzed in order for the library to remain light and usable across many environments as possible.

Our current list of suggestions:

  • Store sanitizing inspired on Garbage Collector (GC) mechanisms;
  • Store sanitizing inspired in Time-to-live (TTL) concept;

Contributors

Ricardo Fuzeto (email): idea conception and initial development stages