A lightweight macOS menu bar app for tracking work hours. Designed for freelancers and self-employed individuals who need simple, distraction-free time tracking.
- One-Click Tracking: Clock in/out directly from the menu bar
- Global Shortcut: Configure a keyboard shortcut for quick access
- Daily & Monthly Summaries: View your work hours at a glance
- Statistics: Visualize work hours and earnings with interactive bar charts
- Hourly Rate: Track earnings based on configurable hourly rate (JPY)
- Reminder Notifications: Get notified if you forget to clock out
- Clock Event Notifications: Optional notifications on clock in/out
- History Management: View, edit, and bulk delete past entries
- Sleep Detection: Automatically clock out when your Mac sleeps (configurable)
- Crash Recovery: Sessions are preserved even if the app crashes
Coming soon
- macOS 26.2 or later
- Apple Silicon or Intel Mac
-
Clone the repository:
git clone https://github.com/5n7/clocklet.git cd clocklet -
Open in Xcode:
open Clocklet/Clocklet.xcodeproj
-
Build and run (⌘R)
Coming soon
- Clock In: Click the clock icon in the menu bar and select "Clock In"
- Clock Out: Click again and select "Clock Out"
- View History: Access your time entries from the menu
- View Statistics: See charts of your work hours and earnings over time
- Settings: Configure shortcuts, reminders, hourly rate, and other preferences
Set a global shortcut in Settings to toggle clock in/out from anywhere.
Your time entries are stored locally at:
~/Library/Application Support/Clocklet/data.json
The data is human-readable JSON and can be manually edited if needed.
- Language: Swift
- UI: SwiftUI + AppKit
- Architecture: MVVM with @Observable
- Data: JSON file with Codable
- Dependencies: Swift Package Manager
# Build
xcodebuild -scheme Clocklet -configuration Debug build
# Run tests
xcodebuild -scheme Clocklet testClocklet/
├── Models/ # Data models (TimeEntry, ClockletData)
├── ViewModels/ # Business logic (ClockViewModel)
├── Views/ # SwiftUI views
├── Services/ # DataStore, Notifications, Settings
└── Utilities/ # Formatters and helpers
MIT License - see LICENSE for details.
Contributions are welcome! Please read the documentation before submitting PRs.
- KeyboardShortcuts by Sindre Sorhus
- LaunchAtLogin by Sindre Sorhus