Calling C++ from nodejs

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

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. gRPC

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

    You can do this by sending socket connections, or use a library like https://grpc.io/.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. node-addon-api

    Module for using Node-API from C++

    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

  4. node-addon-examples

    Node.js C++ addon examples from http://nodejs.org/docs/latest/api/addons.html

    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

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

  • 😯 gRPC vs REST - A Brief Comparison

    2 projects | dev.to | 29 Sep 2023
  • SETTING UP REACT ON YOUR LOCAL MACHINE

    1 project | dev.to | 17 Jan 2025
  • List of JavaScript runtimes - 2025

    1 project | dev.to | 17 Jan 2025
  • What is Next Js: A Beginner's guide to Next Js

    1 project | dev.to | 15 Jan 2025
  • Creating a Multi-Tenant Application with Laravel and Neon

    3 projects | dev.to | 10 Jan 2025

Did you know that C++ is
the 7th most popular programming language
based on number of references?