Next Generation N-API: A Hands-on Workshop
summary
Hands-on coverage of N-API v1–v6 shows exact APIs and build tools used: thread-safe functions (v4) for safe cross-thread callbacks, napi_set_instance_data (experimental toward v6) and cleanup hooks/finalizers to avoid worker-thread leaks, and the v5 finalizer/date additions. Examples use node-addon-api (C++ wrapper, 300k downloads/week), binding.gyp, prebuild/node-pre-gyp and cmake-js for distributing binaries, and step-by-step porting tutorials that demonstrate compiling, running, and cleaning up native add-ons across Node versions.
AI-written summary · about
chapters (4)
- 0:00Start
- 3:29Objectives of the workshop
- 9:11Abstraction of the underlying JavaScript engine Defines and exports Ctypes and functions that are independent from the JavaScript engine A binary-stable ABI
- 15:04Context Awareness
related talks
31mN-API: The Next Generation Node.js API is Ready!
28mN-API - The new native in node.js
26mN-API - next generation Node API for native modules
25mIntroduction to native extensions
31mBuilding Modern Native Add-ons for Node.js in 2021
55mNode.js N-API for Rust
29mN-API on JerryScript
33mPanel: The State of Node.js
