Code Monkey home page Code Monkey logo

rescope's Introduction

ReScope

Flexible State management system based on flux architecture, stores data components & inheritable scopes

Build Status Build Status

Related packages

React HOCs, decorators & tools : react-scopes
ReScope HOCs, decorators & tools : rescope-spells

ReScope What ?

ReScope is a flexible, effective and easy to use state management system inspired by ReactJS methods.

What's the point ?

The set of data transformations of one or more applications can be divided into reusable data components with reactive state and result data. Just like React Components, for data.
Of course, that's quickly said, in an application, the data must deal with complex dependencies, different contexts, custom data bindings, and so on.

This is where reScope comes in:
RS provide a effective, flexible and familiar structure to organize and synchronize your data components.
It manage theirs dependencies, theirs scopes, sequencing, persistence, active instances & much more.

This way all the data components :

  • Only use 1 file for theirs initial state, actions & mutations
  • Only care about theirs specialized task
  • Can be easily & independently tested
  • Can have different behaviors basing on theirs scope

How ?

By using independent, specialized & serializable "Data Stores" in a Flux oriented architecture.

Stores ?

ReScope stores look like "React components for data".
Basically, they render determined data according theirs entry state, theirs dependencies, and theirs action.

Actions generate mutations of one or multiple stores,
So each Stores can manage part of, or the entire App state's determining values,
maintain intermediate, possibly asynchronous resources,
and/or finals or ready-to-render data.

Scopes ?

To deal with complex architectures like multi user or complex components systems, the Scopes allow :

  • normalized scopes for modules & views
  • to inherit & mix other Scopes,
  • automatic & chained destroy
  • ...

Samples & bootstraps here

Todo ?

  • Many more tests
  • RS use a similar states data processing structure than React Hooks & Contexts; Using React, well used hooks/memo are now better for most cases imo.

HitCount Buy Me A Coffee

*

rescope's People

Contributors

n8tz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.