{"id":37801390,"url":"https://github.com/nitschmann/hora","last_synced_at":"2026-01-16T15:26:33.141Z","repository":{"id":316320284,"uuid":"1048701412","full_name":"nitschmann/hora","owner":"nitschmann","description":"hora is a simple time tracking CLI tool","archived":false,"fork":false,"pushed_at":"2025-09-23T22:24:22.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-24T00:06:20.207Z","etag":null,"topics":["cli","golang","time-tracking","tool"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitschmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T22:16:27.000Z","updated_at":"2025-09-23T22:20:24.000Z","dependencies_parsed_at":"2025-09-29T18:16:17.261Z","dependency_job_id":null,"html_url":"https://github.com/nitschmann/hora","commit_stats":null,"previous_names":["nitschmann/hora"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/nitschmann/hora","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Fhora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Fhora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Fhora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Fhora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitschmann","download_url":"https://codeload.github.com/nitschmann/hora/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitschmann%2Fhora/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","golang","time-tracking","tool"],"created_at":"2026-01-16T15:26:32.385Z","updated_at":"2026-01-16T15:26:33.117Z","avatar_url":"https://github.com/nitschmann.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/nitschmann/hora/actions/workflows/test.yml/badge.svg)](https://github.com/nitschmann/hora/actions/workflows/test.yml)\n\n# hora - Simple Time Tracking CLI\n\nA simple and intuitive command-line time tracking tool built with Go. Track your project time with ease using a clean CLI interface.\n\n## Features\n\n- **Simple Time Tracking** - Start, stop, and pause time tracking for any project\n- **Project Management** - Automatic project creation and management\n- **Background Tracking** - Automatic pause/resume on screen lock (macOS)\n- **Data Export** - Export time entries to CSV for further analysis\n- **Category Support** - Organize time entries with custom categories\n- **Rich Reporting** - View detailed time reports with pause information\n- **Web Dashboard** - Interactive web UI with charts, analytics, and filtering\n- **Cross-Platform** - Works on macOS and Linux\n\n## Quick Start\n\n### Installation\n\n#### Option 1: Pre-compiled Binaries (Recommended)\n\nDownload the latest release binary for your platform from the [Releases page](https://github.com/nitschmann/hora/releases):\n\n- **macOS**: `hora-darwin-amd64` or `hora-darwin-arm64`\n- **Linux**: `hora-linux-amd64` or `hora-linux-arm64`\n\n```bash\n# Download and make executable (example for macOS ARM64)\ncurl -L -o hora https://github.com/nitschmann/hora/releases/latest/download/hora-darwin-arm64\nchmod +x hora\nsudo mv hora /usr/local/bin/\n\n# Verify installation\nhora version\n```\n\n#### Option 2: Build from Source\n\n```bash\n# Build from source\nmake build\n\n# Or build directly\ngo build -o build/hora ./cmd/hora\n```\n\n### Basic Usage\n\n```bash\n# Start tracking time for a project\nhora start \"My Project\"\n\n# Check current status\nhora status\n\n# Stop tracking\nhora stop\n\n# List all time entries\nhora times\n\n# Export to CSV\nhora export --output times.csv\n\n# Launch web dashboard\nhora ui\n\n# Launch web dashboard on custom port\nhora ui --port 3000\n```\n\n## Configuration\n\nhora uses a YAML configuration file to customize behavior. The configuration file is automatically created in the default location, but you can initialize it manually or customize the settings.\n\n### Default Configuration\n\nBy default, hora uses these settings:\n\n```yaml\ndatabase_dir: \"/path/to/database/directory\"\ndebug: false\nlist_limit: 50\nlist_order: \"desc\"\nuse_background_tracker: true\nweb_ui_port: 8080\nbackground_tracker_auto_stop: false\nbackground_tracker_auto_stop_after: 120\n```\n\n### Configuration File Locations\n\nhora looks for configuration files in the following order:\n\n1. `~/.hora/config.yaml` (user's home directory)\n2. `./.hora/config.yaml` (current directory)\n\n### Initializing Configuration\n\nCreate a configuration file with default values:\n\n```bash\n# Initialize config in default location (~/.hora/)\nhora config init\n\n# Initialize config in a specific directory\nhora config init --directory /path/to/config/dir\n\n# Force overwrite existing config file\nhora config init --force\n```\n\n### Configuration Options\n\n| Option | Description | Default | Valid Values |\n|--------|-------------|---------|--------------|\n| `database_dir` | Directory where SQLite database is stored | Platform-specific | Any valid directory path |\n| `debug` | Enable debug logging | `false` | `true`, `false` |\n| `list_limit` | Maximum number of entries to show in lists | `50` | `1` or greater |\n| `list_order` | Sort order for time entry lists | `desc` | `asc`, `desc` |\n| `use_background_tracker` | Enable automatic pause/resume on screen lock | `true` | `true`, `false` |\n| `web_ui_port` | Port for the web dashboard | `8080` | `1` to `65535` |\n\n#### Background tracker auto-stop\n\nWhen enabled, the background tracker will automatically stop an active tracking session if the screen stays locked longer than the configured threshold (minutes). This is macOS-only, and complements the default auto-pause/resume behavior.\n\nOptions:\n- `background_tracker_auto_stop` — enable/disable auto-stop (`false` by default)\n- `background_tracker_auto_stop_after` — minutes of pause before auto-stop (`120` by default, minimum `1`)\n\n### Using Custom Configuration\n\nYou can specify a custom configuration file:\n\n```bash\n# Use a specific config file\nhora --config /path/to/custom/config.yaml start \"My Project\"\n\n# Or use the short form\nhora -c /path/to/custom/config.yaml start \"My Project\"\n```\n\n## Web Dashboard\n\nhora includes a modern web dashboard that provides interactive analytics and visualization of your time tracking data. The dashboard offers a comprehensive view of your productivity patterns with beautiful charts and filtering capabilities.\n\n### Starting the Web Dashboard\n\n```bash\n# Start the web dashboard on default port (8080)\nhora ui\n\n# Start on a custom port\nhora ui --port 3000\n\n# The dashboard will be available at http://localhost:8080 (or your custom port)\n```\n\n### Dashboard Features\n\n#### Interactive Analytics\n- **Daily Activity Chart** - Visualize your daily time tracking patterns\n- **Project Distribution** - See how your time is distributed across projects\n- **Category Breakdown** - Analyze time spent in different categories\n- **Time Range Filtering** - View data for last 24hrs, 3 days, 7 days, 30 days, or all time\n\n#### Key Metrics\n- **Total Hours** - Cumulative time tracked\n- **Project Count** - Number of active projects\n- **Category Count** - Number of categories used\n- **Time Entries** - Total number of tracking sessions\n- **Average Session** - Average duration per tracking session\n\n#### Advanced Filtering\n\n- **Project Filtering** - Click on any project in charts or entries to filter by project\n- **Category Filtering** - Click on any category to filter by category\n- **URL Parameters** - Share filtered views with direct links\n- **Clear Filters** - Reset all filters with one click\n\n#### Recent Entries\n- **Live Time Entries** - View all your recent time tracking sessions\n- **Interactive Elements** - Click on projects or categories to filter\n- **Duration Display** - See exact time spent on each session\n- **Date \u0026 Time** - Full timestamp information for each entry\n\n## Documentation\n\nFor complete usage information, command reference, and advanced features, see the [CLI Documentation](docs/cli/README.md).\n\n## Data Storage\n\nTime tracking data is stored in a SQLite database. The default database location is:\n\n- **macOS**: `~/Library/Application Support/hora/hora.db`\n- **Linux**: `~/.local/share/hora/hora.db`\n\nYou can customize the database location by setting the `database_dir` option in your configuration file (see [Configuration](#configuration) section above).\n\n## Development\n\n```bash\n# Build\nmake build\n\n# Run tests\nmake test\n\n# Generate CLI documentation\nmake docs\n\n# Clean build artifacts\nmake clean\n```\n\n## Requirements\n\n(only for development)\n\n- Go 1.25 or later\n- SQLite3\n- macOS or Linux\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitschmann%2Fhora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitschmann%2Fhora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitschmann%2Fhora/lists"}