# @react-native/codegen

> Code generation tools for React Native

Latest version **0.87.1** (published 2026-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @react-native/codegen
pnpm add @react-native/codegen
yarn add @react-native/codegen
bun add @react-native/codegen
```

## Health

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

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.87.1 |
| Published | 2026-08-26 |
| First published | 2022-12-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^22.13.0 \|\| ^24.3.0 \|\| >= 26.0.0 |
| Dependencies | 7 |
| Unpacked size | 1023.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 126491 |
| Maintainers | react-native-bot, fb |
| Keywords | code, generation, codegen, tools, react-native |

## Links

- npm: https://www.npmjs.com/package/@react-native/codegen
- Repository: https://github.com/react/react-native
- Homepage: https://github.com/react/react-native/tree/HEAD/packages/react-native-codegen#readme
- Issues: https://github.com/react/react-native/issues
- npm.io page: https://npm.io/package/@react-native/codegen

## Dependencies (7)

- [yargs](https://npm.io/package/yargs.md) ^17.6.2
- [invariant](https://npm.io/package/invariant.md) ^2.2.4
- [nullthrows](https://npm.io/package/nullthrows.md) ^1.1.1
- [tinyglobby](https://npm.io/package/tinyglobby.md) ^0.2.15
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.25.2
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.29.0
- [hermes-parser](https://npm.io/package/hermes-parser.md) 0.36.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.87.1 (latest) — 2026-08-26
- 0.88.0-rc.1 (next) — 2026-09-15
- 0.89.0-nightly-20260915-df6ca864a (nightly) — 2026-09-15
- 0.86.3 (0.86-stable) — 2026-08-24
- 0.83.10 (0.83-stable) — 2026-06-25
- 0.81.6 (0.81-stable) — 2026-02-05
- 0.80.3 (0.80-stable) — 2026-01-26
- 0.79.7 (0.79-stable) — 2025-10-21
- 0.77.3 (0.77-stable) — 2025-07-21
- 0.78.3 (0.78-stable) — 2025-07-09
- 0.76.9 (0.76-stable) — 2025-04-03
- 0.75.5 (0.75-stable) — 2025-02-06
- 0.74.89 (0.74-stable) — 2025-01-27
- 0.74.82 (false) — 2024-05-01
- 0.89.0-nightly-20260914-b2ddd06d9 — 2026-09-14
- … 1164 more at https://npm.io/package/@react-native/codegen/versions

## README

# @react-native/codegen

[![npm]](https://www.npmjs.com/package/@react-native/codegen) [![npm downloads]](https://www.npmjs.com/package/@react-native/codegen)

[npm]: https://img.shields.io/npm/v/@react-native/codegen.svg?color=blue
[npm downloads]: https://img.shields.io/npm/dm/@react-native/codegen.svg

Code generation tools for React Native. Parses TypeScript and Flow NativeModule and Component specs and generates the native binding code used by the New Architecture.

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