is a minimal Dataflow programming engine
Is a minimal Dataflow programming engine.
Try dflow now! (on Heroku).
Table Of Contents:
dflow is beta software. The editor is usable but with no css (help me!) and collaborative editing feature is working but buggy (I am proud of my bugs and they will be fixed in version 1.0 :). The engine is almost stable.
$ bower install dflow
$ npm install dflow -g
However, if you need to require the dflow engine in your package, or you need to browserify it, or even you want to use the dflow cli in your npm scripts, or whatever, you can install dflow locally with
$ npm install dflow
If you want start hacking on dflow run
$ git clone$ cd dflow$ npm install$ npm start
which will clone repo, install deps, and start the dflow cli. Then point your browser to http://localhost:3000 and edit your graph. Note that by opening another browser window you can try the collaborative editing feature, powered by Socket.IO!
npm start will edit a graph in memory, if you want to edit your graph and save it to a file, for instance graph.json, launch
$ npm start -- graph.json
The following simple graph is executed client side by dflow engine.
An example of dflow in a browser context, testing DOM manipulation.
Node.js Stream Playground first example is
var fs = require"fs";// Read FilefscreateReadStream"input/people.json"// Write FilepipefscreateWriteStream"output/people.json";
Also every dflow graph is a function itself, so why not packaging it and put it on npm!?
It is really easy: create your dflow graph and save it to a JSON file, index.json for instance; then launch
npm init as usual and when prompted for the entry point write index.json.
Simple as that, see packagedGraph as an example.
dflow is MIT licensed.
It is developed in my spare time and, as far as I know, by now I am my only user. By the way, I got a stimulating feedback by Stamplay's founder, who is pretty much interested in using dflow maybe in the future. Grazie Giuliano, I hope you all the best.
I wrote few times a Dataflow engine, the first one was PNI (Perl Node Interface) and the design evolved until I could say confidently that dflow is here to stay.
If this is also your vision or you just want to use dflow, contact me.
My goal is to say to a dflow user:
Mamma mia! Did you achieve that with dflow?