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

WASM build and support for browsers #734

Open
mpbb opened this issue Jul 17, 2024 · 4 comments
Open

WASM build and support for browsers #734

mpbb opened this issue Jul 17, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@mpbb
Copy link

mpbb commented Jul 17, 2024

The existence of WebUSB and Web Serial make in browser data collection a viable platform for brainflow.

Can we explore compiling to wasm and perhaps packaging for web?

@mpbb mpbb added the enhancement New feature or request label Jul 17, 2024
Copy link

Welcome to BrainFlow project and thanks for your contribution! We will try to fix your issue ASAP. Make sure that you have read about issue format in the docs.

@Andrey1994
Copy link
Member

I think, I built it for web assembly before. Signal processing part and synthetic board worked fine, but all IO boards were broken. None of the actual boards worked for me from the box and I even not sure that its possible.
No idea how web serial works and not an expert in web...
Would be good if you take the lead on that and help with porting to wasm

@lorforlinux
Copy link

@mpbb @Andrey1994 We have designed a web platform called Chords for visualizing bio-potential signals and now we want some library to process the data we are getting from devices connected via webserial or websockets. If we can get brainflow web-assembly filtering support working for chords it would be pretty good.

@Andrey1994
Copy link
Member

DataFilter part should work, I dont remember how I built it, but more likely smth like this https://peterdn.com/post/2020/12/31/building-c-and-cpp-libraries-for-webassembly/

Its a normal Cmake project, so should be straightforward

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

No branches or pull requests

3 participants