# wjakob/nanobind

nanobind: tiny and efficient C++/Python bindings

Repository: https://github.com/wjakob/nanobind
Canonical: https://ross.abutalabs.com/products/nanobind
Language: C++
License: BSD-3-Clause
License Family: permissive
Topics: python, bindings, pybind11, cpp17
Last push: 2026-08-25T22:43:19+00:00

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

## Adoption (not part of the score)
Stars 3691, forks 322 (observed 2026-08-28T04:08:14.748391+00:00)

## What it is
nanobind is a small C++ library for creating Python bindings of C++ types and functions, with syntax nearly identical to pybind11 and Boost.Python. It offers significantly faster compilation, smaller binaries, and lower runtime overhead than pybind11 or Cython.

## Use cases
- expose c++ library to python
- create python bindings for c++ code
- replace pybind11 with faster alternative
- reduce binary size of python extension modules
- speed up compilation of c++ python bindings
- call c++ from python

## When to choose
- you need high-performance C++/Python interop with minimal overhead
- pybind11 compile times or binary sizes are a bottleneck
- you want pybind11-like syntax with better runtime performance

## When to avoid
- you need a very mature ecosystem with extensive third-party examples and plugins
- your project already works fine with pybind11 and performance is not critical
- you need pure C bindings rather than C++

## Facets
- artifact type: library
- maturity: stable
- function: sdk, developer-tools, compiler
- domain: developer-tools, programming-languages, performance
- platform: python, cpp, cross-platform
- tags: bindings, pybind11, c-plus-plus, python-bindings, interop

## Member repositories
- wjakob/nanobind (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:14.748391+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-29T18:31:07.760803+00:00, confidence not recorded.
  - readme: https://github.com/wjakob/nanobind (fetched 2026-08-28T04:08:14.748391+00:00, sha de868f4af941)
- Data as of 2026-08-30T08:39:29.467469+00:00.
