# mrousavy/nitro

🔥 Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI

Repository: https://github.com/mrousavy/nitro
Canonical: https://ross.abutalabs.com/products/mrousavy-nitro
Homepage: https://nitro.margelo.com
Language: C++
License: MIT
License Family: permissive
Topics: cpp, jsi, kotlin, library, modules, native, react, react-native, swift, templates, nitro, turbomodules, nitro-modules, hybrid-object, fast, hybrid
Last push: 2026-08-25T23:05:46+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 86, longevity 58
- inputs: {"age_days": 812, "days_push": 8, "days_rel": 13, "gap_med": 4.0, "n_releases_24m": 99}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1912, forks 112 (observed 2026-08-28T04:05:53.197121+00:00)

## What it is
Nitro is a framework for building fast, type-safe native modules for React Native (and any JSI environment) implemented in C++, Swift, or Kotlin. It includes a core library (react-native-nitro-modules) and an optional code generator (nitrogen) that statically compiles type-safe bindings from TypeScript interfaces.

## Use cases
- write react native native modules in swift instead of objective-c
- create fast c++ native modules for react native
- generate type-safe jsi bindings from typescript interfaces
- call native kotlin code from javascript in react native
- speed up native method calls compared to turbomodules
- build cross-platform native modules with c++ for ios and android

## When to choose
- you need high-performance native-to-JS communication in React Native with minimal overhead
- you want to write native modules in Swift or Kotlin without Objective-C or JNI boilerplate
- you want compile-time type safety between TypeScript and native code

## When to avoid
- you only need simple native modules and prefer the mainstream Expo Modules or Turbo Modules ecosystem
- your project does not use React Native or any JSI-based JavaScript runtime
- you need a mature ecosystem with extensive third-party module support

## Facets
- artifact type: framework
- maturity: active
- function: sdk, developer-tools, build-tool, plugin-system
- domain: mobile-development, cross-platform, developer-tools, performance
- platform: cpp, jvm, cross-platform
- tags: react-native, jsi, native-modules, hybrid-objects, code-generation, nitrogen, turbomodules, ios, android, swift

## Member repositories
- mrousavy/nitro (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:53.197121+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:10:39.064867+00:00, confidence not recorded.
  - readme: https://github.com/mrousavy/nitro (fetched 2026-08-28T04:05:53.197121+00:00, sha 53589590bc94)
  - homepage: https://nitro.margelo.com (fetched 2026-08-29T10:49:51.416054+00:00, sha 04edec95f59f)
  - site_page: https://nitro.margelo.com/docs/getting-started/what-is-nitro (fetched 2026-08-29T10:49:51.425690+00:00, sha 0a1233fdd5f6)
  - site_page: https://nitro.margelo.com/docs/resources/for-library-users (fetched 2026-08-29T10:49:51.427925+00:00, sha be29c5fed997)
- Data as of 2026-08-30T08:39:29.467469+00:00.
