Ahoi Library Bridges Rust/Wasm Reactive State With SolidJS, React, Vue, and Svelte
A developer has released Ahoi, an open-source library designed to manage reactive state in Rust/WebAssembly and expose it cleanly to JavaScript frontend frameworks. The project consists of a Rust crate that handles the core reactivity engine and separate npm packages acting as thin bridges for SolidJS, React, Vue, and Svelte. State is declared in Rust using a 'Stock' struct, while typed signals and commands flow between Rust and JS through 'Hail' and 'Tell' enums, giving JavaScript fully typed reactive values without manual bridging code. Ahoi was created to fill a gap between hand-rolling Rust-JS bridges and adopting a full Rust frontend framework like Leptos or Dioxus. The library is an early release, available on GitHub, crates.io, and npm, with the author actively seeking community feedback.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in