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

immview

v3.2.10

Published

**Immview** is a library to create `Domain`s - *non-visual components* - similar to flux stores, exposing their **state** (through `Atom`s) or emitting **signals** (through `Observable`s) and having specific to their concerns **actions**. Their primary ro

Downloads

107

Readme

Immview 3

Immview is a library to create Domains - non-visual components - similar to flux stores, exposing their state (through Atoms) or emitting signals (through Observables) and having specific to their concerns actions. Their primary role is to encapsulate a concern and to be the only thing exported from a javascript module or modules that deal with the concern.

It completely replaces any flux implementation or Redux, although surely could be integrated with one easily.

All Domains must be provided with a single stream of values (Atom or Observable class instance), but not all Observables and Atoms must be attached to a Domain - you can perform many transformations on a source before it is exposed through a Domain. These transformations are done with operators - functions that exist on these classes prototypes.

TypeScript

Immview has been built with TypeScript. You do not have to use it, but some editors may offer better experience.

For RxJS users

If you are familiar with RxJS (especially v5), an Immview taste of Observable does not have a different meaning or role, although behaviour differs slightly as it is more similar to RxJS's Subject - you can have many observers for one Observable or Atom. Also, just as RxJS 5, it mimics TC39 Observable proposal interface.

Quick overview

const Foos = new Observable()
const FooSenderDomain = Domain.create(Foos, {
  send() {
    Foos.next('foo')
  }
})

// register observers
FooSenderDomain.subscribe(v => console.log(v))
FooSenderDomain.map(v => v + 'bar').subscribe(v => console.log(v))

FooSenderDomain.send()
// prints: foo
// prints: foobar

Installation

Get it on npm

npm i -S immview

or with yarn

yarn add immview

Docs

Visit arturkulig.github.io/immview for documentation.

Presentation

If you are using React to create presentation layer of your app you should check immview-react-connect

Read more

For 2.x versions

For 1.x versions