# unjs/ufo

🔗 URL utils for humans

Repository: https://github.com/unjs/ufo
Canonical: https://ross.abutalabs.com/products/unjs-ufo
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-18T19:36:37+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 69, longevity 100
- inputs: {"age_days": 2098, "days_push": 15, "days_rel": 126, "gap_med": 56.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1302, forks 86 (observed 2026-08-28T04:04:18.102865+00:00)

## What it is
ufo is a lightweight TypeScript library providing human-friendly URL utilities for parsing, joining, normalizing, and encoding URLs. It is part of the UnJS ecosystem and works in Node.js, Deno, Bun, and browsers.

## Use cases
- parse urls into path, query, and hash parts
- join and normalize url paths safely
- encode and decode url path and query components
- extract hostname and port from a url string
- get the filename from a url path
- handle punycode encoding for hostnames

## When to choose
- you need reliable URL manipulation in JavaScript or TypeScript across runtimes
- you want a tiny dependency-free utility instead of the full WHATWG URL API
- you are building frameworks or tools that need consistent URL normalization and joining

## When to avoid
- you only need the native URL and URLSearchParams APIs available in your runtime
- you need full RFC-compliant URL validation or IDNA processing beyond basic punycode

## Facets
- artifact type: library
- maturity: active
- function: parser, serialization, developer-tools
- domain: web-development, developer-tools, apis
- platform: bun, cross-platform
- tags: url-parsing, url-manipulation, typescript, esm, unjs, nodejs, deno

## Member repositories
- unjs/ufo (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:18.102865+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-30T04:52:11.808767+00:00, confidence not recorded.
  - readme: https://github.com/unjs/ufo (fetched 2026-08-28T04:04:18.102865+00:00, sha f5085796ea23)
  - registry_npm: https://registry.npmjs.org/ufo (fetched 2026-08-29T12:09:47.766742+00:00, sha 27ba905fa3ad)
- Data as of 2026-08-30T08:39:29.467469+00:00.
