projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.61k stars 1.17k forks source link

Serialization schema #662

Open dev-dsp opened 4 years ago

dev-dsp commented 4 years ago

Hi! Recently found this project, looks very cool! My question is whether there is some schema defined for serialized nodes? I'd like to store "patches" in database and load them in react app as json using backend server. Is it somehow possible? Thanks in advance!

dylanvorster commented 3 years ago

This can be achieved using typescript types and/or json schema validation. It might be good to build in a sub module that can do this, or build it into the core