# curl/trurl

a command line tool for URL parsing and manipulation.

Repository: https://github.com/curl/trurl
Canonical: https://ross.abutalabs.com/products/trurl
Homepage: https://curl.se/trurl/
Language: Perl
License: NOASSERTION
License Family: other
Topics: command-line-tool, manipulation, parsing, url
Last push: 2026-07-16T11:48:17+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 16, longevity 89
- inputs: {"age_days": 1251, "days_push": 48, "days_rel": 478, "gap_med": 120.0, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3348, forks 117 (observed 2026-08-28T04:07:57.665279+00:00)

## What it is
trurl is a command line tool for parsing, manipulating, and normalizing URLs, built on libcurl's URL parser. It is designed like 'tr' but for URLs, helping shell script authors avoid error-prone hand-rolled URL handling.

## Use cases
- parse urls from the command line
- extract url components like host, path, port, or query in shell scripts
- rewrite or redirect urls in a script
- strip tracking parameters from urls
- normalize and sort query strings
- output url parts as json for scripting

## When to choose
- you need reliable, curl-consistent URL parsing in shell scripts
- you want to manipulate URL components without writing fragile regexes
- you need to sanitize or normalize URLs for security

## When to avoid
- you need URL parsing inside a program in a language with native URL libraries
- you need a GUI or interactive URL editor

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, cli, developer-tools, security
- domain: developer-tools, web-development, security
- platform: windows, cli, cross-platform
- tags: url-parsing, url-manipulation, shell-scripting, curl, libcurl, command-line, linux, macos

## Member repositories
- curl/trurl (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:57.665279+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:40:59.492919+00:00, confidence not recorded.
  - readme: https://github.com/curl/trurl (fetched 2026-08-28T04:07:57.665279+00:00, sha 40fc671479aa)
  - homepage: https://curl.se/trurl/ (fetched 2026-08-29T09:34:05.049708+00:00, sha ed00d40525fc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
