# napi-rs/napi-rs

A framework for building compiled Node.js add-ons in Rust via Node-API

Repository: https://github.com/napi-rs/napi-rs
Canonical: https://ross.abutalabs.com/products/napi-rs
Homepage: https://napi.rs
Language: Rust
License: NOASSERTION
License Family: other
Topics: napi, rust, javascript, napi-rs, nodejs, node, node-api
Last push: 2026-08-26T16:49:47+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 3049, "days_push": 7, "days_rel": 12, "gap_med": 0.0, "n_releases_24m": 159}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7911, forks 407 (observed 2026-08-28T04:10:09.706938+00:00)

## What it is
NAPI-RS is a Rust framework for building pre-compiled Node.js add-ons via Node-API, with a CLI for zero-config builds, cross-compilation, and CI workflows. It generates low-overhead bindings with TypeScript declarations and supports WASI fallbacks.

## Use cases
- write Node.js native addons in Rust
- build high-performance npm packages with Rust
- cross-compile native Node modules for multiple platforms
- expose Rust functions to JavaScript with #[napi] macros
- ship portable native binaries with WASI fallback

## When to choose
- you need native performance in a Node.js package
- you want ABI-stable addons that work across Node versions
- you need multi-platform prebuilt binaries without node-gyp

## When to avoid
- your addon logic is trivial and pure JavaScript suffices
- you target runtimes without Node-API support
- you need a pure WebAssembly-only module without native builds

## Facets
- artifact type: framework
- maturity: stable
- function: build-tool, cli, wasm, developer-tools
- domain: developer-tools, web-development, cross-platform
- platform: rust, cross-platform, wasm
- tags: node-api, native-addons, napi, rust-bindings, cross-compilation, wasi, nodejs

## Member repositories
- napi-rs/napi-rs (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:09.706938+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-29T17:33:17.170539+00:00, confidence not recorded.
  - readme: https://github.com/napi-rs/napi-rs (fetched 2026-08-28T04:10:09.706938+00:00, sha 0a1c2b9d6cc4)
  - homepage: https://napi.rs (fetched 2026-08-29T08:30:06.859725+00:00, sha 15b69671ba72)
  - site_page: https://napi.rs/docs/introduction/getting-started (fetched 2026-08-29T08:30:06.862545+00:00, sha fc09e46c6fbd)
  - site_page: https://napi.rs/docs/more/support-compatibility (fetched 2026-08-29T08:30:06.868928+00:00, sha f4be1d97760a)
  - site_page: https://napi.rs/changelog/napi (fetched 2026-08-29T08:30:06.864755+00:00, sha 67c2354ce8fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
