Babydux: Paper-thin, 100% typesafe Redux for babies
github.com
github.com
Also, while this appears to be _inspired_ by Redux, it's definitely not the same as Redux. In particular, it has separate event emitters for each top-level key in the state instead of a single change event, no middleware, no store enhancers, etc.
Babydux is certainly a Redux. From the Readme:
> Babydux is like Redux, but reducers are already baked-in. Babydux automatically creates an action and a reducer for each key on your state, so you don't have to write tedious boilerplate. Babydux still emits Actions under the hood (which you can listen on to produce effects), but gives you an incredibly simple get/set API that covers most use cases.
There is an undocumented top-level emitter (`onAll`), but I'm not sure there is a use case for it where targeted emitters wouldn't be a better fit.
There is certainly middleware support (see https://github.com/bcherny/babydux#effects). Unlike Redux, middleware fires after the state has been updated, not before. The effect is to fold the concepts of middleware and subscriptions into one. I want to keep the API as simple as possible, but I could see a future where before-write middleware could be a good fit for simulating transactions and preventing writing bad state to the global store.