aicoolies logo
napi-rs logo
napi-rs logo

napi-rs

Build native Node.js addons in Rust via Node-API

open sourceverified Aug 24, 2026

napi-rs is a framework for building compiled Node.js native addons in Rust through the Node-API interface, eliminating node-gyp and C++ toolchains. It provides async/await with Promise integration, extensive type mappings between Rust and JavaScript, and cross-compilation to Windows, macOS, Linux, FreeBSD, and Android across x64, ARM, and RISC-V. Used by major JS tooling projects, napi-rs enables Rust-speed performance in Node.js apps.

napi-rs is a Rust framework that enables developers to build high-performance native Node.js addons using the stable Node-API interface. By bypassing the traditional node-gyp and C++ compilation pipeline, it dramatically simplifies the process of creating native modules while providing full access to Rust's safety guarantees, zero-cost abstractions, and ecosystem of libraries. The framework handles all the boilerplate of Node-API bindings through procedural macros, letting developers write idiomatic Rust that automatically becomes callable from JavaScript.

The framework supports comprehensive type conversions between Rust and JavaScript including primitives, objects, typed arrays, buffers, BigInt, and complex nested structures. Async operations integrate naturally through Rust futures that map to JavaScript Promises, enabling non-blocking native code execution. Cross-compilation support covers Windows, macOS, Linux, FreeBSD, and Android across x64, ARM, PowerPC, RISC-V, and LoongArch architectures, making it possible to publish pre-built binaries for all major platforms from a single CI pipeline.

With over 7,700 GitHub stars and 550 releases, napi-rs has become the standard way to integrate Rust into the Node.js ecosystem. Major JavaScript tooling projects depend on it as their native binding layer, leveraging Rust performance for CPU-intensive tasks like parsing, compilation, and bundling. The MIT-licensed project maintains compatibility with Node.js 10 and above, ensuring broad adoption across both legacy and modern Node.js environments with minimal version constraints.

Pricing

100% free and open source under the MIT license ($0 software cost). napi-rs is a high-performance framework for building pre-compiled, type-safe Node.js native add-ons in Rust with zero software licensing fees.

full pricing breakdown →

Platforms

Node.js 10+, Rust 1.88+, all major OS

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Claude Code logo

Claude Code

Top Pick

Anthropic's agentic coding CLI

Anthropic's agentic CLI coding tool that delegates complex tasks to Claude directly from the terminal. Understands entire codebases via automatic context gathering, edits multiple files, runs shell commands, and manages Git workflows autonomously. Supports CLAUDE.md for persistent project instructions, integrates with VS Code and JetBrains, and uses Claude Opus/Sonnet with extended thinking for complex architectural decisions. Built for terminal-first developers.

freemium
Ghostty logo

Ghostty

Top Pick

Fast, native terminal emulator

GPU-accelerated terminal emulator written in Zig by Mitchell Hashimoto (HashiCorp co-founder). Native UI rendering on macOS and Linux. Supports ligatures, true color, Kitty graphics protocol, and splits/tabs. Configurable via a simple key-value file with sensible defaults. Open-source with 20K+ GitHub stars and a focus on correctness, speed, and minimal resource usage. Growing as a modern alternative to iTerm2, Alacritty, and WezTerm.

Open Source
Grok logo

Grok Build

Top Pick

xAI's terminal coding agent with parallel subagents and worktree-aware automation

Grok Build is xAI's terminal-first coding agent for planning, editing, testing, and reviewing code from a local CLI. The early beta exposes subagent controls, worktree mode, headless JSON output, best-of-N parallel attempts, sandbox profiles, and experimental memory. It fits developers comparing Claude Code, Codex, and Gemini CLI for local agentic workflows with deeper parallel execution.

paid
Codex logo

Codex

Top Pick

OpenAI coding agent for app, editor, terminal, and cloud work

Codex is OpenAI's coding agent for software development across the Codex app, editor, terminal, and cloud tasks. It helps write, review, debug, refactor, and automate code, with ChatGPT plan access for managed surfaces and API-key usage for CLI, SDK, and IDE workflows. The open-source CLI and SDK support local repository work, while cloud features add GitHub review, Slack/Linear integrations, worktrees, skills, MCP, and automations.

paid
Cilium logo

Cilium

eBPF-based networking, security, and observability for Kubernetes

Cilium is a CNCF Graduated, Apache-2.0 project for Kubernetes networking, security, and observability using eBPF. It can replace kube-proxy, enforce identity-aware L3-L7 network policies, and add Hubble flow observability plus Tetragon runtime-security signals. Current source checks support GKE Dataplane V2 using Cilium/eBPF and Azure CNI Powered by Cilium for AKS.

Open Source
OrbStack logo

OrbStack

Fast and lightweight Docker Desktop alternative for macOS

OrbStack is a macOS application that replaces Docker Desktop with lightweight container and Linux VM management. Its docs emphasize fast starts, lower CPU and memory overhead, and native macOS integration with menu bar controls, file sharing, and network access to containers by name, with exact gains depending on workload. Supports Docker, Kubernetes, and full Linux VMs.

freemium

FAQ

What is napi-rs?

napi-rs is a framework for building compiled Node.js native addons in Rust through the Node-API interface, eliminating node-gyp and C++ toolchains. It provides async/await with Promise integration, extensive type mappings between Rust and JavaScript, and cross-compilation to Windows, macOS, Linux, FreeBSD, and Android across x64, ARM, and RISC-V. Used by major JS tooling projects, napi-rs enables Rust-speed performance in Node.js apps.

Is napi-rs free?

Yes — napi-rs is open source and free to use. 100% free and open source under the MIT license ($0 software cost). napi-rs is a high-performance framework for building pre-compiled, type-safe Node.js native add-ons in Rust with zero software licensing fees.

Is napi-rs open source?

Yes — napi-rs is open source.

Is napi-rs still maintained?

Yes — napi-rs is active. Its listing was last verified on August 24, 2026.

What are the best napi-rs alternatives?

The top editor-verified napi-rs alternatives are Lychee.