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

Bug: JavaScript Browser Documentation #191

Open
2 tasks done
jlarmstrongiv opened this issue Aug 7, 2023 · 13 comments
Open
2 tasks done

Bug: JavaScript Browser Documentation #191

jlarmstrongiv opened this issue Aug 7, 2023 · 13 comments
Assignees
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right

Comments

@jlarmstrongiv
Copy link
Contributor

Describe the bug

No documentation can be found for using usearch in the browser.

Wasmer does not have relevant documentation either.

See Discord discussion

Steps to reproduce

Try to import usearch in the browser

Expected behavior

More details or an example is provided on how to import and setup usearch in the browser

USearch version

v1.1.0

Operating System

Browser

Hardware architecture

x86

Which interface are you using?

Other bindings

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jlarmstrongiv jlarmstrongiv added bug Something isn't working invalid This doesn't seem right labels Aug 7, 2023
@ashvardanian ashvardanian added documentation Improvements or additions to documentation and removed bug Something isn't working labels Aug 7, 2023
@ashvardanian ashvardanian self-assigned this Aug 7, 2023
@ashvardanian
Copy link
Contributor

Thank you for acknowledging this issue, @jlarmstrongiv! We are already working with @syrusakbary and broader @wasmerio team to provide a solution 🤗

@jlarmstrongiv
Copy link
Contributor Author

@ashvardanian
Copy link
Contributor

@jlarmstrongiv, thank you fir sharing those! I will try to address those, and come back with WASM updates with a week 🤗

@jlarmstrongiv
Copy link
Contributor Author

@ashvardanian thank you! I’m looking forward to it 😄

@aehlke
Copy link

aehlke commented Oct 7, 2023

how has it gone? thanks.

@jlarmstrongiv
Copy link
Contributor Author

The Wasmer JS SDK has been released this week https://wasmer.io/posts/introducing-the-wasmer-js-sdk

@ashvardanian
Copy link
Contributor

@jlarmstrongiv, nice! Can it help us to run USearch in the browser?

@jlarmstrongiv
Copy link
Contributor Author

@ashvardanian Yes, I think it would. Especially since usearch already builds a Wasmer package

@andrewluetgers
Copy link

andrewluetgers commented Jan 13, 2024

not sure if this helps but looking into wasmer filesystem it has an in memory fs abstraction in the browser, but it looks like they will be able to support opfs wasmerio/wasmer-js#393

@MentalGear
Copy link

Very excited about usearch in the browser, will open up many more applications! Using OPFS for FS should work in all modern browsers!

@MentalGear
Copy link

OPFS has iOS/mac Safari support

Screenshot 2024-01-20 at 22 27 54

@aehlke
Copy link

aehlke commented Jan 20, 2024

I tried to find confirmation that it also works in WKWebView but couldn't find that explicitly

@MentalGear
Copy link

I don't know about WKWebView, but since it's basically safari it should. You can always test it yourself when in doubt.
RXDB has quite a great info on OPFS:

From the beginning of 2023, the Origin Private File System API is supported by all modern browsers like Safari, Chrome, Edge and Firefox.
It is important to know that the OPFS API is only available inside of a WebWorker. It cannot be used in the main thread, an iFrame or even a SharedWorker.

https://rxdb.info/rx-storage-opfs.html#opfs-limitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

5 participants