Relaxnative: Import C, C++, Rust, Zig and Go Straight into Node.js
TL;DR: Relaxnative is a Node.js library that lets you write a function in C, C++, Rust, Zig or Go, point loadNative() at the file, and call it from JavaScript like any other function. No node-gyp, no binding.gyp, no hand-written N-API glue. It compiles on first import, caches by content hash, can ship prebuilt so production needs no compiler, and lets you choose how much a native crash is allowed to hurt. npm i relaxnative π GitHub Β· π¦ npm Β· π Issues Why I built this Hello, native Five languages, one call What loadNative() actually does Reading signatures: tree-sitter and friends The types
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