napi-rs

Community

Rust-Node/Bun bindings made easy.

Authorcofin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the process of creating high-performance native Node.js and Bun modules using Rust, enabling developers to leverage Rust's speed and safety within JavaScript environments.

Core Features & Use Cases

  • Module Setup: Configure Cargo.toml and build.rs for napi-rs.
  • Async Operations: Handle asynchronous tasks and integrate with runtimes like Tokio without blocking the JavaScript event loop.
  • ThreadsafeFunction (TSFN): Safely call JavaScript callbacks from Rust threads.
  • Data Handling: Efficiently manage Buffer and typed array data between Rust and JavaScript.
  • Error Management: Map Rust errors to JavaScript errors for a seamless developer experience.
  • Bun & Deno Integration: Embed V8/TypeScript execution using deno_core and ensure Bun compatibility.

Quick Start

Use the napi-rs skill to set up a basic Rust library for Node.js bindings.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: napi-rs
Download link: https://github.com/cofin/flow/archive/main.zip#napi-rs

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.