brainflow icon indicating copy to clipboard operation
brainflow copied to clipboard

WASM build and support for browsers

Open mpbb opened this issue 1 year ago • 2 comments

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 avatar Jul 17 '24 00:07 mpbb

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.

github-actions[bot] avatar Jul 17 '24 00:07 github-actions[bot]

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

Andrey1994 avatar Jul 18 '24 00:07 Andrey1994

@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.

lorforlinux avatar Nov 14 '24 17:11 lorforlinux

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

Andrey1994 avatar Nov 14 '24 21:11 Andrey1994

closing as non planned, it should be possible to build it for webassembly but its probably not one of the builds we are going to create ourselves. If there are any issues with it feel free to create new ones

Andrey1994 avatar Dec 28 '24 11:12 Andrey1994