Flow based programming in javascript, with signals and effects
npm install simplyflowSimplyFlow implements flow based programming in javascript using signals and effects. It als implements reactive databinding.
SimplyFlow is intended to be used with SimplyView
, but can also be used standalone. SimplyFlow is experimental and, once vetted,
will be integrated into SimplyView.
``shell`
npm install simplyflow
or using GIT
`shell`
git clone https://github.com/SimplyEdit/simplyflow.git
Import the functions you need like this:
`javascript
import {signal, effect, batch} from 'simplyflow/src/state.mjs'
import {bind} from 'simplyflow/src/bind.mjs'
import {model, paging, sort, filter, columns} from 'simplyflow/src/model.mjs'
let mySignal = signal({value:1})
bind({
root: mySignal
})
let myModel = model({
data: mySignal
})
`
Or include the entire set of code from a cdn like this:
``
In the latter case you can access the functions like this:
`javascript``
let mySignal = simply.state.signal({value: 1})
simply.bind({
root: mySignal
})
let myModel = simply.flow.model({
data: mySignal
})
Read more about the bundled libraries here:
- simply.bind
- simply.model
- simply.state
Or check the examples for more information.
MIT © Muze.nl
Contributions are welcome, but make sure that all code is MIT licensed. If you want to send a merge request, please make sure that there is a ticket that shows the bug/feature and reference it. If you find any problem, please do file a ticket, but you should not expect a timely resolution. This project is still very experimental, don't use it in production unless you are ready to fix problems yourself.