I'd like to use a third-party package like pouchDB as a new filesystem.

I'm motivated by:

(1) It's cross browser compatible

(2) It could at one point (via couchDB) used to easily extend to use an 
external server for storage.


I'm new at JS and browser compatibility.  My current thought is to take 
IndexedDB and pouchDB to create a common local store via PouchDB's 
capability (ignoring remote server storage).  But, I have a few of issues:

(1) How do I load PouchDB as a dependency for "modules" that require it? 
 My codebase places me in a worker thread, and if I read correctly, I don't 
have access to the DOM or any way outside of a third-party library to load 
it before anything else uses it.

(2) How do I make PouchDB a dependency in the first place? I found a script 
that's supposed to "make" an emscripten library module but that doesn't 
work for PouchDB.

(3) Do I need to modify the FS dependency array?  I so, what's the best way 
to do so?

(3) Finally, aside  from including the new PouchdbFS module using 
emscripten's flag, what else should I do?

My current plan is just to use the IDBFS module as a template and go from 
there.  Provided I need a performance boost, I might look to other ways to 
optimize.  But for these questions, I can think of ways to make things 
work, but I'd like feedback on my ideas.

Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to