{"id":13583270,"url":"https://github.com/uglow/active-win-log","last_synced_at":"2025-07-21T04:08:41.964Z","repository":{"id":39737541,"uuid":"177346554","full_name":"uglow/active-win-log","owner":"uglow","description":"Log your active window usage","archived":false,"fork":false,"pushed_at":"2023-01-03T18:24:18.000Z","size":1169,"stargazers_count":23,"open_issues_count":10,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T20:33:16.494Z","etag":null,"topics":["daemon","logging","nodejs","reporting","tracking"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uglow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-23T22:29:41.000Z","updated_at":"2024-08-27T18:25:35.000Z","dependencies_parsed_at":"2023-02-01T08:35:11.989Z","dependency_job_id":null,"html_url":"https://github.com/uglow/active-win-log","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/uglow/active-win-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Factive-win-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Factive-win-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Factive-win-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Factive-win-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uglow","download_url":"https://codeload.github.com/uglow/active-win-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Factive-win-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266236999,"owners_count":23897308,"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","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":["daemon","logging","nodejs","reporting","tracking"],"created_at":"2024-08-01T15:03:22.160Z","updated_at":"2025-07-21T04:08:41.938Z","avatar_url":"https://github.com/uglow.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# active-win-log\n\n\u003e A command line tool for logging time spent viewing application windows.\n\n[![NPM Version](https://img.shields.io/npm/v/active-win-log.svg?style=flat-square)](http://npm.im/active-win-log)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Coverage Status](https://coveralls.io/repos/github/uglow/active-win-log/badge.svg?branch=master)](https://coveralls.io/github/uglow/active-win-log?branch=master)\n[![Dependencies status](https://david-dm.org/uglow/active-win-log/status.svg?theme=shields.io)](https://david-dm.org/uglow/active-win-log#info=dependencies)\n[![Dev-dependencies status](https://david-dm.org/uglow/active-win-log/dev-status.svg?theme=shields.io)](https://david-dm.org/uglow/active-win-log#info=devDependencies)\n\n\n## Install\n\n    npm install -g active-win-log\n\n\n## Usage\n\n```\n$ awl -?\n\nUsage: awl \u003coptions\u003e\nawl           Start monitoring the active window\nawl -?        This help information\nawl -l n      Display statistics for the last \"n\" days in the log\nawl -q        Stop monitoring\nLog location: /users/\u003cyour user name\u003e/.active-win-log/awl.json\n\n```\n\n## Sample output\nCommand: `awl -l 1`\n![screen shot](screenshot.png)\n\n## Contributing\n\nPRs are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Motivation\n\nI use this tool to give me a better sense of how I am spending my time when working out of the office. The tool checks\nto see what the active window is (using [active-win](https://www.npmjs.com/package/active-win)) _every 5 seconds_. \n\n## Troubleshooting\n\n### \"I start `awl` but it just shows the pid and an empty stats object\"\n\nThis may be due to changes in MacOS 10.15 and later, which requires the `[active-win](https://github.com/sindresorhus/active-win)`\nlibrary (which `active-win-log` depends on) to prompt for access when the library attempts to read a process' window title.\n\nIn the meantime, if you want `active-win-log` to work, you must grant access to your terminal program when OSX\nprompts for Accessibility and/or Screen-Recording access. (I know, this really sucks, but it's an OSX limitation.\nIf you think you can improve this behaviour, see [this issue](https://github.com/sindresorhus/active-win/issues/97).)\n\n## License\n\nThis software is licensed under the MIT Licence. See [LICENSE](LICENSE).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuglow%2Factive-win-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuglow%2Factive-win-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuglow%2Factive-win-log/lists"}