{"id":13538402,"url":"https://github.com/mrousavy/react-native-blob-jsi-helper","last_synced_at":"2025-03-31T06:08:30.165Z","repository":{"id":38344458,"uuid":"449254778","full_name":"mrousavy/react-native-blob-jsi-helper","owner":"mrousavy","description":"A React Native library for accessing an ArrayBuffer of a Blob instance.","archived":false,"fork":false,"pushed_at":"2023-07-07T08:26:46.000Z","size":622,"stargazers_count":119,"open_issues_count":3,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-02T00:59:20.395Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrousavy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2022-01-18T11:19:51.000Z","updated_at":"2024-04-02T13:43:14.000Z","dependencies_parsed_at":"2024-01-13T16:51:20.786Z","dependency_job_id":"bf8a34aa-1f93-46ee-a4dd-b6c3928509af","html_url":"https://github.com/mrousavy/react-native-blob-jsi-helper","commit_stats":{"total_commits":55,"total_committers":4,"mean_commits":13.75,"dds":"0.10909090909090913","last_synced_commit":"905da807a83b156349b745fa02a3d8fb907eacaf"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-blob-jsi-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-blob-jsi-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-blob-jsi-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrousavy%2Freact-native-blob-jsi-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrousavy","download_url":"https://codeload.github.com/mrousavy/react-native-blob-jsi-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423731,"owners_count":20774820,"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":[],"created_at":"2024-08-01T09:01:11.477Z","updated_at":"2025-03-31T06:08:30.146Z","avatar_url":"https://github.com/mrousavy.png","language":"C++","funding_links":[],"categories":["Uncategorized","C++"],"sub_categories":["Uncategorized"],"readme":"# react-native-blob-jsi-helper\n\n[![Try Showtime!](./img/github-banner.png)](http://showtime.io)\n\nA React Native library for directly accessing an ArrayBuffer of a Blob instance.\n\n\u003e Note: This is a workaround. A long-term solution would be to implement this directly on the Blob instance in React Native Core.\n\n## Installation\n\n```sh\nnpm install react-native-blob-jsi-helper\n```\n\n## Usage\n\n### Accessing the ArrayBuffer of a Blob instance\n\n```js\nimport { getArrayBufferForBlob } from \"react-native-blob-jsi-helper\";\n\n// ...\n\nconst blob = ...\nconst arrayBuffer = getArrayBufferForBlob(blob);\n```\n\n### Creating a Blob from an ArrayBuffer\n\n```js\nimport { getBlobForArrayBuffer } from \"react-native-blob-jsi-helper\";\n\n// ...\n\nconst arrayBuffer = ...\nconst blob = getBlobForArrayBuffer(arrayBuffer);\n```\n\n## Performance\n\nIf you know me, you know that my libraries are as fast as they can get. react-native-blob-jsi-helper is no different - it is written in C++ JSI and is therefore really fast.\n\n* **Zero** bridge-traffic.\n* **Zero** serialization/deserialization.\n\n### Blob -\u003e ArrayBuffer\n\n* For a **10 kB** Buffer, I have measured **1ms**.\n* For a **12 MB** Buffer, I have measured **13ms**.\n\n### ArrayBuffer -\u003e Blob\n\n* For a **10 kB** Buffer, I have measured **0.05ms**.\n* For a **12 MB** Buffer, I have measured **0.3ms**.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Freact-native-blob-jsi-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrousavy%2Freact-native-blob-jsi-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrousavy%2Freact-native-blob-jsi-helper/lists"}