sourcery

Install command:
brew install sourcery

Meta-programming for Swift, stop writing boilerplate code

https://github.com/krzysztofzablocki/Sourcery

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/sourcery.json

Formula code: sourcery.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.4.1
head ⚡️ HEAD

Uses from macOS: ruby (build), swift (build) (since macOS Sonoma), curl, libxml2, ncurses, sqlite, swift

Requires: Xcode >= 14.3

Binaries: sourcery

GitHub Packages downloads:

Last 30 days39,880
Downloads2,730,091
Analytics install events (30 days)1,787
Downloads / install events (30 days)22.3×

Source: GitHub Packages, fetched 2026-11-11T00:53:19Z. Analytics dates: 2026-10-12 to 2026-11-11. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs1,7875,77953,794
Installs (--HEAD)0331
Installs on Request1,7875,77953,793
Installs on Request (--HEAD)0331
Build Errors1