# cojson-core-rn

> cojson core for react native

Latest version **0.20.19** (published 2026-07-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install cojson-core-rn
pnpm add cojson-core-rn
yarn add cojson-core-rn
bun add cojson-core-rn
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; large bundle; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.20.19 |
| Published | 2026-07-03 |
| First published | 2025-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 148.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Antonio Musolino |
| Maintainers | anselm_io |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/cojson-core-rn
- Repository: https://https://github.com/garden-co/jazz
- Homepage: https://github.com/antoniomuso/cojson-core-rn#readme
- Issues: https://github.com/antoniomuso/cojson-core-rn/issues
- npm.io page: https://npm.io/package/cojson-core-rn

## Dependencies (1)

- [uniffi-bindgen-react-native](https://npm.io/package/uniffi-bindgen-react-native.md) 0.29.3-1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.20.19 (latest) — 2026-07-03
- 0.20.18 — 2026-04-30
- 0.20.17 — 2026-04-08
- 0.20.16 — 2026-03-31
- 0.20.15 — 2026-03-24
- 0.20.14 — 2026-03-13
- 0.20.12 — 2026-03-02
- 0.20.11 — 2026-02-25
- 0.20.10 — 2026-02-19
- 0.20.9 — 2026-02-09
- 0.20.8 — 2026-02-09
- 0.20.7 — 2026-01-28
- 0.20.6 — 2026-01-26
- 0.20.5 — 2026-01-26
- 0.20.4 — 2026-01-23
- … 17 more at https://npm.io/package/cojson-core-rn/versions

## README

# cojson-core-rn

A React Native native module that provides high-performance cryptographic operations for the Jazz framework, built with Rust and UniFFI. This package exposes the same cryptographic primitives as `cojson-core-napi` and `cojson-core-wasm` but specifically designed for React Native applications running on iOS and Android.

## What is cojson-core-rn?

`cojson-core-rn` is a React Native Turbo Module that bridges Rust-based cryptographic code to JavaScript/TypeScript. It uses [uniffi-bindgen-react-native](https://jhugman.github.io/uniffi-bindgen-react-native/) that uses [UniFFI](https://mozilla.github.io/uniffi-rs/) (Unified Foreign Function Interface) to automatically generate type-safe bindings between Rust and React Native, enabling you to use high-performance cryptographic operations in your React Native applications.

### Architecture

The package consists of:

- **Rust Core** (`rust/`): The core cryptographic implementation, shared with `cojson-core` and `cojson-core-napi`
- **UniFFI Bindings**: Automatically generated bindings that bridge Rust to React Native
- **Native Modules**: 
  - **iOS**: XCFramework containing static libraries for arm64 (device) and arm64-simulator
  - **Android**: CMake-based native library compiled for multiple architectures
- **TypeScript Wrapper**: Type-safe JavaScript/TypeScript API that wraps the native bindings

## Installation

### In the Jazz Monorepo

If you're working within the Jazz monorepo, the package is already available as a workspace dependency:

```bash
# From the monorepo root
pnpm install
pnpm build:rn
```

### As a Standalone Package

```bash
pnpm install cojson-core-rn
```

The package includes pre-built native binaries for:
- **iOS**: arm64 (device) and arm64-simulator
- **Android**: Multiple architectures (arm64, arm, x86_64, etc.)

## Building from Source

### Prerequisites

Before building `cojson-core-rn`, ensure you followed this [guide](https://jhugman.github.io/uniffi-bindgen-react-native/guides/rn/pre-installation.html).

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