elnardu / react-use-c

Use C in your React!
547 stars 16 forks source link

Compile to WASM and execute everywhere #7

Open julianxhokaxhiu opened 10 months ago

julianxhokaxhiu commented 10 months ago

Hi,

I've seen this project and looks interesting the pathway you're taking to run the C code through Zig. Instead of compiling it to native code, you could compile it to WASM ( see https://enarx.dev/docs/webassembly/zig ) and potentially expand the horizons of this project to allow the usage of C code also to Frontend using WebAssembly, as well as execute it on the backend using the native Node.js Webassembly support.

Happy to help if needed, feel free to ping me in case.

Best regards, Julian