unjs/ufo
🔗 URL utils for humans observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 98
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 56.0
- age_days: 2098
- days_rel: 126
- days_push: 15
- n_releases_24m: 5
Adoption not part of the score
1302 stars · 86 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity active
parser serialization developer-tools web-development developer-tools apis bun cross-platform url-parsing url-manipulation typescript esm unjs nodejs deno
2 sources
- readme: https://github.com/unjs/ufo · fetched 2026-08-28 · f5085796ea23
- registry_npm: https://registry.npmjs.org/ufo · fetched 2026-08-29 · 27ba905fa3ad
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| unjs/ufo | main | 88 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem