{"id":20439042,"url":"https://github.com/austinksmith/react-native-workerbee","last_synced_at":"2025-09-14T16:09:59.543Z","repository":{"id":257824527,"uuid":"871777344","full_name":"austinksmith/react-native-workerbee","owner":"austinksmith","description":"Worker Thread Support For ReactNative Using STD::Thread ","archived":false,"fork":false,"pushed_at":"2024-10-26T14:43:43.000Z","size":207,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T06:18:00.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austinksmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2024-10-12T22:51:03.000Z","updated_at":"2025-01-27T16:01:38.000Z","dependencies_parsed_at":"2025-04-14T12:16:39.867Z","dependency_job_id":null,"html_url":"https://github.com/austinksmith/react-native-workerbee","commit_stats":null,"previous_names":["austinksmith/react-native-workerbee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/austinksmith/react-native-workerbee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinksmith%2Freact-native-workerbee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinksmith%2Freact-native-workerbee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinksmith%2Freact-native-workerbee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinksmith%2Freact-native-workerbee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austinksmith","download_url":"https://codeload.github.com/austinksmith/react-native-workerbee/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austinksmith%2Freact-native-workerbee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275129091,"owners_count":25410412,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T09:14:26.207Z","updated_at":"2025-09-14T16:09:59.504Z","avatar_url":"https://github.com/austinksmith.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-workerbee\n\nA Web Worker-like implementation for React Native using JSI.\n\n**Author**: Austin K. Smith\n\n![react-native-workerbee-logo](https://asmithdev.com/img/workerbee.png)\n\n\n[![npm version](https://img.shields.io/npm/v/react-native-workerbee.svg?style=flat-square)](https://www.npmjs.com/package/react-native-workerbee)\n[![downloads](https://img.shields.io/npm/dm/react-native-workerbee.svg?style=flat-square)](https://www.npmjs.com/package/react-native-workerbee)\n\n## Installation\n\n```sh\nnpm install react-native-workerbee\n# or\nyarn add react-native-workerbee\n```\n\n### Android Setup\n\n1. Open up `android/app/src/main/java/[...]/MainApplication.java`\n   - Add `import com.austinksmith.reactnativeworkerbee.WorkerBeePackage;` to the imports at the top of the file\n   - Add `packages.add(new WorkerBeePackage());` in the `getPackages()` method\n\n2. Append the following lines to `android/settings.gradle`:\n   ```gradle\n   include ':react-native-workerbee'\n   project(':react-native-workerbee').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-workerbee/android')\n   ```\n\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n   ```gradle\n   implementation project(':react-native-workerbee')\n   ```\n\n## Usage\n\n```javascript\nimport WorkerBee from 'react-native-workerbee';\n\n// Create a new worker\nconst worker = new WorkerBee('path/to/your/worker/script.js');\n\n// Post a message to the worker\nworker.postMessage({ type: 'START', payload: { /* ... */ } });\n\n// Terminate the worker\nworker.terminate();\n```\n\n## API\n\n### `constructor(scriptURL: string)`\n\nCreates a new WorkerBee instance.\n\n- `scriptURL`: The path to your worker script file.\n\n### `postMessage(message: any)`\n\nSends a message to the worker.\n\n- `message`: The message to send to the worker. This will be serialized to JSON.\n\n### `terminate()`\n\nTerminates the worker.\n\n## Platform Support\n\nCurrently, this module only supports Android. iOS support is planned for future releases.\n\n## License\n\nArtistic License 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinksmith%2Freact-native-workerbee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustinksmith%2Freact-native-workerbee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustinksmith%2Freact-native-workerbee/lists"}