Proxy-State is a simple package that provides an easy API for managing and subscribing to global state.

Your DOM

Manipulating the DOM can happen by applying subscribers to your state object. You can then perform side-effects via opting-in.

Your State

The state of your object can be set at all times, and keeps track regardless of whether any listeners are present.