Settings

Theme

Designing a Dataflow Editor with TypeScript and React

research.protocol.ai

75 points by joelg 5 years ago · 19 comments

Reader

ACAVJW4H 5 years ago

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

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

nefasti 5 years ago

"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 5 years ago

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 5 years ago

    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 5 years ago

      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 5 years ago

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

FractalHQ 5 years ago

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

stevenpetryk 5 years ago

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