Skip to content
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

LevelDB-Zlib in the Browser #25

Open
Offroaders123 opened this issue Oct 5, 2023 · 0 comments
Open

LevelDB-Zlib in the Browser #25

Offroaders123 opened this issue Oct 5, 2023 · 0 comments

Comments

@Offroaders123
Copy link

Hello!

I found your project from this issue here, in the discussion about the Level project. I've been using leveldb-zlib locally with Node.js, and I have the hopes of running it, or another format-compatible implementation in the browser as well.

My project needs to open ZLIB-compressed LevelDB archives, those present in Minecraft Bedrock Edition. It seems like not all LevelDB implementations support the ZLIB handling, so only this one has worked for even opening the database for me, so far.

My initial idea was to try compiling leveldb-zlib to WASM so it can run in the browser, but that seems to keep running into dead-ends of things not working as expected/at all. It's also likely my inexperience thus far with things like Makefile, but I think I should try a different option instead, it might not work even if it compiles. I'm not sure how it would handle some sort of file system.

So my more-focused question (sorry for all of the pre-explanation), would it be feasible to build a JS-based LevelDB implementation similar to yours, which allows for the handling of this? In the browser, it would fit nicely to have the backing implementation to be driven by the File System API (more specifically, the Origin Private File System or the File System Access API if the user wants to use their own locally-saved files, rather than 'uploading' them to the app), and Node's FS module when running locally.

This is my (currently experimental) project that's trying to set this up so far, it's just using leveldb-zlib locally in Node at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant