-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Compile the libzim js bindings in a separate module #768
Comments
The bindings I used for the prototype are in https://github.com/mossroy/libzim_wasm/blob/master/demo_file_api.cpp (done with the help of @mgautierfr ) Note that kiwx-js only needs the read APIs. But the write APIs might be of some interest for some other projects, like the node.js scrapers |
Note that I suspect there is a memory leak in the current version of these bindings: #872 |
@mgautierfr is working on the wasm compilation of the libzim with Emscripten. This might be ready next week in libzim nightly and release (from libzim |
Yes, it's the git repo where we've compiled libzim with emscripten. |
If this is ok to both of you, yes would probably be beneficial to move it to openzim so further dev can take place |
I currently don't have the right to create a git repo under openzim, so can't move it. It would be needed to publish on gh-pages the same pages as currently: at least https://mossroy.github.io/libzim_wasm/ that is useful for testing. And maybe https://mossroy.github.io/libzim_wasm/index-bigfile.html (which is now less useful as the issue has been fixed in emscripten) |
@mossroy I have sent you an invitation to be owner, shoukd be possible then. |
Done: repo transferred to https://github.com/openzim/javascript-libzim |
@mossroy Thank you, I will check. |
Looks good to me. I guess this ticket should be closed now as everything will be handled in https://openzim.github.io/javascript-libzim/ |
I've transferred what remains to be done in openzim/javascript-libzim#11 |
Like it is done for python : https://github.com/openzim/python-libzim/
It should be run by kiwix-build, too : see kiwix/kiwix-build#503
It might allow this wasm version of libzim to be used in other javascript projects, like mwoffliner
The text was updated successfully, but these errors were encountered: