Skip to main content

Cotton Box

A flexible toolbox with different types of state managers catered to different scenarios.

Lightweight & fast

Suitable for various projects. From simple PWAs to complex applications and even time-critical games.

Declarative lifecycle management

Persist and retrieve data with lifecycle hooks such as init, didSet & didReset.

Supports async set-state functions

An escape hatch for when you need to set state in conjunction with complicated data-fetching logic.

Quick Demo