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

rxdl-js

v0.0.9

Published

experimental js data store

Readme

rxdl-js (reactive data layer)

Keeping data consistent and in sync in the front-end can be painful, even when using robust frameworks, this is an experimental solution, based on RxJS, to simplify the consumption of typical REST data APIs in front-end applications. Ideally this library could be plugged into any javascript app, and adapted to a wide range of back- and front-end stacks.

The library is developed in typescript so it can be compiled to use in any javascript application.

The initial ideas behind it (subject to change) are the following:

  • Structure apps around CRUD models/resources (a la Rails).
  • Keep an in memory DataStore to avoid remote requests when possible.
  • Instead of returning POJOs or other forms of data when queried by -say- components, the DataStore returns RxJS subjects, so that the components (observers) can be notified of changes.
  • Have a separate (and optional) DataSource adapter, to customize the connection to the server API (make requests, serialize and deserialize data, etc).
  • The back-end need only implement a typical REST style API

Roadmap

  • Create a sample DataStore implementation for basic CRUD
  • Create a sample DataSource implementation for basic CRUD
  • Add paging and filtering
  • Create TypeDoc documentation
  • Create a sample application
  • Put tests on continuous delivery
  • Publish on npm
  • Add support for relationships
  • Add concurrency restrictions for deletion and editing
  • Create a generic DataNotifier (independent from Rails)

Usage [IDEA, NOT YET IMPLEMENTED]

  1. Install package: npm install --save rxdl-js

  2. Initialize the data store in your app: ```javascript // On app startup let RxDL = require('rxdl');

    // Initialize the objects let dataSource = new RDL.DataSource(); let dataCtrl = new RDL.DataController();

    // Set up the data store dataCtrl.source = dataSource;

    // Define a resource in the store dataCtrl.defineResource('users'); ```

  3. Subscribe to a resource somewhere in your app ```javascript // Initialize a bound object let user = { id: '', type: '', name: '', email: '' };

    // Subscribe to the resource (an RxJS BehaviorSubject) dataStore.find('user', '123') .subscribe((result) => user.apply(result)); ```

  4. Publish changes to your model from somewhere else ```javascript // Create an object with -say- a web form let user = { id: '123', type: 'user', name: 'New Name', email: '[email protected]' };

    // Publish the change dataStore.update(user); ```

  5. When the edit component changes the user's attrs, the database and show component will also be updated.