All Projects → betula → realar

betula / realar

Licence: MIT license
5 kB Advanced state manager for React

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to realar

react-mobx-router5
React components for routing solution using router5 and mobx
Stars: ✭ 58 (+41.46%)
Mutual labels:  reactive, observable, reactive-programming
Redux Most
Most.js based middleware for Redux. Handle async actions with monadic streams & reactive programming.
Stars: ✭ 137 (+234.15%)
Mutual labels:  reactive, observable, reactive-programming
Rocket.jl
Functional reactive programming extensions library for Julia
Stars: ✭ 69 (+68.29%)
Mutual labels:  reactive, observable, reactive-programming
mutable
State containers with dirty checking and more
Stars: ✭ 32 (-21.95%)
Mutual labels:  model, observable, data-flow
Ayanami
🍭 A better way to react with state
Stars: ✭ 129 (+214.63%)
Mutual labels:  reactive, decorators, reactive-programming
Kefir
A Reactive Programming library for JavaScript
Stars: ✭ 1,769 (+4214.63%)
Mutual labels:  reactive, observable
Combineexamples
Getting started with Apple Combine
Stars: ✭ 145 (+253.66%)
Mutual labels:  reactive, reactive-programming
Reactive Ms Example
An educational project to learn reactive programming with Spring 5
Stars: ✭ 157 (+282.93%)
Mutual labels:  reactive, reactive-programming
Fpgo
Monad, Functional Programming features for Golang
Stars: ✭ 165 (+302.44%)
Mutual labels:  reactive, reactive-programming
Combine Mvvm
Sample project with Combine & UIKit framework, MVVM architecture
Stars: ✭ 132 (+221.95%)
Mutual labels:  reactive, reactive-programming
Mag.js
MagJS - Modular Application Glue
Stars: ✭ 157 (+282.93%)
Mutual labels:  reactive, observable
Redux Callbag
🕺🕺Redux middleware for action side effects with callbag 👉< 1KB
Stars: ✭ 177 (+331.71%)
Mutual labels:  reactive, observable
Marble
Marble.js - functional reactive Node.js framework for building server-side applications, based on TypeScript and RxJS.
Stars: ✭ 1,947 (+4648.78%)
Mutual labels:  reactive, observable
Qactive
Reactive queryable observable framework.
Stars: ✭ 147 (+258.54%)
Mutual labels:  reactive, observable
Beicon
Reactive Streams for ClojureScript
Stars: ✭ 133 (+224.39%)
Mutual labels:  reactive, reactive-programming
Awesome Reactive Programming
A repository for sharing all the resources available on Reactive Programming and Reactive Systems
Stars: ✭ 163 (+297.56%)
Mutual labels:  reactive, reactive-programming
Pharmacist
Builds observables from events.
Stars: ✭ 221 (+439.02%)
Mutual labels:  observable, reactive-programming
knockout-decorators
Decorators for use Knockout JS in TypeScript and ESNext environments
Stars: ✭ 45 (+9.76%)
Mutual labels:  decorators, observable
ng-observe
Angular reactivity streamlined...
Stars: ✭ 65 (+58.54%)
Mutual labels:  observable, reactive-programming
Rsocket Rpc Java
Standard RSocket RPC Java Implementation
Stars: ✭ 126 (+207.32%)
Mutual labels:  reactive, reactive-programming

Realar

npm version npm bundle size code coverage typescript supported

Realar state manager targeted to all scale applications up to complex enterprise solutions on a modular architecture. And has an incredible small size 5 kB for all you need.

Usage

You can make stores and "actions" play on runkit

const store = value(0)

const add = store.updater((state, num: number) => state + num)
const inc = store.updater(state => state + 1)

And bind to React easily play on codesandbox

const App = () => {
  const state = useValue(store)

  return <p>{state}
    <button onClick={inc}>+</button>
  </p>
}

You can make streams play on runkit

const addendum = value('0')
  .pre((ev: ChangeEvent<HTMLInputElement>) => ev.target.value)

const sum = signal()
  .map(() => +addendum.val)
  .filter()
  .to(add)

And bind to React play on codesandbox

const App = () => {
  const addendumState = useValue(addendum)

  return <p>
    <input value={addendumState} onChange={addendum} />
    <button onClick={sum}>sum</button>
  </p>
}

You can use classes with decorators

class Counter {
  @prop state = 0

  add = (num) => this.state += num
  inc = () => this.add(1)
}

And bind to React play on codesandbox

const App = observe(() => {
  const { state, inc } = useLocal(Counter)

  return <p>{state}
    <button onClick={inc}>+</button>
  </p>
})

And you can use it together play on codesandbox

const counter = new Counter()

const double = value.from(() => counter.state)
  .map(num => num * 2)

export const App = observe(() => (
  <p>
    {double.val}
    <button onClick={counter.inc}>+</button>
  </p>
))

Features

  • Logic free React components. Perfect instruments for moving all component logic outside. Your React component will be clean from any unnecessary code, only view, only JSX, no more.
  • Lightweight and Fast. Less then 5kB. Aims at the smallest size of the resulting bundle. And only parts are updated in which is really necessary to make changes.
  • Value and Signal is the big elephants remind Store and Action from Redux. Allows you to perform familiar coding techniques, and also add many modern features.
  • Declarative and Imperative both supported.
  • Stream event and value programming.
  • Modular Architecture. Possibilities for the implementation of two levels of logic availability. Shared stateful is available for any part of your app. And React component local logic.
  • Decorators for classes lovers. Support OOP as one of the primary syntaxes. The implementation of transparent functional reactive programming (TFRP) with React (looks similar to Mobx). And the babel plugin for automatic wrap all arrow JSX functions for the best clean code.
  • Already in production on the Card of the Day React Native app 👍

Documentation

Installation

npm install realar
# or
yarn add realar

Demos

  • Hello - shared state demonstration.
  • Todos - todomvc implementation.
  • Jest - unit test example.

In Production

Articles

Sponsor

I’m looking for a sponsor because my hands have already been burning from continuing development non-stop! I want to make a beautiful form framework and a streams framework for nodes, with core on Realar. I would like to start recording teaching videos about all actual questions on the modern frontend field. And I dream of writing an open book. If you know any methods for searching sponsors, or if some of your friends know something, I urge you to tell me [email protected]. It will be your great contribution to make a better world!

Enjoy and happy coding!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].