Sprites JavaScript Reactive Framework

The reactive framework. Values hold state, calculations read and derive, and the structure grows and shrinks with the data. The core holds the values, calculations, structure and context; the modules around it add logic, data, defaults and maths over those values. Choose a module below.

Reactive Modules

Sprites.Object

Object helpers: Read builds a read-only object from fields, Field views one field two ways, With copies with one field replaced, At reads a field by a reactive key. For a two-way object, use Sprites.Reactive.Object.

Sprites.Optional

A default for a value that may be missing, and content shown while it is present or absent.

Sprites.Browser

The browser viewport as reactive values: keep width and height following the window as it resizes, through a shared driver.

Sprites.Keyboard

The keyboard as reactive values: keep a value following a key, true while it is down, through a shared driver. The companion to Sprites.Browser.

Sprites.Animate

Time based drivers: step a value up on an interval, or write a value once after a delay, each a shared driver that starts on request and clears when it goes.