# charto/nbind

:sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:

Repository: https://github.com/charto/nbind
Canonical: https://ross.abutalabs.com/products/nbind
Language: C++
License: MIT
License Family: permissive
Topics: c-plus-plus, node-addon, asmjs, nodejs, emscripten, typescript
Last push: 2019-05-04T19:09:03+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4279, "days_push": 2678, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2001, forks 118 (observed 2026-08-28T04:06:04.341048+00:00)

## What it is
nbind is a set of C++11 header files that automatically generate JavaScript bindings for C++ libraries with a single #include, usable as Node.js addons or compiled to asm.js/WebAssembly via Emscripten for browsers. It also generates TypeScript definitions and integrates with node-gyp through the autogypi tool.

## Use cases
- call c++ code from javascript
- create node.js native addons from c++ libraries
- compile c++ library to run in the browser
- generate typescript definitions for c++ api
- use same c++ codebase on node and web

## When to choose
- you have an existing C++11 library and want JavaScript access with minimal boilerplate
- you want one codebase targeting both Node.js and browsers via Emscripten
- you prefer header-only bindings without external code-generation tools

## When to avoid
- you need actively maintained bindings - the project has had no releases since 2019
- you target modern Node.js with N-API instead of the older NAN-based addon approach
- you need bindings for languages other than JavaScript

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, compiler, developer-tools
- domain: developer-tools, web-development, cross-platform
- platform: cpp, browser, wasm
- tags: c-plus-plus-bindings, node-addon, emscripten, asmjs, typescript-definitions, ffi, nodejs

## Member repositories
- charto/nbind (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.341048+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:02:05.892215+00:00, confidence not recorded.
  - readme: https://github.com/charto/nbind (fetched 2026-08-28T04:06:04.341048+00:00, sha 6c8859f4c125)
- Data as of 2026-08-30T08:39:29.467469+00:00.
