qmetrics.net

NAPI-RS

Framework for Rust Node.js native add-ons via Node-API

NAPI-RS screenshot

NAPI-RS helps you build compiled Node.js add-ons in Rust using Node-API. It supports cross-compilation and WebAssembly without relying on node-gyp.

Overview

NAPI-RS is a framework for implementing Node.js native add-ons in Rust through the stable Node-API interface. Developers define Rust functions and types that surface to JavaScript, then package per-platform binaries for loading as `.node` modules.

The toolchain includes a build CLI and Cargo integration so add-ons compile as cdylib artifacts and install with the Rust and JavaScript toolchains alone, avoiding node-gyp. Bindings cover common JavaScript values, async futures, buffers, typed arrays, and thread-safe callbacks across Node-API versions.

Platform support spans Windows, macOS, Linux variants, Android, FreeBSD, and WebAssembly targets, with documentation on packaging native binaries and optional WASI fallbacks. The project supplies templates and examples for getting started quickly.

A companion CLI copies built libraries into loadable module paths and can target custom output locations. Related crates and community packages extend the same approach for image processing and other native workloads.

Key features

  • Rust-to-JavaScript bindings via Node-API
  • Build without node-gyp
  • Cross-platform native binary packaging
  • WebAssembly and WASI support
  • napi build CLI integration
  • Async and thread-safe function support
  • Wide Node.js runtime compatibility
  • Serde and typed array interop

Use cases

  • High-performance Node.js native modules
  • Cross-compiled add-ons for many CPU targets
  • WASM Node add-ons with image or media codecs
  • Rust libraries exposed to npm packages
  • CI-friendly native module builds

Tags

Similar software

Vite

Frontend build tool for modern web projects

Vite is a build tool for modern web projects, combining a development server with an optimized production build. It targets a faster, leaner local development workflow.

★ 84.2k⟳ yesterdayMIT
Build & DeploymentDesktop/CLI app

Moby

Modular toolkit for assembling container systems

Moby bundles container build, runtime, registry, and orchestration components so integrators can craft custom container platforms instead of using a single fixed product.

★ 72.3k⟳ todayApache-2.0

Appwrite

Agent-ready open-source backend cloud with unified app services

Appwrite bundles auth, databases, storage, functions, messaging, realtime, hosting, and firewall for building apps. It runs as managed cloud or self-hosted on Docker

★ 58.7k⟳ todayBSD-3-Clause
Build & DeploymentSelf-hostable
Open Source Alternative to:Auth0Clerk+1

Wails

Go and web frontend toolkit for desktop apps

Wails bundles Go backends with HTML, CSS, and JavaScript UIs into native desktop binaries. It uses OS WebViews instead of shipping a full browser runtime.

★ 37.2k⟳ yesterdayMIT

Electron React Boilerplate

Electron and React starter for desktop applications

Electron React Boilerplate combines Electron, React, React Router, and Vite tooling so teams can develop, hot-reload, and package cross-platform desktop apps from one template.

★ 24.2k⟳ 2 months agoMIT

JHipster

Full-stack generator for web apps and microservices

JHipster is a development platform that scaffolds, develops, and deploys modern web applications and microservice architectures. It wires front ends, back ends, and cloud-native deployment in one workflow.

★ 22.5k⟳ todayApache-2.0