A minimal Dataflow programming engine
With npm do
npm install dflow
Try this in your HTML page
<script type="importmap">
{ "imports": { "dflow": "https://unpkg.com/dflow" } }
</script>
<script type="module">
import { Dflow } from "dflow";
const helloWorld = {
kind: "helloWorld",
run() {
console.log("Hello, World!");
}
};
// Create a Dflow instance passing the node defined above.
const dflow = new Dflow([helloWorld]);
// Create a helloWorld node.
dflow.node("helloWorld");
// run graph
dflow.run();
</script>
See: