# nitrogen

> Code generator for React Native Nitro Modules that turns TypeScript specs into C++, Swift, and Kotlin bindings.

Latest version **0.37.2** (published 2026-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install nitrogen
pnpm add nitrogen
yarn add nitrogen
bun add nitrogen
```

Provides the command `nitrogen`.

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.37.2 |
| Published | 2026-11-03 |
| First published | 2013-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 848.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1979 |
| Author | Marc Rousavy |
| Maintainers | mrousavy |

## Links

- npm: https://www.npmjs.com/package/nitrogen
- Repository: https://github.com/margelo/nitro
- Homepage: https://nitro.margelo.com/docs/concepts/nitrogen
- Issues: https://github.com/margelo/nitro/issues
- npm.io page: https://npm.io/package/nitrogen

## Dependencies (5)

- [zod](https://npm.io/package/zod.md) ^4.4.3
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [yargs](https://npm.io/package/yargs.md) ^18.0.0
- [ts-morph](https://npm.io/package/ts-morph.md) ^28.0.0
- [nitro-core](https://npm.io/package/nitro-core.md) 0.37.2

## Recent versions

- 0.37.2 (latest) — 2026-11-03
- 0.37.3-nightly.133.g215c15303ead (nightly) — 2026-11-27
- 1.0.0-alpha.nightly.138.g43e09c161101 (alpha-nightly) — 2026-11-26
- 0.37.3-nightly.131.g4bc91a709d46 (nightly-d4d70b191d66) — 2026-11-10
- 0.37.2-nightly.32.gcd7b91624dde (nightly-7f18a1a6bd0d) — 2026-10-20
- 0.37.0-beta.1 (beta) — 2026-08-20
- 1.0.0-alpha.nightly.137.gd4793c40b8b8 — 2026-11-25
- 1.0.0-alpha.nightly.136.gdb81de61bd32 — 2026-11-10
- 0.37.3-nightly.132.ge199d0eb6bc4 — 2026-11-09
- 0.37.3-nightly.129.g7a8a51bd8d7a — 2026-11-09
- 1.0.0-alpha.nightly.124.g8a95de8fa7e3 — 2026-11-09
- 0.37.3-nightly.123.gaf4aa5051ae5 — 2026-11-09
- 0.37.3-nightly.122.gb973d8d69ab7 — 2026-11-09
- 1.0.0-alpha.nightly.120.g33ef045b96c0 — 2026-11-02
- 1.0.0-alpha.nightly.115.gcdaf72e60229 — 2026-11-02
- … 286 more at https://npm.io/package/nitrogen/versions

## README

<a href="https://nitro.margelo.com/docs/concepts/nitrogen">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/margelo/nitro/main/docs/static/img/banner-nitrogen-dark.png" />
    <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/margelo/nitro/main/docs/static/img/banner-nitrogen-light.png" />
    <img alt="Nitrogen" src="https://raw.githubusercontent.com/margelo/nitro/main/docs/static/img/banner-nitrogen-light.png" />
  </picture>
</a>

<br />

**Nitrogen** is a code-generator that takes TypeScript interfaces and generates C++, Swift and Kotlin code and native bindings built on top of the [**nitro-core**](../nitro-core/) APIs.

## Installation

Install [nitrogen](https://npmjs.org/nitrogen) as a `devDependency` in your Nitro Module:
```sh
npm i nitrogen -D
```

Then, generate your specs;

```sh
npx nitrogen
```

## Usage

See the [Nitrogen documentation](https://nitro.margelo.com/docs/concepts/nitrogen) for more information.

---
_Source: https://npm.io/package/nitrogen · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
