node-addon-api
node-addon-examples
Our great sponsors
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 |
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
- How to run one AsyncWorker at a time?
-
Electrons Are Fast, So Can Be Electron – How to Optimize Electron App Performance
If we want it fast, Node-API looks like a perfect solution. A library written in C/C++ must be fast. If you prefer to use C++ over C, the node-addon-api can help. This is probably one of the best solutions available, especially since it is officially supported by the Node.js team. It’s super stable once it is built, but it can be painful during development. Errors are often far from easy to understand, so if you are no expert in C, it might kick your ass very easily.
-
node-addon-api v7.0.0 released
The Node-API Team proudly announces the release of version 7.0.0 of node-addon-api, the C++ wrapper of the ABI-stable C-based Node-API (npm, GitHub).
- What's the "modern" way of creating a native addon for Node.js?
-
A priimer on the use of stdin/stdout and stderr
Node ffi is an unnecessary wrapper around addon api. See https://github.com/nodejs/node-addon-api
- Absolutely love this "little" 4hr project.
-
Calling C++ from nodejs
Did a little digging, napi is header file in an npm package that's supposed to help you build C++ addons, node_api is node's actual API. https://github.com/nodejs/node-addon-api you might have already been using this. The examples have enough code that it shouldn't be too bad to get started
- Throwing errors in callback
-
Does anyone know why calling native functions (with c++ addons) is so slow, and how could I improve? Links for resources welcome
Looks like this is known: https://github.com/nodejs/node-addon-api/issues/790
-
Uni over prepared me for industry
Hey! I work with the NAPI(https://github.com/nodejs/node-addon-api) team and we are in dire need of some help. Dm if you are interested!
node-addon-examples
-
Calling C++ from nodejs
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?
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?
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