genepi is a C++11 library providing a complete set of macros to generate a Node.js addon from your C++ code using N-API.