# Install xurls with Homebrew, Nix

Extract urls from text. Version 2.6.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:xurls
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install xurls
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xurls
```

  Evidence: nixpkgs package indexes: pkgs/by-name/xu/xurls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:xurls
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/xurls>
- **Version:** 2.6.0
- **Source summary:** Extract urls from text
- **Homepage:** <https://github.com/mvdan/xurls>
- **Repository:** <https://github.com/mvdan/xurls>
- **Upstream docs:** <https://github.com/mvdan/xurls#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/mvdan/xurls/archive/refs/tags/v2.6.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- xurls (cli)
- xurls (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.6.0
- Local data: ok
- Upstream repository: https://github.com/mvdan/xurls
- Upstream latest detected: v2.6.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

xurls is Daniel Marti's Go library and CLI for extracting URLs from text with curated regular expressions. It exposes strict and relaxed matchers as Go APIs and ships `cmd/xurls` for shell pipelines.

### Project history

The GitHub repository was created in January 2015 and grew as a small Go package centered on reusable `regexp.Regexp` values. The README documents the v2 module path `mvdan.cc/xurls/v2`, strict and relaxed matching, cached compiled expressions, and a CLI install path via `go install`.

The release history shows the project adapting to URL edge cases rather than trying to become a full parser: Go modules, internationalized and punycode TLD handling, markdown punctuation cases, large-input CLI fixes, `xurls -fix`, redirect handling, and regular updates to TLD and scheme lists.

### Adoption history

xurls is used as both a library and a command because URL extraction from arbitrary text appears in log processing, documentation checks, chat exports, feed cleanup, and static analysis. Its package-manager presence points to a developer-tool audience rather than a large end-user app.

### How it is used

As a CLI, `xurls` reads text and prints matched URLs for shell pipelines. As a Go package, callers use `xurls.Relaxed()` or `xurls.Strict()` and then call standard `regexp` methods such as `FindString` or `FindAllString`.

### Why package nerds care

xurls is package-nerd interesting because it packages a messy text-processing convention as a tiny, reproducible Go tool. Its history is mostly a record of edge cases in the public URL ecosystem: new schemes, TLD churn, Unicode, markdown punctuation, email ambiguity, and redirect cleanup.

### Timeline

- 2015-01-12: GitHub repository created.
- 2018-10-21: v2.0.0 converts the API to Go modules under `mvdan.cc/xurls/v2`.
- 2019-09-22: v2.1.0 improves punycode and markdown-adjacent matching and fixes a large-input CLI crash.
- 2020-04-17: v2.2.0 adds `xurls -fix` and improves non-ASCII TLD matching.
- 2023-04-16: v2.5.0 expands `xurls -fix` behavior and adds a version flag.
- 2025-01-02: v2.6.0 updates schemes/TLDs and refines relaxed matching.

### Related projects

- Go `regexp`: the standard API shape xurls deliberately exposes.
- mvdan.cc/sh and shfmt: other developer tools by the same author.
- Public TLD and URI-scheme data sources: the moving ecosystem xurls periodically tracks.

### Sources

- <https://api.github.com/repos/mvdan/xurls>
- <https://api.github.com/repos/mvdan/xurls/releases?per_page=8>
- <https://github.com/mvdan/xurls>
- <https://pkg.go.dev/mvdan.cc/xurls/v2>
- <https://raw.githubusercontent.com/mvdan/xurls/master/README.md>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xurls
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - xurls: normalized package name match | nixpkgs package indexes: pkgs/by-name/xu/xurls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [sttr](https://www.automicvault.com/pkg/brew/sttr/) - Shares av.db curated category or tags: cli, developer-tools, go, text-processing.
- [uni](https://www.automicvault.com/pkg/brew/uni/) - Shares av.db curated category or tags: cli, developer-tools, go, text-processing.
- [align](https://www.automicvault.com/pkg/brew/align/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cconv](https://www.automicvault.com/pkg/brew/cconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cmigemo](https://www.automicvault.com/pkg/brew/cmigemo/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [decasify](https://www.automicvault.com/pkg/brew/decasify/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [desed](https://www.automicvault.com/pkg/brew/desed/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [pk](https://www.automicvault.com/pkg/brew/pk/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, extraction, processing.

## Combined YAML source

View the package source record on GitHub. [combined/xurls.yml](https://github.com/automic-vault/db/blob/main/combined/xurls.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
