alef-backend-napi 0.17.35

Node.js (NAPI-RS) backend for alef
Documentation

alef-backend-napi

Node.js (NAPI-RS) backend for alef

Generates Rust source code using the NAPI-RS framework to expose a Rust library as a native Node.js addon. Produces #[napi] structs and functions, #[napi(constructor)] constructors, #[napi(string_enum)] enums, and native async functions returning JavaScript Promises. Supports interface and zod DTO generation styles and includes a post-build step that patches generated .d.ts TypeScript declaration files for correct type definitions.

Part of the alef polyglot binding generator.

License

MIT