# react-native-worklets-core

> A Worklet runner for React Native

Latest version **1.6.3** (published 2026-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-worklets-core
pnpm add react-native-worklets-core
yarn add react-native-worklets-core
bun add react-native-worklets-core
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.6.3 |
| Published | 2026-02-12 |
| First published | 2023-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 392.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 791 |
| Author | Christian Falch |
| Maintainers | chrfalch, mrousavy, hannojg |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-worklets-core
- Repository: https://github.com/margelo/react-native-worklets-core
- Homepage: https://github.com/margelo/react-native-worklets-core#readme
- Issues: https://github.com/margelo/react-native-worklets-core/issues
- npm.io page: https://npm.io/package/react-native-worklets-core

## Dependencies (1)

- [string-hash-64](https://npm.io/package/string-hash-64.md) ^1.0.3

## 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

- 1.6.3 (latest) — 2026-02-12
- 2.0.0-beta.4 (beta) — 2024-06-03
- 1.6.2 — 2025-08-06
- 1.6.1 — 2025-08-06
- 1.6.0 — 2025-07-01
- 1.5.0 — 2024-11-07
- 1.4.0 — 2024-11-06
- 2.0.0-beta.3 — 2024-05-21
- 2.0.0-beta.2 — 2024-05-17
- 2.0.0-beta.1 — 2024-05-15
- 1.3.3 — 2024-05-13
- 1.3.2 — 2024-05-08
- 1.3.1 — 2024-05-08
- 1.3.0 — 2024-05-03
- 1.2.0 — 2024-04-25
- … 18 more at https://npm.io/package/react-native-worklets-core/versions

## README

<a href="https://margelo.io">
  <img src="./img/banner.svg" width="100%" />
</a>

# 🧵 react-native-worklets-core

A [Worklet](docs/WORKLETS.md) runner for React Native.

```js
const worklet = () => {
  'worklet'
  return Math.random()
}
```

> [!NOTE]
> In most cases, react-native-worklets-core shouldn't be used as a standalone dependency but rather as a peer-dependency for other modules such as [react-native-vision-camera](https://github.com/mrousavy/react-native-vision-camera), [react-native-wishlist](https://github.com/margelo/react-native-wishlist), or [react-native-skia](https://github.com/Shopify/react-native-skia).

## Installation

1. Install the library from npm:
    ```sh
    yarn add react-native-worklets-core
    ```
2. Add the babel plugin to your `babel.config.js`:
    ```js
    module.exports = {
      plugins: [
        ["react-native-worklets-core/plugin"],
        // ...
      ],
      // ...
    };
    ```
3. Restart Metro with clean cache:
    ```sh
    yarn start --reset-cache
    ```

## Usage

See [USAGE.md](docs/USAGE.md)

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

## Credits

* Credits go to [Christian Falch](https://github.com/chrfalch) for building the initial version of this library. You're amazing! 🤩
* Credits go to [Software Mansion](https://swmansion.com) for introducing the concept of [Worklets](https://docs.swmansion.com/react-native-reanimated/docs/2.x/fundamentals/worklets/) in [Reanimated v2](https://github.com/software-mansion/react-native-reanimated). This library is inspired by Reanimated v2 with a few structural changes to the Worklets architecture to make it more flexible for different use-cases, such as integrating it with other C++ libraries like VisionCamera and WishList.

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