Cross domain local storage library enabling multiple browser windows/tabs across different domains to share a single localStorage. Provides an API using ES6 promises. Version 1.0.0 is the latest stable release (in maintenance mode). Differentiators: alternative to cookies with larger storage (up to 2.49M chars), avoids request header overhead. Uses hub/client architecture with iframe postMessage communication, enforced origin permissions via RegExp patterns.
npm install cross-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize hub with permissions, then create a client, connect, set, and get a value.
Ensure hub URL uses same protocol (HTTP vs HTTPS) as client page.
Use patterns like /\.example\.com$/ to prevent origin spoofing.
Consider alternatives like postMessage-based libraries or iframe storage solutions.
Use `import { CrossStorageClient } from 'cross-storage'`.Host hub.html on the same origin as specified in permissions; ensure CORS headers if necessary.
No dependency data recorded yet.