node-cpp-skel

A starter template for building C++ addons for Node.js with node-addon-api. It provides simple HelloWorld examples that show the structure and common patterns.

Share on XLicense: CC0-1.0

Overview

node-cpp-skel is a skeleton project for writing C++ addons for Node.js with node-addon-api. It generates simple HelloWorld JavaScript constructors whose methods show different ways to use the Node C++ API, including asynchronous functions. The README explains that moving heavy work into C++ and C++ workers can keep the single-threaded Node event loop free. You can copy it as a template for your own addon or read it to learn how addons are structured.

Key features

  • HelloWorld examples in C++ using node-addon-api
  • Methods showing different addon patterns, such as async functions
  • Works as a template for new addons
  • Doubles as a learning resource for Node/C++ beginners

Best for

Developers starting a Node.js C++ addon who want a working structure to copy. It is a small example set, not a full library.

Upstream
mapbox/node-cpp-skel
Fork on GitHub
Guo-astro/node-cpp-skel
Upstream stars
74
Category
Developer tools and infrastructure
Language
C++
License
CC0-1.0
Forked
2020-11-01
Sync status
In syncLast synced 2026-09-29