{"id":23270387,"url":"https://github.com/kusstar/react-native-fast-url","last_synced_at":"2025-10-20T08:16:46.909Z","repository":{"id":210212461,"uuid":"725706094","full_name":"KusStar/react-native-fast-url","owner":"KusStar","description":"A Fast URL and URLSearchParams Polyfills for React Native(binding of ada).","archived":false,"fork":false,"pushed_at":"2025-08-16T19:51:57.000Z","size":1926,"stargazers_count":22,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-16T19:52:05.260Z","etag":null,"topics":["jsi","polyfill","react-native","url","url-parser","urlsearchparams"],"latest_commit_sha":null,"homepage":"","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/KusStar.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":"2023-11-30T17:48:31.000Z","updated_at":"2025-08-16T19:52:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"49e447d3-03f3-47a9-96b1-f32cebb4ac6a","html_url":"https://github.com/KusStar/react-native-fast-url","commit_stats":null,"previous_names":["kusstar/react-native-fast-url"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/KusStar/react-native-fast-url","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-fast-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-fast-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-fast-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-fast-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KusStar","download_url":"https://codeload.github.com/KusStar/react-native-fast-url/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusStar%2Freact-native-fast-url/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271420467,"owners_count":24756568,"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-08-21T02:00:08.990Z","response_time":74,"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":["jsi","polyfill","react-native","url","url-parser","urlsearchparams"],"created_at":"2024-12-19T18:51:26.668Z","updated_at":"2025-10-20T08:16:46.814Z","avatar_url":"https://github.com/KusStar.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-fast-url\n\nA Fast URL and URLSearchParams Polyfills for React Native.\n\nBuilt in JSI and [ada](https://github.com/ada-url/ada), a WHATWG-compliant and fast URL parser adopted in Node.js since v18.16 for the best performance.\n\nTested on RN [0.76](https://github.com/KusStar/react-native-fast-url/tree/main/example), [0.80](https://github.com/KusStar/react-native-fast-url/tree/main/example80), **new architecture** supported(https://github.com/KusStar/react-native-fast-url/pull/9). Thanks to [https://github.com/Doublemme](https://github.com/Doublemme) for the contribution.\n\nThe legecy branch is still available in the [legacy](https://github.com/KusStar/react-native-fast-url/tree/legacy) branch.\n\n## Installation\n\n```sh\nnpm install react-native-fast-url\nyarn add react-native-fast-url\n```\n\n## Benchmarks\n\nCompared to [react-native-url-polyfill](https://github.com/charpeni/react-native-url-polyfill/tree/main).\n\nRun on M1 Pro Mac Catalyst, React Native v0.72.7.\n\n|                           | loop 100        | loop 1,000       | loop 10,000      | loop 100,000     |\n|---------------------------|------------|------------|------------|------------|\n| react-native-url-polyfill | 22ms       | 125ms      | 1225ms     | 12438ms    |\n| react-native-fast-url     | 2ms        | 4ms        | 35ms       | 361ms      |\n| fast-url is               | 12x faster | 35x faster | 36x faster | 34x faster |\n\nBenchmark code in example: [bench.ts](./example/src/bench.ts)\n\nThis library(Ada) significantly outperforms `react-native-url-polyfill` in terms of speed, fully embracing the WHATWG URL standard and Unicode Standards. However, it's essential to note that Ada's bundle size is larger compared to `react-native-url-polyfill`. The binary size of the Ada C++ library is approximately **500KB**, while `react-native-url-polyfill` is a more compact **73.67KB**. The choice between the two should be based on your specific requirements and preferences.\n\n## Usage\n\nImport the polyfill in your entry file:\n\n```js\n// index.js\nimport 'react-native-fast-url/polyfill';\n```\n\nOr if you want to use it only in some files:\n\n```js\nimport { URL, URLSearchParams } from 'react-native-fast-url';\n```\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---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusstar%2Freact-native-fast-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkusstar%2Freact-native-fast-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusstar%2Freact-native-fast-url/lists"}