All Projects → eliekarouz → FeedbackTree

eliekarouz / FeedbackTree

Licence: MIT license
Unidirectional data flow architecture for Android

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to FeedbackTree

LinkedDataHub
The Knowledge Graph notebook. Apache license.
Stars: ✭ 150 (+971.43%)
Mutual labels:  declarative
flyteidl
Specification of the IR for Flyte workflows and tasks. Also Interfaces for all backend services. https://docs.flyte.org/projects/flyteidl/en/stable/
Stars: ✭ 27 (+92.86%)
Mutual labels:  declarative
vuo
A realtime visual programming language for interactive media.
Stars: ✭ 103 (+635.71%)
Mutual labels:  declarative
Opa
An open source, general-purpose policy engine.
Stars: ✭ 5,939 (+42321.43%)
Mutual labels:  declarative
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+12935.71%)
Mutual labels:  declarative
react-is-scrolling
Simply detect if users are scrolling in your components in a declarative API
Stars: ✭ 17 (+21.43%)
Mutual labels:  declarative
rugl
Declarative Stateless OpenGL in Rust
Stars: ✭ 39 (+178.57%)
Mutual labels:  declarative
bem-react-boilerplate
DEPRECATED! A bare minimum frontend boilerplate based on create-react-app and bem-react-core.
Stars: ✭ 32 (+128.57%)
Mutual labels:  declarative
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Stars: ✭ 179,407 (+1281378.57%)
Mutual labels:  declarative
MoleculeJS
A library for creating fast and reactive Custom Elements
Stars: ✭ 39 (+178.57%)
Mutual labels:  declarative
Walk
A Windows GUI toolkit for the Go Programming Language
Stars: ✭ 5,813 (+41421.43%)
Mutual labels:  declarative
Plotly.py
The interactive graphing library for Python (includes Plotly Express) ✨
Stars: ✭ 10,701 (+76335.71%)
Mutual labels:  declarative
dclareForMPS
Adding declarative, reactive and incremental rules to MPS
Stars: ✭ 21 (+50%)
Mutual labels:  declarative
match-rules
A tiny 1kB zero dependency JavaScript utility that lets you write your conditional business logic in a declarative way (React like).
Stars: ✭ 39 (+178.57%)
Mutual labels:  declarative
react-nonav
Experimental React Native declarative navigation
Stars: ✭ 58 (+314.29%)
Mutual labels:  declarative
vue-pseudo-window
🖼 Declaratively interface window/document/body in your Vue template
Stars: ✭ 28 (+100%)
Mutual labels:  declarative
sparrowql
Declarative MongoDB aggregations.
Stars: ✭ 28 (+100%)
Mutual labels:  declarative
alia
a declarative UI library for C++
Stars: ✭ 76 (+442.86%)
Mutual labels:  declarative
sugar
Declarative HTTP client for Golang
Stars: ✭ 25 (+78.57%)
Mutual labels:  declarative
bs-declaredom
Strongly typed declarative markup for the DOM and CSS
Stars: ✭ 66 (+371.43%)
Mutual labels:  declarative

FeedbackTree

The API is not stable yet as we are still experimenting with the concept.

FeedbackTree is a unidirectional data flow architecture for Android which relies heavily on state mahines to perform all types of side effects, like network calls, bluetooth, UI updates as well as navigation.

Why FeedbackTree?

  • Organizes the code around the business rules.
  • Reactive Declarative UI
  • Built-in navigation
  • Logic can be easily unit tested
    • Most logic is placed in the Stepper which is pure function.
    • Side effect are isolated and testing can be done with a TestScheduler.

Core concepts

  • Business rules are wrapped in a Flow. You kickstart the Flow with some input and wait for the output to be produced.
  • The Flow is driven by a state machine.
  • You emit Events to advance the Flow.
  • Stepper is used to progress or complete a Flow based on the Events received. It is a pure function which makes unit testing very straightforward.
  • Feedback loops are used separate business logic from side effects like network calls, database operations, timers, bluetooth...

Installation

The project recently migrated from jitpack to Maven Central

Add it in your root build.gradle:

allprojects {
  repositories {
    mavenCentral()
  }
}

Android Projects

Add this to your build.gradle (app)

dependencies {
  implementation "com.github.eliekarouz.feedbacktree:feedbacktree:0.13.1"
  implementation "com.github.eliekarouz.feedbacktree:core:0.13.1"
}

Proguard Rules

You need to add this to your proguard-rules.pro:

-keep class com.feedbacktree**

Kotlin Multiplatform

We are only supporting the concept of Step and Stepper in Kotlin multiplatform (iOS/Android only).
We might provide additional multiplatform support in the future. To include these concepts to a multipatform module, add this dependency to commonMain.

dependencies {
    api "com.github.eliekarouz.feedbacktree:core:0.13.1"
}

If you are targeting iOS you will also need to export the dependencies:

framework("Example") {
    export "com.github.eliekarouz.feedbacktree:core:0.13.1"
    transitiveExport = true
}

Versions

Kotlin FeedbackTree
1.3.72 0.10.2
1.4.0 0.11
1.4.10 0.11.1
1.4.30 0.13.1

Acknowledgements

The following repos were a great source of inspiration:

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].