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

react-type-r

v3.0.0-a001

Published

Type-R bindings for React

Downloads

4

Readme

React-MVx

React-MVx is the MVVM JS application framework built upon three technologies:

  • React as a view layer.
  • Type-R as a data layer and UI state management.
  • NestedLink for two-way data binding.

Contrary to the popular React approaches, React-MVx does not try to avoid the distributed mutable application state. Instead, it is focused on bringing stateful components capabilities to their maximum.

Key features:

  • Run-time type asserts. Application state defined with Type-R is protected from improper assignments, including incompatible JSON coming from the network.
  • Speed. Collections of 10-20K items are being parsed and processed with sub-second delays.
  • Complex state support. Component's state is described with Type-R Record and its attributes can be composed of complex types, including other records and collections with indefinite nesting.
  • Automatic serialization. All state elements are serializable to JSON by default with no additional effort.
  • id-references support. References by object ids in JSON are resolved automatically, including the situation with multiple collections of records holding cross-references which are being fetched independently.
  • Deeply observable changes. Updates are executed in transactions allowing the bunch of changes to be made as reactions on other changes, without introducing extra change events and renders.
  • Mutable data structures with pure render support. For some reason, many people believes that it's impossible.
  • Two-way data binding. Dealing with complex forms is the strong side of the React-MVx.
  • Forms validation. You'll get it for free, just attach the check to the state's attribute.
  • Layered application state. You can create and dispose as many stores as you want dynamically. In many cases, you don't even need the store - there's no any difference in managing the component's local state and the store.
  • MVVM pattern support. MVVM scales perfectly, and we believe its support is a must.

Examples

Documentation

Installation & Requirements

Supported browsers: Chrome, Firefox, Safari, IE10+.

Requires react, prop-types, and type-r as peer dependencies. Installation (assuming that React is installed):

npm install react react-mvx type-r prop-types --save-dev

The best way to start is to use the boilerplate which already has babel, webpack, and the minimal set of required dependencies configured.

TypeScript is unsupported (yet) but may work.

Developer tools

The modified version of the React Developer Tools with fixes required for React-MVx is available in the Chrome Web Store.

  • Fixed an exception when inspecting the props with custom getters in prototype.
  • Collections are displayed as an array (system fields hidden).
  • Record is displayed as an object (system fields hidden).
  • Component's state (which is the Record) is displayed as an object.

MIT License. Used and supported by Volicon and Verizon Digital Media Services.