# mvdan/xurls

Extract urls from text

Repository: https://github.com/mvdan/xurls
Canonical: https://ross.abutalabs.com/products/xurls
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: go, extract-urls, tld
Last push: 2026-08-20T06:45:06+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 4252, "days_push": 13, "days_rel": 608, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1265, forks 118 (observed 2026-08-28T04:04:11.065765+00:00)

## What it is
A Go library and CLI tool that extracts URLs from arbitrary text using regular expressions built from TLD lists. It offers Relaxed and Strict matching modes exposed via the standard regexp.Regexp API.

## Use cases
- extract urls from text
- find links in a string in go
- pull all http urls out of a document
- detect bare domain names like foo.com in text
- cli to list urls from stdin

## When to choose
- you need URL extraction in a Go program with a regexp-based API
- you want both scheme-required and bare-domain matching modes
- you want a simple command-line URL extractor

## When to avoid
- you need full HTML parsing or link context
- you need URL normalization or crawling, not just extraction
- you work outside the Go ecosystem

## Facets
- artifact type: library
- maturity: active
- function: parser, web-scraping, nlp
- domain: developer-tools, text-editors
- platform: go, cli, cross-platform
- tags: url-extraction, regex, tld, go-library, natural-language-processing

## Member repositories
- mvdan/xurls (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:11.065765+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-30T05:03:52.724512+00:00, confidence not recorded.
  - readme: https://github.com/mvdan/xurls (fetched 2026-08-28T04:04:11.065765+00:00, sha 4d1a8549fd93)
- Data as of 2026-08-30T08:39:29.467469+00:00.
