Introduction
ngrx-addons is a collection of addons for NgRx that extend the store with state persistence and cross-tab synchronization.
Packages
| Package | Description | npm |
|---|---|---|
@ngrx-addons/persist-state | Persist NgRx state to localStorage, sessionStorage, or custom storage | |
@ngrx-addons/sync-state | Sync NgRx state across browser tabs via Broadcast Channel API | |
@ngrx-addons/common | Shared utilities used by both libraries |
Compatibility
| Dependency | Required version |
|---|---|
| Angular | >=19.0.0 |
@ngrx/store | >=19.0.0 |
| RxJS | >=7.0.0 |
Quick Start
npm i @ngrx-addons/persist-state
# or
npm i @ngrx-addons/sync-state
Both packages include @ngrx-addons/common as a dependency — no need to install it separately.