Currently dataflow is a CLI that you install and use by itself, but I could see how a Node API would be useful. Here's some ideas of what could be exposed (and how users could use it):
[ ] Compiling .ojs code to .js
Dataflow specific compiling, not compiling ojs in general (use the compiler for that)
For plugins like webpack, esbuild, rollup, etc.
[ ] Start the dataflow run dev server with options
[ ] Export the StandardLibrary to make it install-able (basically with observablehq/htl
Currently dataflow is a CLI that you install and use by itself, but I could see how a Node API would be useful. Here's some ideas of what could be exposed (and how users could use it):
.ojs
code to.js
dataflow run
dev server with options