git404hub

what is neon fr?

neon-bindings/neon — explained in plain English

Analysis updated 2026-06-24

8,411RustAudience · developerComplexity · 3/5LicenseSetup · moderate

tl;dr

A tool for writing Node.js add-ons in Rust, compile Rust functions and call them from JavaScript as if they were ordinary JS functions, starting with a single npm command.

vibe map

mindmap
  root((neon))
    What it does
      Rust to JS bridge
      Node.js add-ons in Rust
      Call Rust from JS
    Tech Stack
      Rust 1.65+
      Node.js
      npm and Cargo
      Bun experimental
    Platforms
      Linux
      macOS
      Windows
    Use Cases
      Fast computation modules
      CPU-intensive tasks
      Performance npm packages

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Build a fast number-crunching module in Rust and call it from a Node.js web server to speed up slow JavaScript code.

VIBE 2

Write a CPU-intensive image or data processing function in Rust as a drop-in replacement for a slow JavaScript implementation.

VIBE 3

Create a performance-critical Node.js npm package by writing the core logic in Rust using Neon's safe API.

what's the stack?

RustNode.jsnpmCargoBun

how it stacks up fr

neon-bindings/neonparitytech/substrateatom-archive/xray
Stars8,4118,4168,420
LanguageRustRustRust
Setup difficultymoderatehardhard
Complexity3/55/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · moderate time til it works · 30min

Requires stable Rust 1.65+ and a supported Node.js release installed alongside npm.

Use freely for any purpose including commercial use, choose either Apache 2.0 or MIT, both permissive.

in plain english

Neon is a tool for writing Node.js add-ons in Rust. Node.js normally runs JavaScript, but sometimes developers need faster, lower-level code running alongside it. Add-ons allow that, and Neon makes it possible to write those add-ons in Rust rather than in C or C++. Rust is a programming language known for memory safety and performance. Neon bridges Rust and Node.js so a developer can write Rust functions, compile them, and call them from JavaScript as if they were ordinary JavaScript functions. Getting started takes a single npm command that creates a new project ready to build. The project runs on Linux, macOS, and Windows. It supports all current and maintained releases of Node.js, and has experimental support for Bun, an alternative JavaScript runtime. On the Rust side, it requires stable Rust version 1.65 or higher, and the project is tested against the latest stable, beta, and nightly Rust releases. The README includes a short code sample showing a Rust function that builds a JavaScript array containing a number, a string, and a boolean, then returns it to the caller. This shows how Rust code interacts with JavaScript values through Neon's API. Full documentation lives on the project website, and more examples are available in a separate examples repository. Version 1.0.0 introduced several breaking changes to fix correctness issues and improve consistency. A migration guide is available for developers moving existing projects to the new version. The community communicates through a Slack workspace open to anyone. Testing the project uses both npm and Cargo workspace commands. It is licensed under either Apache 2.0 or MIT, at the user's choice.

prompts (copy fr)

prompt 1
I'm using neon-bindings/neon. Write a Rust function that accepts a JavaScript array of numbers, sums them, and returns the result to Node.js.
prompt 2
Help me migrate an existing C++ Node.js native add-on to Rust using the Neon framework, keeping the same JavaScript API.
prompt 3
Write a Neon module that exposes a function to compress a string with gzip and return a Buffer to the Node.js caller.
prompt 4
I upgraded to Neon 1.0.0 and my build broke. Help me update my code based on the 1.0.0 migration guide's breaking changes.

Frequently asked questions

what is neon fr?

A tool for writing Node.js add-ons in Rust, compile Rust functions and call them from JavaScript as if they were ordinary JS functions, starting with a single npm command.

What language is neon written in?

Mainly Rust. The stack also includes Rust, Node.js, npm.

What license does neon use?

Use freely for any purpose including commercial use, choose either Apache 2.0 or MIT, both permissive.

How hard is neon to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is neon for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.