EveryState
Path-based state management with wildcard subscriptions, async support, and state-driven CSS.
Click the button. Watch the state update. That's the whole API.
@everystate/core
Reactive store with path-based get/set/subscribe, wildcard listeners, async operations, and query client. ~6 KB, zero dependencies.
@everystate/css
State-driven CSS — write styles as state paths, compile to real CSS rules. Reactive design tokens, typed validation, WCAG contrast enforcement.
@everystate/event-test
Event-sequence testing for EveryState stores. Trigger state changes and assert values, types, and event firings in a chainable API.
@everystate/examples
Working examples: counters, dashboards, async patterns, data tables. Each example is a standalone HTML file.
Ecosystem
| Package | Version | Description |
|---|---|---|
| @everystate/core | 1.0.0 | Path-based state management |
| @everystate/react | 1.0.0 | React adapter hooks |
| @everystate/css | 1.0.0 | CSS-native state via custom properties |
| @everystate/event-test | 1.0.0 | Event-sequence testing |
| @everystate/examples | 1.0.0 | Example applications |
| @everystate/aliases | 1.0.0 | DOM aliases for vanilla JS |
Why EveryState?
- One primitive:
get,set,subscribe. That's the whole API. - Path-based: nested state via dot paths:
user.profile.name - Wildcards:
user.*fires on any child change,*fires on everything - Async built-in:
setAsyncmanages loading/success/error states automatically - Framework-free: works in any browser, with any framework, or with none
- Zero dependencies: ~6 KB total, pure JavaScript
License
Every package is MIT licensed. @everystate/test has a proprietary license (free for personal/OSS use).