{"id":13476024,"url":"https://github.com/fnogatz/clocker","last_synced_at":"2026-04-07T17:31:52.785Z","repository":{"id":14233301,"uuid":"16940375","full_name":"fnogatz/clocker","owner":"fnogatz","description":"Command-line tool to track project hours","archived":false,"fork":false,"pushed_at":"2026-04-03T14:39:56.000Z","size":756,"stargazers_count":420,"open_issues_count":4,"forks_count":31,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-04-03T18:28:33.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fnogatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2014-02-18T07:19:15.000Z","updated_at":"2026-04-03T14:40:00.000Z","dependencies_parsed_at":"2024-11-16T22:01:04.922Z","dependency_job_id":"5ba2d271-4b9c-464e-b314-18cdcdf35c85","html_url":"https://github.com/fnogatz/clocker","commit_stats":{"total_commits":327,"total_committers":11,"mean_commits":"29.727272727272727","dds":0.3058103975535168,"last_synced_commit":"c6881f6adcca335db6fde493e9188f4c26b7d7dc"},"previous_names":["substack/clocker"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/fnogatz/clocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnogatz%2Fclocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnogatz%2Fclocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnogatz%2Fclocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnogatz%2Fclocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnogatz","download_url":"https://codeload.github.com/fnogatz/clocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnogatz%2Fclocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-07-31T16:01:25.881Z","updated_at":"2026-04-07T17:31:52.774Z","avatar_url":"https://github.com/fnogatz.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others","🛠️ Developer Tools"],"sub_categories":[],"readme":"# clocker\n\ntrack project hours\n\n![clocker](clocker.png)\n\n# example\n\nTo start tracking hours, just do `clocker start`:\n\n```\n$ clocker start -t BAZCORP\n```\n\nThe `-t` is optional.\n\nSome hours pass, then:\n\n```\n$ clocker stop\n```\n\nRun `clocker start` and `clocker stop` as you have more hours to track.\n\nYou can list the hours you've racked up with `clocker list`:\n\n```\n$ clocker list\n1392707136  2014-02-17  [ 23:05:36 - 02:15:00 ]  (03:09:24)  [BAZCORP]\n1392751800  2014-02-18  [ 11:30:00 - 16:20:00 ]  (04:50:00)  [BAZCORP]\n1393020600  2014-02-21  [ 14:10:00 - 18:32:00 ]  (04:22:00)  [BAZCORP]\n```\n\nYou can see a report of all logged hours of a specific day with `clocker report` command:\n\n```\n$ clocker report --day 2018-05-23\nReport for 23 May 2018:\n1527053106  2018-05-23  [ 07:25:06 - 08:09:25 ]  (00:44:19)  [TYPE_A]\n1527056838  2018-05-23  [ 08:27:18 - 11:30:00 ]  (03:02:42)  [TYPE_B]\n1527067800  2018-05-23  [ 11:30:00 - 11:58:18 ]  (00:28:18)  [TYPE_C]\n1527073296  2018-05-23  [ 13:01:36 - 16:31:54 ]  (03:30:18)  [TYPE_B]\n\nTYPE_A: 00:44:19\nTYPE_B: 06:33:00\nTYPE_C: 00:28:18\n\ntotal: 07:45:37\n```\n\nWithout the `--day` option, the report command will list all logged hours of the current day.\n\nYou can generate a json dump with `clocker data`:\n\n```\n$ clocker data BAZCORP --rate 125\n[\n  {\n    \"title\": \"consulting\",\n    \"rate\": 125,\n    \"hours\": [\n      {\n        \"date\": \"2014-02-18\",\n        \"hours\": 7.1\n      },\n      {\n        \"date\": \"2014-02-17\",\n        \"hours\": 0.9\n      },\n      {\n        \"date\": \"2014-02-21\",\n        \"hours\": 4.4\n      }\n    ]\n  }\n]\n```\n\nThis json output can be fed into [invoicer](https://npmjs.org/package/invoicer)\nto generate a PDF invoice:\n\n```\n$ clocker data BAZCORP --rate 125 | invoicer -r BAZCORP -o invoice.pdf\n```\n\n# usage\n\n```\nusage:\n\n  clocker start {-t TYPE, -m MESSAGE} [-- DATA]\n    Start the clock. Optionally give a TYPE and MESSAGE.\n    Optionally set additional DATA in the format --KEY=VALUE.\n\n  clocker stop {-m MESSAGE} [STAMP]\n    Stop the clock.\n\n  clocker restart [STAMP]\n    Restart either last clock or clock at STAMP.\n\n  clocker status\n    Show the elapsed time if the clock is active or \"stopped\".\n\n  clocker data {-t TYPE, -r RATE, --title TITLE, --gt DATE, --lt DATE, -a}\n    Generate invoicer-compatible json output.\n    Show dates between lt and gt. Show archived dates with -a.\n    Optionally filter by TYPE, a string or /regex/.\n\n  clocker list {-v, --gt DATE, --lt DATE, -a, -t TYPE}\n    Show hourly data with STAMPS on the leftmost column.\n    In verbose mode (-v), also show clocked messages.\n    Show dates between lt and gt. Show archived dates with -a.\n    Optionally filter by TYPE, a string or /regex/.\n\n  clocker report {-v, --day DATE}\n    Show all logged hours of a specific day.\n    In verbose mode (-v), also show clocked messages.\n    If no --day is set, the current day will be used.\n\n  clocker csv {--gt DATE, --lt DATE, --props FIELDS, -a}\n    Generate CSV output.\n    Show dates between lt and gt. Show archived dates with -a.\n    Additionally display the properties FIELDS.\n\n  clocker add START END {-t TYPE, -m MESSAGE}\n    Add a hours from START to END as date strings.\n\n  clocker get STAMP\n    Get the data at STAMP.\n\n  clocker rm STAMP...\n    Remove the data at STAMP.\n\n  clocker set [STAMP] KEY VALUE\n    Adjust time stamp boundaries or other properties of either last clock\n    or clock at STAMP.\n    Time stamp boundaries are parsed, like '20:11' or '10 minutes ago'.\n\n  clocker edit STAMP {KEY}\n    Launch $EDITOR to edit the record at STAMP.\n    Optionally edit a single KEY.\n\n  clocker move [STAMP] START\n    Move the data at STAMP to the new START, maintaining the elapsed time.\n\n  clocker archive {--lt=DATE, --gt=DATE}\n  clocker archive [STAMP...]\n    Archive a range of clocked records or a list of STAMPs.\n \n  clocker unarchive {--lt=DATE, --gt=DATE}\n  clocker unarchive [STAMP...]\n    Un-archive a range of clocked records or a list of STAMPs.\n```\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install -g clocker\n```\n\nto get the clocker command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnogatz%2Fclocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnogatz%2Fclocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnogatz%2Fclocker/lists"}