Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
automerge-repo-storage-browserfs
Advanced tools
an automerge repo storage provider for the browser's file system api (including origin private file system)
An Automerge Repo Storage adapter for using a Directory of the browser's File System API as storage.
it uses the same speedy optimized filesystem layout as Automerge's own nodefs adapter, and is tested against the same storage adapter tests as the adapters that come with automerge-repo in Chromium and Firefox.
pnpm add automerge-repo-storage-browser-file-system
import {BrowserWebSocketClientAdapter} from "@automerge/automerge-repo-network-websocket"
import BrowserFileSystemAdapter from "automerge-repo-storage-browser-file-system"
import {Repo} from "@automerge/automerge-repo"
export default async function startAutomerge() {
const repo = new Repo({
storage: new BrowserFileSystemAdapter("automerge"), // or pass a FileSystemDirectoryHandle
network: [new BrowserWebSocketClientAdapter("wss://sync.automerge.org")],
})
return repo
}
for general info on automerge repo, see the fabulous automerge website
showDirectoryPicker
or the Origin private file
system's
navigator.storage.getDirectory()
.because of a missing API in Safari's implementation of the Origin private file system, this storage mechanism does not currently work in Safari. there appears to be no indication that they will ever add support for it, but who knows.
perhaps you would find it enjoyable to submit a pull request that uses a WebWorker to do the writing in Safari?
FAQs
an automerge repo storage provider for the browser's file system api (including origin private file system)
We found that automerge-repo-storage-browserfs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.