| Crates.io | url-cleaner |
| lib.rs | url-cleaner |
| version | 0.11.0 |
| created_at | 2024-04-24 17:34:47.253328+00 |
| updated_at | 2025-09-19 00:48:28.311438+00 |
| description | A CLI tool and library for URL manipulation with a focus on stripping tracking garbage. |
| homepage | |
| repository | https://github.com/Scripter17/url-cleaner |
| max_upload_size | |
| id | 1219339 |
| size | 128,906 |
Documentation for URL Cleaner in general
The CLI interface for URL Cleaner.
Licensed under the Affero General Public License V3 or later (SPDX: AGPL-3.0-or-later)
https://www.gnu.org/licenses/agpl-3.0.html
On a mostly stock lenovo thinkpad T460S (Intel i5-6300U (4) @ 3.000GHz) running Kubuntu 25.04 (kernel 6.14.0) that has "not much" going on (FireFox, Steam, etc. are closed), hyperfine gives me the following benchmark:
Last updated 2025-09-12.
Also the numbers are in milliseconds.
{
"https://x.com?a=2": {
"0" : 6.524,
"1" : 6.644,
"10" : 6.769,
"100" : 6.903,
"1000" : 9.384,
"10000": 31.225
},
"https://example.com?fb_action_ids&mc_eid&ml_subscriber_hash&oft_ck&s_cid&unicorn_click_id": {
"0" : 6.493,
"1" : 6.651,
"10" : 6.777,
"100" : 7.035,
"1000" : 10.318,
"10000": 39.837
},
"https://www.amazon.ca/UGREEN-Charger-Compact-Adapter-MacBook/dp/B0C6DX66TN/ref=sr_1_5?crid=2CNEQ7A6QR5NM&keywords=ugreen&qid=1704364659&sprefix=ugreen%2Caps%2C139&sr=8-5&ufe=app_do%3Aamzn1.fos.b06bdbbe-20fd-4ebc-88cf-fa04f1ca0da8": {
"0" : 6.452,
"1" : 6.640,
"10" : 6.727,
"100" : 7.001,
"1000" : 10.009,
"10000": 36.882
}
}
For reasons not yet known to me, everything from an Intel i5-8500 (6) @ 4.100GHz to an AMD Ryzen 9 7950X3D (32) @ 5.759GHz seems to max out at between 140 and 110ms per 100k (not a typo) of the amazon URL despite the second CPU being significantly more powerful.
Note: JSON output is supported.
Unless a Debug variant is used, the following should always be true:
The --json/-j flag can be used to have URL Cleaner output JSON instead of lines.
The format looks like this, but minified:
{"Ok": {
"urls": [
{"Ok": "https://example.com/success"},
{"Err": "Error message"}
]
}}
The surrounding {"Ok": {...}} is to let URL Cleaner Site return {"Err": {...}} on invalid input.
Currently, the exit code is determined by the following rules: