-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Web][Feature request][OPFS] Please add "Origin-private filesystem" support, allowing native DBs on the web #51781
Comments
Hello @gintominto5329 – where exactly do you want support added? in |
Yes sir,
Because it already has other
thanks, |
Note that the sync API is only supported in Web Workers, and Flutter does not support Web Workers. |
maybe js-side abstraction, could be an answer here |
Any updates? |
See https://github.com/dart-lang/web/blob/main/lib/src/dom/fs.dart We're going to be moving all of our support to this package in the future. Improvements to |
I checked out So when, and how, could we use the new package. thanks |
hello,
Currently, the recommended client-side persistence/storage solution, on web, is
IndexedDB
, but its API is quite-bad, I never found anyone using it directly, without abstractions,So a new solution has been released by the web-sters, called "Origin-private FileSystem", which has support in all the browsers, except "Samsung Internet"(mobile), and "Internet Explorer"(desktop), even the slow-mover Safari supports it,
It allows the code(js/wasm), to access a filesystem-like, persistent, high-performance, and origin-private, storage medium,
It just behaves as a filesystem, with files and directories, etc; but the implementation is vendor dependent, maybe inside another database, but the user gets a posix-inspired, sync, as well as async, filesystem-like API,
The performance capabilities of OPFS can be sensed from the fact that, it was originally developed to provide the persistence capabilities to sqlite.wasm, on the web, the same globally known embedded-database,
Specification is available at spec.whatwg.org
thanks,
The text was updated successfully, but these errors were encountered: