medyll
Profile
← all projects

@medyll/idae-stator

Universal deep-reactive state via native Proxy, zero dependencies

idae-stator is the reactive state layer shared across Idae projects: a recursive Proxy tracks mutations at any depth in objects and arrays, exposing both a plain onchange callback and a standard EventTarget API, with zero dependencies.

Where it sits


flowchart TD
  P["Idae monorepo"] --> S["idae-stator"]
  S --> A["native Proxy, tracks any-depth mutations"]
  S --> B["onchange callback + EventTarget API"]
  S --> C["isomorphic: browser, Node.js, SSR"]

Overview


Lightweight, universal, deeply reactive state management library. Uses native Proxy to track mutations at any depth in objects and arrays, and exposes both onchange callbacks and a standard EventTarget API, isomorphic across Browser, Node.js and SSR.

Highlights


  • · Deep reactivity via recursive Proxy + WeakMap cache
  • · Zero dependencies, isomorphic (browser/Node/SSR)
  • · onchange callback + addEventListener dual API
TypeScriptProxy
View source →