# mapbox/node-pre-gyp

Node.js tool for easy binary deployment of C++ addons

Repository: https://github.com/mapbox/node-pre-gyp
Canonical: https://ross.abutalabs.com/products/node-pre-gyp
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Topics: priority
Last push: 2026-08-24T18:34:25+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 34, longevity 100
- inputs: {"age_days": 4660, "days_push": 9, "days_rel": 280, "gap_med": 103, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1155, forks 270 (observed 2026-08-28T04:03:47.789302+00:00)

## What it is
A Node.js command-line tool and library that makes it easy to publish and install C++ native addons from pre-built binaries, sitting between npm and node-gyp. It provides commands for packaging, testing, publishing, and installing platform-specific binary builds of native modules.

## Use cases
- distribute prebuilt native node addons so users skip compilation
- publish platform-specific binary tarballs for a C++ addon
- install a native module binary at npm install time
- package and test compiled .node binaries before release
- dynamically locate and require an installed native binary
- fall back to building from source with node-gyp when no binary exists

## When to choose
- you maintain a Node.js C++ addon and want to ship prebuilt binaries across platforms
- you want faster installs for users by avoiding local compilation
- you need a mature, widely used tool integrated with npm and node-gyp workflows

## When to avoid
- your addon is pure JavaScript with no native code
- you use a newer alternative like prebuildify or node-gyp-build for simpler prebuilt distribution
- you target Node.js versions outside the supported release schedule

## Facets
- artifact type: cli-tool
- maturity: stable
- function: build-tool, package-manager, cli, developer-tools
- domain: developer-tools, cross-platform
- platform: cli, cross-platform
- tags: native-addons, node-gyp, binary-deployment, prebuilt-binaries, npm, command-line, nodejs

## Member repositories
- mapbox/node-pre-gyp (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:47.789302+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-30T06:32:13.711891+00:00, confidence not recorded.
  - readme: https://github.com/mapbox/node-pre-gyp (fetched 2026-08-28T04:03:47.789302+00:00, sha 2db95a19c5ad)
  - registry_npm: https://registry.npmjs.org/node-pre-gyp (fetched 2026-08-29T12:37:49.496286+00:00, sha 610bd1937170)
- Data as of 2026-08-30T08:39:29.467469+00:00.
