A modern, feature-rich Progressive Web App (PWA) for time tracking built with React, TypeScript, and Tailwind CSS. Installable on desktop and mobile devices with full offline support. Perfect for freelancers, consultants, and professionals who need to track time, manage projects, and generate invoices.
- Progressive Web App Features
- Authentication & Data Storage
- Features
- Quick Start
- Installation as PWA
- Usage Guide
- Technical Details
- Perfect For
- Development
- Documentation
- License
TimeTracker Pro is a fully-featured Progressive Web App!
- ✅ Desktop Installation: Install from Chrome, Edge, or Firefox on Windows, Mac, and Linux
- ✅ Mobile Installation: Add to home screen on iOS (Safari) and Android (Chrome)
- ✅ Standalone Mode: Launches in its own window without browser UI
- ✅ App Icon: Professional app icon on your device
- ✅ Splash Screen: Native-like launch experience
- ✅ Full Offline Support: Continue tracking time without internet connection
- ✅ Service Worker: Intelligent caching for instant loading
- ✅ Offline Queue: Actions sync automatically when connection restored
- ✅ Smart Caching: Static assets cached for blazing-fast performance
- ✅ Background Sync: Data syncs even when app is closed
- ✅ Touch-Friendly: 44×44px minimum touch targets
- ✅ Bottom Navigation: Easy thumb access on mobile devices
- ✅ Safe Areas: Proper spacing for notched devices (iPhone X+)
- ✅ Responsive Design: Adapts to any screen size
- ✅ Landscape Support: Optimized for both orientations
- ✅ Auto-Update: New versions install automatically
- ✅ Update Notifications: Prompts to refresh when updates available
- ✅ Install Prompts: Smart timing for installation suggestions
- ✅ Version Management: Seamless updates without data loss
NEW: TimeTracker Pro now supports both authenticated and guest usage!
- 🔄 Cloud Sync: Sign in with Supabase to sync data across devices
- 💾 Local Storage: Use without an account - data stays on your device
- 🔄 Data Migration: Existing data automatically migrates when you sign in
- ⚡ Offline-First: Full functionality available with or without internet
- 🎯 Manual Sync: Optimized for single-device usage with on-demand syncing
See AUTHENTICATION.md for detailed setup instructions.
- Start/Stop Day Tracking: Begin and end your work day with clear boundaries
- Task Management: Create, edit, and delete tasks with real-time duration tracking
- Project & Client Organization: Assign tasks to specific projects and clients
- Category Management: Organize tasks with billable/non-billable categories
- Persistent Data: Data saved to localStorage (guest) or Supabase (authenticated)
- Archive System: Complete days are archived with full task details and history
- Category System: Flexible categorization with billable/non-billable flags
- Export Capabilities: Export data as CSV or JSON for external use
- Invoice Generation: Generate invoice data for specific clients and date ranges
- Project Management: Create projects with hourly rates and client assignments
- Print Support: Print-friendly archive views for physical records
- Revenue Tracking: Automatic calculation of earnings based on hourly rates
- Billable Hours Tracking: Separate billable and non-billable time
- Time Analytics: View total hours and revenue across all projects
- Data Export: Multiple export formats for integration with accounting software
- CSV Import: Import existing time data from compatible CSV files
- Mobile Responsive: Works seamlessly on desktop and mobile devices
# Clone the repository
git clone https://github.com/AdamJ/TimeTrackerPro.git
# Navigate to project directory
cd TimeTrackerPro
# Install dependencies
npm install
# 🔒 OPTIONAL: Setup environment variables for cloud sync
cp .env.example .env
# Edit .env with your Supabase credentials (see .env.example for instructions)
# Start development server
npm run devThe application will be available at http://localhost:8080
- Open the app in your browser
- Look for the install icon (⊕) in the address bar
- Click "Install" when prompted
- The app will open in its own window
- Find it in your applications/start menu
- Open the app in Safari
- Tap the Share button (□↑)
- Scroll and tap "Add to Home Screen"
- Tap "Add" to confirm
- Find the app icon on your home screen
- Open the app in Chrome
- Tap the menu (⋮) in the top-right
- Tap "Install app" or "Add to Home screen"
- Follow the prompts
- Find the app icon in your app drawer
-
🔒 Environment Setup (Optional - for cloud sync):
- Copy
.env.exampleto.env - Add your Supabase URL and anon key (see
.env.examplefor detailed instructions) ⚠️ Never commit .env to version control!
- Copy
-
Start Your First Day: Click "Start Day" to begin time tracking
-
Authentication (Optional): Click "Sign In" in the top-right corner to enable cloud sync
-
Add Projects (Optional): Navigate to Archive → Projects to set up your clients and hourly rates
-
Configure Categories (Optional): Navigate to Categories page to customize task categories
-
Create Tasks: Use "New Task" to start tracking specific work items
-
End Your Day: Click "End Day" when finished, then "Post Time to Archive"
- Morning: Click "Start Day" to begin tracking
- Throughout the day: Create new tasks as you switch between different work items
- Evening: Click "End Day" to stop tracking and review your summary
- Archive: Click "Post Time to Archive" to save the day permanently
- Access via Archive → Projects button
- Set up clients with hourly rates for automatic revenue calculation
- Assign projects to tasks for better organization
- Mark projects as billable or non-billable
- Access via the Categories navigation menu
- Create custom categories for organizing tasks
- Set categories as billable or non-billable
- Customize category colors for visual organization
- Access via Archive → Export button
- Choose from CSV, JSON, or Invoice formats
- Filter by date range for specific periods
- Perfect for submitting timesheets to employers or generating client invoices
- Import existing time data from CSV files
- Use the CSV templates in
tests/directory as examples - Validate data before import to ensure compatibility
- Available test scripts:
npm run test-csv-import
- React 18 - Modern UI framework with TypeScript
- TypeScript 5.8 - Type safety and enhanced developer experience
- Vite 5 - Lightning-fast build tool with SWC
- Vite PWA Plugin - Service worker and PWA manifest generation
- Workbox - Advanced service worker caching strategies
- Tailwind CSS 3 - Utility-first CSS framework
- shadcn/ui - Beautiful, accessible component library
- Radix UI - Unstyled, accessible component primitives
- React Router 6 - Client-side routing and navigation
- Supabase (optional) - Backend as a Service for cloud sync and authentication
- Local Storage - Browser storage for offline data persistence
- Playwright - Automated screenshot generation and testing
- Context API - Global state management
- Custom hooks - Reusable stateful logic
- Service layer pattern - Data persistence abstraction (localStorage/Supabase)
- PWA Components - Install prompts, update notifications, offline queue
- Service Worker - Workbox-powered caching and offline support
- Component-based architecture for maintainability
- Lazy loading - Code splitting for optimal performance
- Responsive design - Works on all device sizes
- Mobile-first - Touch-optimized with bottom navigation
- Default: All data stored locally in your browser (localStorage)
- Optional: Cloud storage via Supabase project
- Manual sync: Optimized for single-device usage
- Data saves on critical events (day end, window close)
- Manual sync button available for on-demand saves
- Prevents unnecessary database calls
- No external servers required - Works completely offline
- Data persistence - All data persists between sessions
- Export capabilities - Full backup and integration support
- Smart migration - Automatic data migration between localStorage and Supabase
- Freelancers: Track billable hours and generate client invoices
- Consultants: Organize time by project and client with revenue tracking
- Remote Workers: Submit detailed timesheets to employers
- Students: Track study time and project work efficiently
- Small Businesses: Monitor team time and project profitability
- Anyone: Who needs professional time tracking without the complexity
npm run dev- Start development server (http://localhost:8080)npm run build- Build for productionnpm run build:dev- Build with development modenpm run preview- Preview production build locallynpm run lint- Run ESLint for code qualitynpm run test- Run Vitest unit tests
npm run screenshots:install- Install Playwright browsers (first time only)npm run screenshots- Capture PWA screenshots (headless mode)npm run screenshots:headed- Capture screenshots with visible browser (debugging)
Usage:
- Run
npm run screenshots:installonce to install browsers - Start dev server:
npm run dev(keep running) - In new terminal:
npm run screenshots - Screenshots saved to
public/screenshots/
See tests/SCREENSHOTS_README.md for detailed documentation.
npm run test-full-import- Test full CSV import functionalitynpm run test-error-handling- Test CSV import error handlingnpm run test-csv-import- Test standard CSV import process
src/
├── components/ # Reusable UI components
│ ├── ui/ # shadcn/ui base components (49 files)
│ ├── InstallPrompt.tsx # PWA install prompt
│ ├── UpdateNotification.tsx # PWA update notification
│ ├── MobileNav.tsx # Mobile bottom navigation
│ └── ... # Other feature components
├── config/ # Category and Project configuration files
├── contexts/ # React Context providers
│ ├── AuthContext.tsx # Authentication state
│ ├── TimeTrackingContext.tsx # Time tracking state
│ └── OfflineContext.tsx # Offline queue management
├── hooks/ # Custom React hooks
│ ├── useAuth.tsx # Authentication hook
│ ├── useTimeTracking.tsx # Time tracking hook
│ └── useOffline.tsx # Offline state hook
├── lib/ # Utility libraries and helpers
├── pages/ # Main application pages
├── services/ # Data service layer (localStorage/Supabase)
└── utils/ # Utility functions
public/
├── icons/ # PWA app icons (8 sizes)
├── screenshots/ # PWA screenshots (desktop + mobile)
├── manifest.json # PWA manifest
├── pwa.css # PWA-specific styles
└── ... # Other static assets
tests/
├── screenshots.spec.ts # Playwright screenshot automation
└── SCREENSHOTS_README.md # Screenshot documentation
- Indentation: Tabs (2 space width)
- Quotes: Double quotes (
"") always - Imports: Use
@/alias for src imports - Components: PascalCase naming
- Hooks: camelCase with
useprefix - Styling: Follow Radix UI design system
See CLAUDE.md for comprehensive development guidelines.
- CLAUDE.md - Comprehensive AI assistant codebase guide
- AGENTS.md - General agent instructions and workflows
- Styles - UI/UX style guidelines and rules
- Pull Requests - PR creation and review rules
- Project Rules - Continue extension configuration
- Authentication - Authentication setup and configuration guide
- Data Persistence - Data persistence implementation details
- Schema Compatibility - Database schema updates and history
- Migration - Supabase data migration guide
- Security - Security configuration and best practices
- CSV Templates - CSV import/export templates and examples
- Screenshot Generation - Automated PWA screenshot capture with Playwright
- Features - Feature requests and improvement notes
- Chatbot Notes - AI interaction development records
- LOVABLE README - Project origin and history
This project is open source and available under the MIT License.
Ready to take control of your time?
- Clone the repository
- Run
npm install - Start with
npm run dev - Open http://localhost:8080
- Click "Start Day" and begin tracking!
See where your hours really go with TimeTracker Pro.
- This project originally began as a Lovable prompt - Learn more
- Badges from markdown-badges
- Built with React, Vite, and Supabase