asg017 / dataflow

An experimental self-hosted Observable notebook editor, with support for FileAttachments, Secrets, custom standard libraries, and more!

Home Page:https://alexgarcia.xyz/dataflow/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node API

asg017 opened this issue · comments

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

fyi running dataflow under electron with nodeIntegration: true is a quick way to achieve this