https://svelte.dev/tutorial/custom-stores
In fact, their API is so similar to Redux and RXJS that I think you might not even need to write any glue-code.
https://redux.js.org/api/store/#subscribelistener https://rxjs.dev/guide/observable#subscribing-to-observables