caffeine 1.0.0 copy "caffeine: ^1.0.0" to clipboard
caffeine: ^1.0.0 copied to clipboard

A reactive microstore for Dart with managed side effects. Pure update functions, explicit effect streams, lazy derived state, and glitch-free reactivity — inspired by The Elm Architecture (TEA).

1.0.0 #

Initial release.

  • Store<S, E> — reactive state machine with pure update function and explicit effect streams
  • Stateful<S> — lazy derived reactive value with automatic dependency tracking via Snapshot
  • Scope — runtime that manages the reactive graph, dispatches events, executes effects, and controls store lifecycles
  • StoreOverride — transparent store replacement for dependency injection and testing
  • Scope forking for hierarchical store lifetime management
  • External stream subscriptions via Store's subscribe parameter
  • Glitch-free update compression: every Stateful node recomputes at most once per event cycle regardless of how many upstream dependencies changed
0
likes
140
points
104
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A reactive microstore for Dart with managed side effects. Pure update functions, explicit effect streams, lazy derived state, and glitch-free reactivity — inspired by The Elm Architecture (TEA).

Repository (GitHub)
View/report issues

Topics

#state-management #reactive #store #elm

License

MIT (license)

Dependencies

meta

More

Packages that depend on caffeine