Using IDBFS without Emscripten

40 views
Skip to first unread message

Camil Staps

unread,
Sep 5, 2019, 4:01:17 AM9/5/19
to emscripten-discuss
Hello all,

I do not use Emscripten, but am looking for a way to mimic a POSIX file system in the browser and got onto https://emscripten.org/docs/porting/files/index.html. Do you guys know if it should be reasonably possible to use the IDBFS file system without compiling your whole application with Emscripten, and if so, what would be the preferred way to get the supporting library? I have looked at what I believe to be the source code (https://github.com/emscripten-core/emscripten/blob/incoming/src/library_fs.js), but it seems to still need preprocessing and does not seem to be standalone since it uses LibraryManager. (I have also looked at other solutions like https://github.com/RevenTL/idbfs, but I am in need of a synchronous API.)

Any suggestions would be very much appreciated!

Best,
Camil

Martin Novy

unread,
Nov 15, 2019, 8:03:05 AM11/15/19
to emscripten-discuss
maybe you are looking for BrowserFS  https://github.com/jvilk/BrowserFS   ?

Camil Staps

unread,
Nov 18, 2019, 4:49:23 AM11/18/19
to emscripte...@googlegroups.com, Martin Novy
Thanks for digging up my question. This looks very useful, thank you!
signature.asc
Reply all
Reply to author
Forward
0 new messages