CaskFlow turns the live Homebrew cask catalog into reviewed, release-ready metadata for CaskHub. It classifies applications, tracks when casks were added, extracts vendor icons safely, and publishes versioned assets that CaskHub can consume with a bundled fallback.
| Asset | Purpose | Source |
|---|---|---|
categories.json |
Canonical cask-to-category mapping, taxonomy, release tag, and icon manifest | Repository and latest release |
tap-categories.json |
Categories for casks in registered third-party taps | Latest release |
added_dates.json |
Earliest known Homebrew addition date for each cask | Latest release |
app_identities.json |
Bundle identifiers each cask declares, for matching installed apps | Latest release |
<token>.png |
256×256 application icons, tap icons under taps/<user>/<repo>/ |
Orphan icons branch |
The taxonomy has 17 primary categories and one secondary-only ai trait. Each cask has exactly one primary category and up to two distinct secondary categories. See the classification guide for category boundaries and review rules.
flowchart LR
brew["Homebrew cask API"] --> diff["Diff and homepage metadata"]
diff --> classify["Validated classification"]
classify --> review["Semantic, assigned PR"]
review --> release["Versioned release assets"]
brew --> dates["Mine added dates daily"]
dates --> release
brew --> icons["Safe icon extraction"]
icons --> branch["icons branch"]
taps["Registered taps"] --> sandbox["Sandboxed tap collect"]
sandbox --> release
sandbox --> branch
release --> caskhub["CaskHub"]
branch --> caskhub
- Classification runs daily, adds new casks, and migrates Homebrew token renames. Deprecated, disabled, or removed casks keep their entries so installed copies keep their category. Results below
0.75confidence stay in an assigned PR for manual review; higher-confidence updates may auto-merge after required checks pass. - Releases run daily and on every category merge, independent of classification. Each release stamps
categories.jsonwith its tag and icon manifest, minesadded_dates.jsonfrom Homebrew's history, and verifies every cask inhomebrew/caskhas an added date. - Icons are downloaded from vendor artifacts, checksum-verified, expanded without running installer scripts, and converted from the app bundle's
.icns. See Icon Extraction. - Third-party taps listed in
taps.jsonget icons and categories from a separate weekly pipeline. Tap code is read only inside a per-tap macOS sandbox with no network or credentials. To request a tap, open an Add a tap issue. - House pick, CaskHub's Browse hero, is chosen by hand with the
Set house pickworkflow. It validates the token, writesdata/house_pick.json, and the resulting release stamps it intocategories.jsonashousePick. - Package pilot, a manual installation observation on disposable Apple Silicon and Intel runners, saves evidence for review and publishes nothing.
Requires Python 3.12 or newer.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Deterministic preview; repository files remain unchanged.
LLM_PROVIDER=mock python scripts/classify_new_casks.py --dry-run
# Test suite and coverage report.
pytest --cov=scripts --cov-report=term-missingReal classification supports anthropic, openai, groq, and cloudflare; choose one with LLM_PROVIDER and provide that service's credentials.
| Project | Description | Categories | Added Dates | Icons |
|---|---|---|---|---|
| CaskHub | Native macOS app for discovering, installing, and managing Homebrew casks | ✅ | ✅ | ✅ |
| Applite | User-friendly GUI macOS application for Homebrew casks | - | - | ✅ |
| Tappie | Free native Homebrew GUI for macOS, built with SwiftUI | - | - | ✅ |
| Add yours | Using CaskFlow data in your project? Add it to this table | - | - | - |
CaskFlow is MIT licensed, so no attribution is required. A visible credit with a link back is appreciated, for example:
Cask metadata powered by CaskFlow
Bug reports, taxonomy corrections, tests, and pipeline hardening are welcome. Start with CONTRIBUTING.md for local verification, correction evidence, and the semantic PR title format. Pull requests target develop.
