Skip to content
napi-bindings

Search

Search pages, projects and the Node-API reference

Node-API 10 · formerly N-API

Native Node.js addons, built once, loaded everywhere.

napi-bindings is the hub for Node-API: the full API reference, versions and ecosystem, together with open-source tooling to build addons in C, C++ and Go and to run them beyond Node.js.

#include <node_api.h>

static napi_value Hello(napi_env env, napi_callback_info info) {
  napi_value result;
  napi_create_string_utf8(env, "world", NAPI_AUTO_LENGTH, &result);
  return result;
}

static napi_value Init(napi_env env, napi_value exports) {
  napi_property_descriptor desc = { "hello", 0, Hello, 0, 0, 0, napi_default, 0 };
  napi_define_properties(env, exports, 1, &desc);
  return exports;
}

NAPI_MODULE(NODE_GYP_MODULE_NAME, Init)

Why Node-API

Node-API is the C interface for native addons maintained by the Node.js project. It isolates addons from the JavaScript engine underneath, so a compiled binary survives engine and Node.js upgrades.

ABI stable
An addon compiled once keeps loading in later major versions of Node.js, without recompilation.
Engine independent
js_native_api.h never exposes V8. The same API is implemented by Bun, Deno, Electron, QuickJS and more.
Any language
A plain C ABI: C++, Rust, Go, Zig, C# and Swift reach it through their foreign function interfaces.
How Node-API works

The napi-bindings projects

Tools and runtimes maintained by the napi-bindings organization. Every page is rebuilt from the repositories: README, documentation, releases and commits.

All projects
Build tools
Builds C and C++ Node-API addons with Zig: no node-gyp, no CMake, cross-compilation from a single machine.
TypeScriptZigCC++
6v0.10.05 docs
Language bindings
0.x
Native Node.js addons written in Go: annotated functions, structs and classes become a typed npm package.
GoCTypeScript
1v0.1.015 docs
Build tools
Links Node-API addons on every platform without Node.js installed: vendored headers and a NodeApi::NodeApi CMake target.
CCMake
49.0.0
Libraries
QuickJS 2026-06-04 as a static C library, with prebuilt archives for 13 native platforms and WebAssembly.
CCMakeZig
497.0.0
Runtimes
0.0.x
A Node-API implementation for QuickJS: addons built for Node.js load unchanged, resolving napi_* from the quickjs-napi executable.
CCMake
1v0.0.221 docs

Node-API everywhere

Ecosystem
Runtimes implementing Node-API
bundenoelectronemnapihermes-windowsiotjslynx/primjsreact-nativeveilquickjs-napi
Bindings for other languages
napi-rsRustnapi-sysRustneonRustnode-api-dotnetC#node-api-jsiC++ / React Nativenodejs-sysRustNodeSwiftSwiftnapi-goGo