Settings

Theme

Designing a Dataflow Editor with TypeScript and React

research.protocol.ai

75 points by joelg · 19 comments

Reader

6 threads
ACAVJW4H

These look relevant if anyone is interested in developing node based tools with react

https://reactflow.dev https://flume.dev

nefasti

"Our broader goal in writing this up was to illustrate some higher-level TypeScript features and type-driven design patterns in the practical context of modern web development."

Is type-driven design a think? For me it's just development ...

isuckatcoding

The one thing that I always wonder about things like this which is basically Figma or Miro is how you persist / store the coordinate of the nodes given the user might have different screen sizes or resize their window etc.

  • Blahah

    the screen, or rather whatever container is rendered on the page, is just a viewport to an underlying canvas. The canvas can be zoomed and panned, and the focus of the panning and level of the zoom can be synced across machines. People with different size or shape viewports see slightly different cropping, but they are looking at a synchronised canvas through that viewport.

    • isuckatcoding

      Hmm Right that makes sense but you have to give some width/height to the container right?

      I guess you can set it something absurdly large.

nargella

Love to see other flow based applications. Fluxion (https://fluxion.app) was my baby for a long time.

FractalHQ

Nice, too bad it’s React. Once you go Svelte you can’t go back.

stevenpetryk

For anyone intending to use this in production, note that it is inoperable to people who can't use mice (which can be caused by any number of disabilities or conditions).

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection