# node-api-headers

> Node-API headers

Latest version **1.9.0** (published 2026-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-api-headers
pnpm add node-api-headers
yarn add node-api-headers
bun add node-api-headers
```

## Health

**Score 50/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.9.0 |
| Published | 2026-05-22 |
| First published | 2021-09-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 82.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 43 |
| Maintainers | nicknaso, mhdawson1, nodejs-foundation, kevineady |

## Links

- npm: https://www.npmjs.com/package/node-api-headers
- Repository: https://github.com/nodejs/node-api-headers
- Issues: https://github.com/nodejs/node-api-headers/issues
- npm.io page: https://npm.io/package/node-api-headers

## Recent versions

- 1.9.0 (latest) — 2026-05-22
- 1.8.0 — 2026-01-23
- 1.7.0 — 2025-11-28
- 1.6.0 — 2025-10-09
- 1.5.0 — 2025-01-17
- 1.4.0 — 2024-11-01
- 1.3.0 — 2024-09-06
- 1.2.0 — 2024-07-09
- 1.1.0 — 2023-08-05
- 1.0.1 — 2023-05-18
- 1.0.0 — 2023-04-20
- 0.0.5 — 2023-04-06
- 0.0.4 — 2023-03-17
- 0.0.3 — 2023-03-08
- 0.0.2 — 2022-12-29
- … 1 more at https://npm.io/package/node-api-headers/versions

## README

# node-api-headers

- **[Introduction](#introduction)**
- **[Contributing](CONTRIBUTING.md)**
- **[Code of Conduct](CODE_OF_CONDUCT.md)**
- **[Install](#install)**
- **[API](#api)**
- **[Creating a release](CREATING_A_RELEASE.md)**
- **[Team](#team)**
- **[License](#license)**

<a name="introduction"></a>

## Introduction

**node-api-headers** contains the header files for the C-based Node-API
provided by Node.js. Node-API is an API for building native addons that
guarantees the ABI (Application Binary Interface) stability across versions
of Node.js (see: [Node-API](https://nodejs.org/dist/latest/docs/api/n-api.html)).

Node-API headers are in the `include` folder. The Node-APIs that provide
ECMAScript features from native code can be found in `js_native_api_types.h`
and `js_native_api.h`. The APIs defined in these headers are included in
`node_api_types.h` and `node_api.h`.
The headers are structured in this way in order to allow implementations of
Node-API outside of Node.js considering that for those implementations the
Node.js specific APIs may not be applicable.

**node-api-headers** is also a package published on **npm** that could be used
in a process to compile and build native addons for Node.js.

<a name="install"></a>

## Install

```
npm i node-api-headers
```

<a name="versions"></a>

## Versions

Node-API C headers are backward-compatible. Its version (e.g. `8`) is released
separately from the Node.js version stream (e.g. `19.8.1`) and changes are
backported to active Node.js LTS lines (e.g. `16.x` and `18.x`).

This package publishes semver-minor versions with new Node-API C headers changes.
JS API breaking changes are published with new semver-major versions.

<a name="api"></a>

## API

The module exports two properties `include_dir` and `symbols`.

### `include_dir`

This property is a string that represents the include path for the Node-API
headers.

### `def_paths`

This property is an object that has two keys `js_native_api_def` and
`node_api_def` which represents the path of the module definition file for the
`js_native_api` and `node_api` respectively.

### `symbols`

This property is an object that represents the symbols exported by Node-API
grouped by version and api types.

```js
    V1: {
        js_native_api_symbols: [
            // List of symbols in js_native_api.h for the version 1.
        ],
        node_api_symbols: [
          // List of symbols in node_api.h for the version 1
        ]
    },
   // ...
```

<a name="team"></a>

## Team members

The project is maintained by the [Node-API team members](https://github.com/nodejs/abi-stable-node/?tab=readme-ov-file#project-participants).

<a name="license"></a>

## License

Licensed under [MIT](./LICENSE.md)

---
_Source: https://npm.io/package/node-api-headers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
