Storage Foundation API
- Category
- Offline / Storage
- Type
- New or changed feature
- Status
- No longer pursuing (Chrome No longer pursuing)
- Intent stage
- Origin Trial
WPT details: https://wpt.fyi/results/native-io
Summary
Storage Foundation API is a storage API that resembles a very basic filesystem, with direct access to stored data through buffers and offsets. Our goal is to give developers flexibility by providing generic, simple, and performant primitives upon which they can build higher-level components. It's particularly well suited for Wasm-based libraries and applications that want to use custom storage algorithms to fine-tune execution speed and memory usage.
Motivation
A generic, performant and low-level storage API would enable web developers to create or port storage libraries that offer the right guarantees and interface for their application. Pushing the storage layer onto the client-side allows developers to rely on interfaces that are cross-platform and widens the possible APIs from the ones currently provided by the Web Platform to the ones that could be ported or created.
Standards & signals
- Firefox: Closed Without a Position — Supportive of a low-level storage API, opposed to minting a new API instead of taking a holistic approach to file access
- Safari: Negative — No opposition to offering efficient access to files, strongly opposed to minting a new API instead of augmenting an existing one.
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=914488
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=native-io
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Storage%20Foundation%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Storage%20Foundation%20API
- Baseline status: https://webstatus.dev/?q=Storage%20Foundation%20API
Explainers: https://github.com/WICG/storage-foundation-api-explainer