# nodejs/node-addon-api

Module for using Node-API from C++

Repository: https://github.com/nodejs/node-addon-api
Canonical: https://ross.abutalabs.com/products/node-addon-api
Language: C++
License: MIT
License Family: permissive
Topics: nodejs, node
Last push: 2026-08-21T18:43:35+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 85, longevity 100
- inputs: {"age_days": 3493, "days_push": 12, "days_rel": 21, "gap_med": 35.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2408, forks 498 (observed 2026-08-28T04:06:44.250304+00:00)

## What it is
A header-only C++ wrapper library for Node-API (N-API) that simplifies writing native Node.js addons in C++. It provides C++ object model and exception-handling semantics with low overhead over the C-based Node-API.

## Use cases
- write node.js native addons in c++
- wrap a c++ library for use in node
- build abi-stable native modules for node.js
- use c++ exception handling in node addons
- avoid rewriting addons for every node.js version

## When to choose
- you need C++ performance or access to native libraries from Node.js
- you want ABI stability across Node.js versions via Node-API
- you prefer C++ object model and exceptions over raw C Node-API

## When to avoid
- your addon is pure JavaScript and needs no native code
- you target Node.js versions older than the supported LTS range
- you need a C API directly rather than a C++ wrapper

## Facets
- artifact type: library
- maturity: stable
- function: sdk, developer-tools, plugin-system
- domain: developer-tools, backend, cross-platform
- platform: cpp, cross-platform
- tags: node-api, native-addons, header-only, c++-bindings, napi, nodejs

## Member repositories
- nodejs/node-addon-api (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:44.250304+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:03.917763+00:00, confidence not recorded.
  - readme: https://github.com/nodejs/node-addon-api (fetched 2026-08-28T04:06:44.250304+00:00, sha c4ecc55d3967)
- Data as of 2026-08-30T08:39:29.467469+00:00.
