
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
mnemosyne-synced-storage
Advanced tools
save and get data from multiple storage types and keep them in sync
This library helps storing data in between different providers and keeping them in sync. For example: you can keep data in sync between the url parameters, localStorage, and browser cache.
npm i --save mnemosyne-synced-storage
yarn add mnemosyne-synced-storage
// App.tsx
import {MultiStorageAdapter} from 'mnemosyne-synced-storage'
import {urlParamsAdapter, chromeStorageAdapter, localStorageAdapter} from 'mnemosyne-synced-storage/adapters'
import {MnemosyneProvider} from 'mnemosyne-synced-storage/react'
const App = () => {
const storageAdapter = new MultiStorageAdapter([
urlParamsAdapter(),
chromeStorageAdapter(),
localStorageAdapter(),
])
return (
<MnemosyneProvider adapter={storageAdapter}>
<MyComponent />
</MnemosyneProvider>
)
}
// MyComponent.tsx
import {useSyncedStorage} from 'mnemosyne-synced-storage/react'
const MyComponent = () => {
// use it just like "useState"
const [userId, setUserId] = useSyncedStorage<string>({key: 'user-id', defaultValue: ''})
const handleUserIdChange = (e) => setUserId(e.target.value)
return (
<input onChange={handleUserIdChange} name="user-id" />
)
}
import {MultiStorageAdapter} from 'mnemosyne-synced-storage'
import {urlParamsAdapter, chromeStorageAdapter, localStorageAdapter} from 'mnemosyne-synced-storage/adapters'
const storageAdapter = new MultiStorageAdapter([
urlParamsAdapter(),
chromeStorageAdapter(),
localStorageAdapter(),
])
storageAdapter.set('user-id', '123')
const userId = storageAdapter.get('user-id')
For the MultistorageAdapter:
FAQs
save and get data from multiple storage types and keep them in sync
The npm package mnemosyne-synced-storage receives a total of 12 weekly downloads. As such, mnemosyne-synced-storage popularity was classified as not popular.
We found that mnemosyne-synced-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.