What's the "modern" way of creating a native addon for Node.js?

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • SonarCloud - Analyze your C and C++ projects with just one click.
  • Mergify - Updating dependencies is time-consuming.
  • napi-rs

    A framework for building compiled Node.js add-ons in Rust via Node-API

    Thanks! This seems pretty official. I do really like what I saw from https://napi.rs/ where you just throw a "#[napi]" macro on and it works. Do you know if there's a Node API equivalent C/C++ workflow or tool that does something similar? I think the https://github.com/nodejs/webidl-napi is kinda what I'm looking for but it's archived.

  • nativefiledialog-extended

    Cross platform (Windows, Mac, Linux) native file dialog library with C and C++ bindings, based on mlabbe/nativefiledialog.

    I'd be interested in creating some kind of native binding package for this C library: https://github.com/btzy/nativefiledialog-extended (which also has existing bindings for Rust here https://github.com/btzy/nfde-rs)

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • nfde-rs

    Rust bindings for Native File Dialog Extended

    I'd be interested in creating some kind of native binding package for this C library: https://github.com/btzy/nativefiledialog-extended (which also has existing bindings for Rust here https://github.com/btzy/nfde-rs)

  • nan

    Native Abstractions for Node.js

  • node-addon-api

    Module for using Node-API from C++

  • node-webidl

    Bindings generator for Node Addons given WebIDL documents

  • webidl-napi

    A WebIDL-to-N-API compiler

    Thanks! This seems pretty official. I do really like what I saw from https://napi.rs/ where you just throw a "#[napi]" macro on and it works. Do you know if there's a Node API equivalent C/C++ workflow or tool that does something similar? I think the https://github.com/nodejs/webidl-napi is kinda what I'm looking for but it's archived.

  • SonarCloud

    Analyze your C and C++ projects with just one click.. SonarCloud, a cloud-based static analysis tool for your CI/CD workflows, offers a one-click automatic analysis of C and C++ projects hosted on GitHub. Zero configuration and free for open-source projects! Analyze free.

  • emsdk

    Emscripten SDK

    https://emscripten.org/ ?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts