Napi

Build native Node.js addons in Rust with napi-rs. Covers the napi config, #[napi] attributes, ThreadsafeFunction callbacks, what `napi build` generates and which inputs control it, cross-compiling, the multi-platform publish pipeline, and the loader contract. ALWAYS load this skill when a repo has a build.rs calling napi_build::setup(), a "napi" key in package.json, a @napi-rs/cli dependency, or any .node binary. Load it before editing Cargo.toml, package.json, or CI for a native addon, and before debugging why a binding fails to load or why the published package is huge.

remorses b4a32d5 20.0 KB Updated

File contents

remorses/opencode-config/tree/main/skills/napi commit b4a32d5dc4

Frequently asked questions

npx skillmds@latest add remorses/napi