Skip to main content
← Speaking

Type-safe bindings for Node.js with Rust and WebAssembly

Talk
· Node Congress · Berlin, Germany
rust typescript webassembly

Performance-critical Node.js modules typically mean C++ addons and platform-specific builds. I showed a different path: writing the hot code in Rust and compiling it to WebAssembly for a single, portable artifact.

The talk covered defining and importing Rust functions with wasm-bindgen, the string conversion pitfalls between Rust and JavaScript, and generating TypeScript definitions with tsify. I closed with a real-world example: integrating tsify into Lyra (now: Orama), a full-text search engine written in TypeScript.