node-addon-api VS node-addon-examples

Compare node-addon-api vs node-addon-examples and see what are their differences.

node-addon-api

Module for using Node-API from C++ (by nodejs)

node-addon-examples

Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html (by nodejs)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
node-addon-api node-addon-examples
12 2
2,045 2,425
1.6% 0.9%
8.6 6.1
3 days ago 4 days ago
C++ C++
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

node-addon-api

Posts with mentions or reviews of node-addon-api. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-10.

node-addon-examples

Posts with mentions or reviews of node-addon-examples. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-20.
  • Calling C++ from nodejs
    3 projects | /r/cpp_questions | 20 Apr 2022
    Yeah, that's the only place I found a napi.h file, so I think tutorials using that are assuming the node-addon-api? Anyways checking out examples like this, https://github.com/nodejs/node-addon-examples/blob/7ca7b6d03c1acb72fe292b4be468009534a20ff3/2_function_arguments/node-addon-api/addon.cc, it actually looks pretty easy to use to call C++ functions in node
  • What should be the correct way to send to the front-end the napi_values I receive from the native-addon?
    1 project | /r/node | 8 Feb 2022
    I am trying to communicate this native addon with the front-end. It consists of a prime number generator, when it is executed it writes to the console, I want it to send them via Sockets to the browser console.

What are some alternatives?

When comparing node-addon-api and node-addon-examples you can also consider the following projects:

nan - Native Abstractions for Node.js

Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

mineflayer - Create Minecraft bots with a powerful, stable, and high level JavaScript API.

gRPC - The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

Electron - :electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

crystal - 🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!

opus - Native opus bindings for node

Node-Torrent - This repository contains the torrent node source code written in C++.

electron-quick-start - Clone to try a simple Electron app

pnpm - Fast, disk space efficient package manager

obs-studio-node - libOBS (OBS Studio) for Node.Js, Electron and similar tools