lscheibel / redux-yjs-bindings

Use Yjs to sync your Redux store with other peers!
https://lscheibel.github.io/redux-yjs-bindings/
MIT License
34 stars 5 forks source link

Your plans for this library? #11

Open SebastianStehle opened 10 months ago

SebastianStehle commented 10 months ago

Hi,

I started to dig into yjs last week and was thinking about an integration to redux. Your library inspired me but didn't fulfill my requirements:

  1. Make only the necessary changes.
  2. Keep redux instances intact if nothing has been changed.
  3. Support custom domain object classes.
  4. Support custom collections.
  5. Support custom value types (e.g. Color, Vector and so on).
  6. Detect inserts and removals in arrays.

So I built my own test: https://github.com/SebastianStehle/yjs-test

it is not a library yet, but already fulfills the requirements and has a decent amount of tests to ensure it works as indented. But I think there is no need to have 2 bindings. So I would like to be interested to know about your plans:

  1. Do you still work with yjs?
  2. Are you interested to work together?

I would like to have an official redux / react binding. So the goal should be to integrate the project into the yjs organization if @dmonad agrees with that. At the moment I struggle to find a good starter for typescript libs, this is my main blocker at the moment.

EDIT: I converted it to a library: https://github.com/sebastianstehle/yjs-redux

lscheibel commented 9 months ago

Hey, thanks for the interest! Your solution looks really impressive and seems to be a plain superior version of mine here haha. I don't really work with yjs anymore so as you can see I haven't really touched this library again. As far as I can tell, adding your library to any existing Redux instance should just work, correct? If that's the case and if that is something that you will want to continue, then I think this project here has been superseded. I would likely keep the repo as it is for a while but add a big link to yours. If nothing happens for a while I might archive this repo. What do you think?

SebastianStehle commented 9 months ago

Sure, sounds good. I am talking with the guys from y-sweet (https://y-sweet.dev/js/react) to integrate it there, but I still need to fix some bugs. Once it is done I can update you and if you want you can achieve the repo and add a link. Would be great for the community :)