Skip to main content

@hex-di ecosystem

Store

Type-Safe State Management for TypeScript

Get Started
npm install @hex-di/store

:: features

Why Store?

Reactive Signals

Fine-grained reactivity with signals. Components re-render only when their specific slice changes.

Selectors

Derived state with memoized selectors. Compose complex state from simple atoms.

Middleware

Intercept state changes with typed middleware. Logging, persistence, and undo/redo built in.

DI-Aware

Stores are ports. Inject dependencies and swap implementations for testing.

Devtools

Time-travel debugging, state snapshots, and action history in the HexDI devtools.

Immutable Updates

Structural sharing with frozen state objects. No accidental mutations.

:: ecosystem

Part of the HexDI Stack

Store integrates seamlessly with the HexDI dependency injection ecosystem. Use it standalone or compose it with other libraries.

Explore HexDI