Modern C++ Addons for Node.js
summary
Shows a working Node.js C++ addon that generates year calendars using a C++23 module and range-v3, built with CMake + Conan + cmake-js and the node-addon-api C++ wrapper; JavaScript calls return string arrays of calendar lines. Describes packaging: CI builds per-OS (including macOS M1), combining artifacts, and using prebuilds to publish binaries inside the npm package so users avoid local C++ toolchains. Demo hits a build error but overall workflow and deployment are proven.
AI-written summary · about
chapters (9)
- 0:00C++ addons intro
- 3:05What are Node.js addons
- 6:16CMake build setup
- 9:30Node.js addon interface
- 12:47C++20 modules in addon
- 14:53Conan dependency management
- 16:26Live addon demo
- 17:34Pre-built addon deployment
- 20:53Summary
related talks
31mBuilding Modern Native Add-ons for Node.js in 2021
50mBuilding native Node.js addons in Reason
30mCreating Node Addons, C/C++ extensions for fun and profit
29mNode.js Addons for High Performance Numeric Computing
28mWriting node modules with v8
21mBuilding Portable C++ Packages: The Curse of Abundance
01h 11mThe State of Package Management in C++
30mNode.js Feature Livecoding
