{"id":30977356,"url":"https://github.com/efjerryyang/kronical","last_synced_at":"2025-09-12T05:45:18.457Z","repository":{"id":312496730,"uuid":"1043973038","full_name":"efJerryYang/kronical","owner":"efJerryYang","description":"Activity tracking daemon with input and window monitoring","archived":false,"fork":false,"pushed_at":"2025-09-03T05:32:55.000Z","size":293,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-03T07:10:29.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/efJerryYang.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-08-25T01:56:53.000Z","updated_at":"2025-09-03T05:32:48.000Z","dependencies_parsed_at":"2025-09-03T07:10:33.788Z","dependency_job_id":"ed5e47b9-33f3-4978-b86a-2cd4bae0e0c0","html_url":"https://github.com/efJerryYang/kronical","commit_stats":null,"previous_names":["efjerryyang/chronicle","efjerryyang/kronical"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/efJerryYang/kronical","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efJerryYang%2Fkronical","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efJerryYang%2Fkronical/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efJerryYang%2Fkronical/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efJerryYang%2Fkronical/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efJerryYang","download_url":"https://codeload.github.com/efJerryYang/kronical/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efJerryYang%2Fkronical/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274760853,"owners_count":25344268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-12T05:45:15.508Z","updated_at":"2025-09-12T05:45:18.442Z","avatar_url":"https://github.com/efJerryYang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Kronical\nActivity tracking daemon (kronid) with dual-stream pattern and state transitions.\n\n## State Transition Logic\n- **Active**: Keyboard input detected (30s timeout → passive)\n- **Passive**: Mouse movement only (300s timeout → inactive)  \n- **Inactive**: No input activity\n- **Locked**: Screen/session locked (system event)\n\n## Dual Streams Pattern\n- **Events Stream**: Raw input/focus events with complete metadata\n- **Records Stream**: Analyzed activity records with state transitions\n\n## Commands\n```bash\n# Daemon control\nkronictl start                    # Start kronid daemon\nkronictl status                   # Check daemon status\nkronictl stop                     # Stop daemon\nkronictl restart                  # Restart daemon\n\n# Monitoring and data access\nkronictl snapshot                 # Get current snapshot\nkronictl snapshot --pretty        # Get formatted snapshot\nkronictl watch                    # Watch for changes\nkronictl watch --pretty           # Watch with pretty output\nkronictl monitor                  # Live TUI (press 'q' to quit)\n\n# System tracking (when enabled in config)\nkronictl tracker status           # Show tracker status\nkronictl tracker show             # Show tracker data\nkronictl tracker show --watch     # Follow tracker updates\n```\n\n## Permissions (macOS)\n- **Accessibility**: Required for input hooks and window tracking\n- **Screen Recording**: Required for window titles\n\nWithout these, kronid will abort at launch or show empty titles.\n\n## Storage\nSQLite backend with separate indexing for events and records streams.\n\n## Configuration\nConfiguration via `~/.kronical/config.toml`:\n\n```toml\n# Data storage location (default: ~/.kronical)\nworkspace_dir = \"~/.kronical\"\n\n# Data retention period in minutes (default: 4320 = 72 hours)\nretention_minutes = 4320\n\n# State transition timeouts\nactive_grace_secs = 30              # Active to passive timeout\nidle_threshold_secs = 300           # Passive to inactive timeout\n\n# System metrics tracking\ntracker_enabled = false             # Enable system tracking\ntracker_interval_secs = 1.0         # Collection interval\ntracker_batch_size = 60             # Batch size for storage\ntracker_refresh_secs = 1.0          # UI refresh rate\n\n# Performance tuning\nephemeral_max_duration_secs = 60    # Max ephemeral window duration\nephemeral_min_distinct_ids = 3      # Min distinct windows for persistence\nmax_windows_per_app = 30            # Max tracked windows per app\npid_cache_capacity = 1024           # Process ID cache size\ntitle_cache_capacity = 512          # Window title cache size\nfocus_interner_max_strings = 4096   # String interning capacity\n```\n\nEnvironment variables supported with `KRONICAL_` prefix (e.g., `KRONICAL_TRACKER_ENABLED=true`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefjerryyang%2Fkronical","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefjerryyang%2Fkronical","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefjerryyang%2Fkronical/lists"}