This directory contains documentation for the TimeTracker mobile (Flutter) and desktop (Electron) applications. The Chromium toolbar extension lives in browser-extension/ and uses the same /api/v1 auth and timer APIs.
The TimeTracker mobile and desktop apps (and the browser extension) connect to the TimeTracker backend via the REST API.
Located in mobile/ directory.
- Time tracking with start/pause/resume/stop timer
- Project and task management
- Time entries with filters and offline queue
- Workday clock-in/out and breaks
- Finance & workforce (invoices, expenses, time-off, timesheets, approvals)
- Offline support with periodic automatic sync
- Secure token-based authentication (username/password login → API token)
- Server discovery via
GET /api/v1/info(rejects non-TimeTracker hosts and unfinished setup)
See mobile/README.md for setup instructions.
- Android:
flutter build apkorflutter build appbundle - iOS:
flutter build iosthen archive in Xcode
Located in desktop/ directory.
- Time tracking with system tray integration (start/stop/pause/resume)
- Workday clock-in/out and break controls
- Project and task management, Kanban board
- Time entries, reports summary
- Invoices, expenses, payments, mileage, quotes, recurring invoices, credit notes
- CRM: leads, deals, client contacts and notes
- Workforce: timesheets, time-off, approvals
- Offline support for timer and time-entry mutations
- Username/password login → API token (
tt_…) - Global keyboard shortcuts (timer toggle, show window)
See desktop/README.md for setup instructions.
- Windows:
npm run build:win - macOS:
npm run build:mac - Linux:
npm run build:linux
Gap analysis vs the webapp: DESKTOP_WEBAPP_GAP.md.
Located in browser-extension/ directory. See browser-extension/README.md.
- Toolbar popup to start/stop a project timer with optional task and notes
- Badge + red clock icon while a timer is running
- Quick-create task or project (project needs an existing client)
- Username/password login or pasted
tt_…API token (useful for OIDC-only installs)
Load the folder as an unpacked extension in Chrome/Edge developer mode, then open Options to connect to your server URL.
Mobile, desktop, and the browser extension use the TimeTracker REST API v1 (/api/v1/). See API Documentation for details.
- Mobile app: Sign in with your web username and password; the server returns an API token (
tt_…) which is stored securely. Changing the Server URL in Settings probes the new host with your saved token before persisting the change. - Desktop app: Two-step wizard (test server, then username/password). The app calls
POST /api/v1/auth/loginand stores the returned token. Optional long-lived tokens can still be created under Admin → Security & Access → API tokens. - Browser extension: Options page — server URL plus password login or a pasted API token; host access is requested with
chrome.permissionsfor that origin. See browser-extension/README.md. - Clients validate the server with
GET /api/v1/info(and respectsetup_requiredwhen the installation is not finished) and validate the token with authenticated API calls.
read:time_entries- View time entries and timer status (desktop session check fallback; mobile login token includes this)write:time_entries- Create/update time entries and control timerread:projects- View projectsread:tasks- View tasksread:users- Optional on desktop tokens; preferred soGET /api/v1/users/mecan be used for session verification- Additional scopes as needed for invoices, CRM, attendance, etc. (password-login tokens typically include broad app scopes)
GET /api/v1/info- API metadata (includessetup_requiredwhen the server install is not complete); used for discovery without authPOST /api/v1/auth/login- Username/password → tokenGET /api/v1/timer/status- Get active timer statusPOST /api/v1/timer/start- Start timerPOST /api/v1/timer/pause/resume/stop- Timer controlGET /api/v1/attendance/status,POST /api/v1/workday/start|end, attendance break start/endGET /api/v1/time-entries- List time entriesPOST /api/v1/time-entries- Create time entryPUT /api/v1/time-entries/{id}- Update time entryGET /api/v1/projects/tasks/clients/reports/summary- Finance, CRM, Kanban, and workforce routes as used by the desktop views
DELETE /api/v1/time-entries/{id}- Delete time entryGET /api/v1/projects- List projectsGET /api/v1/tasks- List tasks
Both apps support offline operation:
- Local Storage: Time entries, projects, and tasks are cached locally
- Sync Queue: Operations performed offline are queued for sync
- Automatic Sync: When connection is restored, queued operations are processed
- Conflict Resolution: Server data takes precedence on conflict
The mobile app sends an Idempotency-Key on queued POST /api/v1/time-entries creates so retries after connectivity drops do not duplicate entries. See REST API: Idempotent time entry creation.
- Install Flutter SDK
- Run
flutter pub getinmobile/directory - Run
flutter runto start development
- Install Node.js 18+
- Run
npm installindesktop/directory - Run
npm run devto start development
- Load
browser-extension/as an unpacked extension in Chrome/Edge (Developer mode) - After code changes, click Reload on the extension card
- See browser-extension/README.md
- Android: Generate signed APK/AAB and submit to Google Play Store
- iOS: Archive and submit to Apple App Store (requires Apple Developer account)
- Windows: NSIS installer created in
dist/directory - macOS: DMG installer (requires code signing for distribution)
- Linux: AppImage and .deb packages
- Load unpacked for self-hosted / development use
- Chrome Web Store packaging is not included in this repository yet
App versions should align with the backend version (see setup.py for current version). Update version numbers in:
- Mobile:
mobile/pubspec.yaml - Desktop:
desktop/package.json - Browser extension:
browser-extension/manifest.json - Backend:
setup.py
For issues or questions:
- Check the main project README
- Review API documentation
- Check app-specific README files
- Open an issue on GitHub