# Install cascadia with Homebrew

Go cascadia package command-line CSS selector. Version 1.5.1 via Homebrew; verified 2026-05-29.

## Install

```sh
sudo av install brew:cascadia
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cascadia
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:cascadia
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cascadia>
- **Version:** 1.5.1
- **Source summary:** Go cascadia package command-line CSS selector
- **Homepage:** <https://github.com/suntong/cascadia>
- **Repository:** <https://github.com/suntong/cascadia>
- **Upstream docs:** <https://github.com/suntong/cascadia#readme>
- **License:** MIT
- **Source archive:** <https://github.com/suntong/cascadia/archive/refs/tags/v1.5.1.tar.gz>
- **Last updated:** 2026-05-29T16:39:24Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cascadia (cli)
- cascadia (alias)

## Build dependencies

- go

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.5.1
- Package-manager updated: 2026-05-29
- Local data: ok
- Upstream repository: https://github.com/suntong/cascadia
- Upstream latest detected: v1.5.1 (current)
## Project history and usage

Cascadia is a Go command-line wrapper around the Go Cascadia CSS selector package, aimed at testing selectors and extracting HTML/XML content without writing a Go program.

### Project history

The project began publicly in 2016 under Tong Sun's GitHub account. Its README says it started as a thin wrapper around Andy Balholm's Go Cascadia package and grew into a more capable selector-testing and extraction tool.

### Adoption history

The official README documents binary releases, Debian/Ubuntu installation, distro packages through the author's Cloudsmith repository, and Homebrew packaging. GitHub metadata shows a small but active open-source utility with wiki documentation and cross-platform release artifacts.

Homebrew analytics show modest niche use, with 190 installs in the last 365 days in the formula API.

### How it is used

Users pass an input file or stdin, a CSS selector, and an output target. The tool supports text output, raw output, block and piece extraction, wrapped HTML output, and CSV/TSV-style table output for scraping workflows.

### Why package nerds care

Cascadia is package-nerd useful because it exposes a library-grade CSS selector engine as a tiny shell tool. It fits scripts, data-cleaning one-liners, and package tests where pulling in a browser or a larger scraper would be excessive.

### Timeline

- 2016: Public GitHub repository created and copyright range begins in the CLI help.
- 2025: README example shows version 1.5.0 built on 2025-11-10.
- 2026: Homebrew formula packages v1.5.1 and tracks the GitHub release tarball.

### Related projects

- andybalholm/cascadia provides the Go CSS selector package wrapped by this CLI.
- andrew-d/goscrape is cited by the README as an influence for block and piece extraction concepts.

### Sources

- <https://api.github.com/repos/suntong/cascadia>
- <https://github.com/suntong/cascadia>
- <https://github.com/suntong/cascadia/wiki>
- <https://github.com/suntong/cascadia#readme>
- <https://formulae.brew.sh/api/formula/cascadia.json>


## 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:** cascadia
- **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


## 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.
- [flyscrape](https://www.automicvault.com/pkg/brew/flyscrape/) - Shares av.db curated category or tags: cli, developer-tools, web-scraping.
- [htmlq](https://www.automicvault.com/pkg/brew/htmlq/) - Shares av.db curated category or tags: cli, css-selectors, developer-tools, html.
- [htmltest](https://www.automicvault.com/pkg/brew/htmltest/) - Shares av.db curated category or tags: cli, developer-tools, go, html.
- [pit](https://www.automicvault.com/pkg/brew/pit/) - Shares av.db curated category or tags: cli, developer-tools, web-scraping.
- [shub](https://www.automicvault.com/pkg/brew/shub/) - Shares av.db curated category or tags: cli, developer-tools, web-scraping.
- [templ](https://www.automicvault.com/pkg/brew/templ/) - Shares av.db curated category or tags: cli, developer-tools, go, html.
- [adr-viewer](https://www.automicvault.com/pkg/brew/adr-viewer/) - Shares av.db curated category or tags: cli, developer-tools, html.
- [aha](https://www.automicvault.com/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, html.
- [go-rice](https://www.automicvault.com/pkg/brew/go-rice/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, css, developer, developer-tools, go.

## Combined YAML source

View the package source record on GitHub. [combined/cascadia.yml](https://github.com/automic-vault/db/blob/main/combined/cascadia.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
- cross-ecosystem install command graph
