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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@offirmo/rx-auto

v0.2.0

Published

intelligently combines and resolve a set of generic streams (Rx.observable, promises, static values) in "async.auto" style

Downloads

18

Readme

rx-auto

intelligently combines a set of generic streams (Rx.observable, promises, static values) in "async.auto" style !

IN PROGRESS ! API is being refined on a real project.

The story

Since attending a great talk on reactive programming at dotJS Paris 2015 (oh man time flies…), I investigated in this kind of architecture.

However, manually instantiating and wiring together a set of related streams soon proved cumbersome, requiring a lot of boilerplate code.

Remembering the very convenient async.auto interface to coordinate a set of async tasks, I set of on an open-source journey to offer this great convenience to a RX-based system.

Usage

(fluency with RxJS is expected)

installation

npm install --save @offirmo/rx-auto

This lib is a state-of-the art 2017 module, correctly exposing node, UMD and ES7 flavors in their respective entries in package.json. Modern tooling should be at ease.

For users doing stuff manually:

  • several build flavors are available in /dist
  • typescript's companion lib tslib is needed (not bundled together to avoid redundancy). Exact instructions are depending your dependency manager -> you'll see errors if not present

Usage / Example

TODO nice schema and corresponding code

Notes

  • I tried hard at providing precise, meaningful errors. So experiment: you'll be told what's wrong.
  • There is a crude infinite loop detection
  • Since Observables are "templates" instantiated on-demand, rx-auto call is synchronous ! If this startle you, go back at RxJS doc to better understand Observables.

Advanced features

Contributing

PR welcome. see CONTRIBUTING.md

Licence

The UNLICENSE. Do wathever-you-want.