node-ffi/node-ffi
Node.js Foreign Function Interface observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6115
- days_rel: n/a
- days_push: 1145
- n_releases_24m: 0
Adoption not part of the score
4321 stars · 399 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
node-ffi is a Node.js addon for loading and calling dynamic C libraries using pure JavaScript, without writing C++ binding code. It handles type translation between JavaScript and C via the libffi library bundled with the package.
Use cases
- call functions from a C shared library from Node.js
- create bindings to native libraries without writing C++
- invoke system libc functions like atoi from JavaScript
- prototype native library calls in pure JavaScript
- wrap existing C APIs for Node.js scripts
When to avoid
- you are on a modern Node.js version - the project only supports node v0.6 through v0.10 and is unmaintained
- you need high performance - FFI call overhead is orders of magnitude slower than hard-coded native bindings
- you cannot tolerate segfaults from incorrect type declarations
- you want a maintained alternative such as koffi or node-addon-api
Facets
library · maturity abandoned
sdk developer-tools developer-tools cross-platform windows cross-platform ffi native-bindings dynamic-libraries libffi c-interop nodejs linux macos
1 source
- readme: https://github.com/node-ffi/node-ffi · fetched 2026-08-28 · 46c6bfb51780
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| node-ffi/node-ffi | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="node-ffi/node-ffi")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem