- Install, Uninstall, Upgrade packages and casks with terminal output
- Search across all available Homebrew formulae
- View Details including dependencies, homepage, and descriptions
- Track outdated packages and update with one click
- Browse all installed taps
- Add/Remove third-party repositories
- View package counts per tap
- Update Homebrew to latest version
- Cleanup old package versions to save disk space
- Health Check with
brew doctor - Real-time terminal output for all operations
- Vietnamese (TiαΊΏng Viα»t)
- English
- Easy language switching
- Export current packages to Brewfile
- Import packages from Brewfile
- iCloud Sync (optional)
- Native macOS design following Ventura/Sonoma guidelines
- Dark mode support
- Smooth animations and transitions
- Intuitive navigation
Quick stats and maintenance actions at a glance
Browse, search, and manage your installed packages
Manage third-party Homebrew repositories
Update, cleanup, and health check your Homebrew installation
Real-time terminal logs for all operations
Vietnamese and English language support
- macOS 13.0 (Ventura) or later
- Homebrew installed (or use built-in installer)
- Xcode 15.0+ (for building from source)
# Clone the repository
git clone https://github.com/xdev-asia-labs/xBrew.git
cd xBrew
# Generate Xcode project
xcodegen generate
# Open in Xcode
open xBrew.xcodeproj
# Build and run (βR)xBrew follows a clean, modular architecture:
xBrew/
βββ Services/
β βββ AppConfig.swift # Centralized configuration
β βββ HomebrewModels.swift # Data models
β βββ HomebrewManager.swift # Core manager
β βββ HomebrewManager+Commands.swift # Command execution
β βββ HomebrewManager+Packages.swift # Package operations
β βββ HomebrewManager+Taps.swift # Tap management
β βββ BrewfileManager.swift # Brewfile support
β βββ LocalizationManager.swift # i18n
βββ Views/
β βββ DashboardView.swift # Main dashboard
β βββ ModernPackagesView.swift # Package list
β βββ ModernCasksView.swift # Cask list
β βββ ModernTapsView.swift # Tap management
β βββ Components/ # Reusable UI components
βββ Resources/
βββ Localizations/ # Language files
βββ xBrew.entitlements # Sandbox permissions
- Modular services: Separated into focused extensions (~50-120 lines each)
- Centralized config: All settings in
AppConfig.swift - Targeted refresh: Only refresh what changed (performance)
- SwiftUI + Combine: Modern reactive UI
- Documented models: Self-explanatory code with examples
All settings are centralized in AppConfig.swift:
// Homebrew paths (auto-detected)
static let brewPaths = [
"/opt/homebrew/bin/brew", // Apple Silicon
"/usr/local/bin/brew" // Intel
]
// Timeouts
static let commandTimeout: TimeInterval = 300 // 5 minutes
static let cacheTimeout: TimeInterval = 300 // 5 minutes
// Performance
static let maxConcurrentOperations: Int = 4
// iCloud
static let iCloudContainerID = "iCloud.asia.xdev.xBrew"Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Homebrew - The Missing Package Manager for macOS
- Apple's SwiftUI framework
- All contributors and users





