macOS menu bar tool to track Cursor spending
11 days ago
- #macos
- #menu-bar
- #swiftui
- An open-source macOS menu bar app for workspace/team usage and spend tracking.
- Features include sign-in, settings, auto-refresh, and sharing capabilities.
- Modular Swift Package architecture with one-way dependencies: Core ← Model ← API ← Feature.
- Pure SwiftUI MV approach emphasizing clear boundaries and replaceability.
- Menu bar shows key metrics and details in a popover.
- Sign-in & Settings windows with persisted credentials and preferences.
- Power-aware refresh strategy based on screen power/activity state.
- Built-in fonts and assets for shareable views.
- Currently supports team accounts; contributions for individual/free account compatibility welcome.
- Modular design allows integration of other data sources via PRs.
- No logo yet; designer contributions welcome.
- Brand and data sources are for demonstration purposes.
- UI only interacts with service protocols, not concrete networking implementations.
- Workspace includes multiple Swift Packages with specific responsibilities.
- Key rules: Core for utilities, Model for domain data, API for networking/IO, Feature for UI.
- Dependency direction strictly enforced: Core ← Model ← API ← Feature.
- SwiftUI MV approach uses @State, @Observable, @Environment, @Binding for state management.
- Side effects managed in .task/.onChange with lifecycle-aware cancellation.
- Requirements: macOS 14.0+, Xcode 15.4+, Tuist.
- Installation and setup instructions provided.
- Testing: Each package has its own tests; run via Xcode or CLI.
- Contributions welcome with guidelines for branching, commits, and PRs.
- Issues and troubleshooting tips included.
- Open-sourced under MIT License.