napi-rs/napi-rs
A framework for building compiled Node.js add-ons in Rust via Node-API observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.0
- age_days: 3049
- days_rel: 12
- days_push: 7
- n_releases_24m: 159
Adoption not part of the score
7911 stars · 407 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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
framework · maturity stable
build-tool cli wasm developer-tools developer-tools web-development cross-platform rust cross-platform wasm node-api native-addons napi rust-bindings cross-compilation wasi nodejs
5 sources
- readme: https://github.com/napi-rs/napi-rs · fetched 2026-08-28 · 0a1c2b9d6cc4
- homepage: https://napi.rs · fetched 2026-08-29 · 15b69671ba72
- site_page: https://napi.rs/docs/introduction/getting-started · fetched 2026-08-29 · fc09e46c6fbd
- site_page: https://napi.rs/docs/more/support-compatibility · fetched 2026-08-29 · f4be1d97760a
- site_page: https://napi.rs/changelog/napi · fetched 2026-08-29 · 67c2354ce8fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| napi-rs/napi-rs | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem