# react-native-fast-url

> Fast URL for React Native

Latest version **1.2.0** (published 2025-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-fast-url
pnpm add react-native-fast-url
yarn add react-native-fast-url
bun add react-native-fast-url
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2025-09-19 |
| First published | 2023-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 18.0.0 |
| Dependencies | 0 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | kusstar |
| Maintainers | kuss |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-fast-url
- Repository: https://github.com/KusStar/react-native-fast-url
- Homepage: https://github.com/KusStar/react-native-fast-url#readme
- Issues: https://github.com/KusStar/react-native-fast-url/issues
- npm.io page: https://npm.io/package/react-native-fast-url

## 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.2.0 (latest) — 2025-09-19
- 1.1.0 — 2025-08-16
- 1.0.0 — 2025-07-26
- 0.6.0 — 2025-04-23
- 0.5.0 — 2025-04-09
- 0.4.0 — 2024-01-30
- 0.3.0 — 2024-01-29
- 0.2.0 — 2023-12-01

## README

# react-native-fast-url

A Fast URL and URLSearchParams Polyfills for React Native.

Built 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.

Tested 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.

The legecy branch is still available in the [legacy](https://github.com/KusStar/react-native-fast-url/tree/legacy) branch.

## Installation

```sh
npm install react-native-fast-url
yarn add react-native-fast-url
```

## Benchmarks

Compared to [react-native-url-polyfill](https://github.com/charpeni/react-native-url-polyfill/tree/main).

Run on M1 Pro Mac Catalyst, React Native v0.72.7.

|                           | loop 100        | loop 1,000       | loop 10,000      | loop 100,000     |
|---------------------------|------------|------------|------------|------------|
| react-native-url-polyfill | 22ms       | 125ms      | 1225ms     | 12438ms    |
| react-native-fast-url     | 2ms        | 4ms        | 35ms       | 361ms      |
| fast-url is               | 12x faster | 35x faster | 36x faster | 34x faster |

Benchmark code in example: [bench.ts](./example/src/bench.ts)

This 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.

## Usage

Import the polyfill in your entry file:

```js
// index.js
import 'react-native-fast-url/polyfill';
```

Or if you want to use it only in some files:

```js
import { URL, URLSearchParams } from 'react-native-fast-url';
```

## Contributing

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

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

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