A storage engine for redux-persist that uses the WebExtensions Storage API (chrome.storage) for persisting Redux state in browser extensions. Version 1.0.2 is the latest stable release, with no active development since 2019. It provides two engines: localStorage and syncStorage corresponding to chrome.storage.local and chrome.storage.sync. Differentiates from other engines by targeting WebExtensions specifically, leveraging the asynchronous, extension-specific storage that persists across browser sessions and syncs across devices when using sync storage.
npm install redux-persist-webextension-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures redux-persist with a WebExtension local storage engine for persisting Redux state in a browser extension.
Test only in supported extension environments; not compatible with regular web pages or Node.js.
Import with renaming: import { localStorage as webtLocalStorage } from 'redux-persist-webextension-storage'Check redux-persist changelog; if breaking changes, consider using an alternative engine or fork.
Run npm install redux-persist-webextension-storage --save
Use only inside browser extension pages (background script, popup, etc.) or mock chrome.storage for testing.
Use a bundler that can handle ESM (e.g., Webpack, Rollup) or transpile the package if needed.