libffi

Install command:
brew install libffi

Portable Foreign Function Interface library

https://sourceware.org/libffi/

License: MIT

Development: Pull requests

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

Formula code: libffi.rb on GitHub

Bottle (binary package) installation support provided for:

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

Current versions:

stable ✅ 3.8.0
head ⚡️ HEAD

Keg-only because macOS already provides this software.

GitHub Packages downloads:

Last 30 days1,281,641
Downloads38,496,993
Analytics install events (30 days)129,923
Downloads / install events (30 days)9.9×

Source: GitHub Packages, fetched 2026-11-14T00:20:07Z. Analytics dates: 2026-10-15 to 2026-11-14. 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
Installs129,911300,8751,206,539
Installs (--HEAD)1222122
Installs on Request3,85811,42273,069
Installs on Request (--HEAD)1019112
Build Errors0