{"id":13836410,"url":"https://github.com/margelo/react-native-worklets-core","last_synced_at":"2025-05-15T18:11:20.941Z","repository":{"id":67299495,"uuid":"427102067","full_name":"margelo/react-native-worklets-core","owner":"margelo","description":"🧵 A library to run JS functions (\"Worklets\") on separate Threads","archived":false,"fork":false,"pushed_at":"2024-11-07T14:44:55.000Z","size":4855,"stargazers_count":662,"open_issues_count":48,"forks_count":45,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-09T18:44:42.556Z","etag":null,"topics":["async","background","hacktoberfest","multithreading","native","react","threads","worklet","worklets"],"latest_commit_sha":null,"homepage":"https://margelo.io","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/margelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-11T18:24:15.000Z","updated_at":"2025-05-07T14:00:33.000Z","dependencies_parsed_at":"2023-10-03T18:31:50.852Z","dependency_job_id":"80dfb955-5502-4a2c-ae70-cfba6b6ffea1","html_url":"https://github.com/margelo/react-native-worklets-core","commit_stats":null,"previous_names":["margelo/react-native-worklets","margelo/react-native-worklets-core","chrfalch/react-native-worklets"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margelo%2Freact-native-worklets-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margelo%2Freact-native-worklets-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margelo%2Freact-native-worklets-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/margelo%2Freact-native-worklets-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/margelo","download_url":"https://codeload.github.com/margelo/react-native-worklets-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394724,"owners_count":22063984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","background","hacktoberfest","multithreading","native","react","threads","worklet","worklets"],"created_at":"2024-08-04T15:00:44.525Z","updated_at":"2025-05-15T18:11:20.896Z","avatar_url":"https://github.com/margelo.png","language":"C++","readme":"\u003ca href=\"https://margelo.io\"\u003e\n  \u003cimg src=\"./img/banner.svg\" width=\"100%\" /\u003e\n\u003c/a\u003e\n\n# 🧵 react-native-worklets-core\n\nA [Worklet](docs/WORKLETS.md) runner for React Native.\n\n```js\nconst worklet = () =\u003e {\n  'worklet'\n  return Math.random()\n}\n```\n\n\u003e [!NOTE]\n\u003e 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).\n\n## Installation\n\n1. Install the library from npm:\n    ```sh\n    yarn add react-native-worklets-core\n    ```\n2. Add the babel plugin to your `babel.config.js`:\n    ```js\n    module.exports = {\n      plugins: [\n        [\"react-native-worklets-core/plugin\"],\n        // ...\n      ],\n      // ...\n    };\n    ```\n3. Restart Metro with clean cache:\n    ```sh\n    yarn start --reset-cache\n    ```\n\n## Usage\n\nSee [USAGE.md](docs/USAGE.md)\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n## Credits\n\n* Credits go to [Christian Falch](https://github.com/chrfalch) for building the initial version of this library. You're amazing! 🤩\n* 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.\n","funding_links":[],"categories":["C++"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmargelo%2Freact-native-worklets-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmargelo%2Freact-native-worklets-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmargelo%2Freact-native-worklets-core/lists"}