{"id":15048454,"url":"https://github.com/g-harel/coco","last_synced_at":"2026-02-19T17:01:51.150Z","repository":{"id":130265700,"uuid":"123059367","full_name":"g-harel/coco","owner":"g-harel","description":"track project stats","archived":false,"fork":false,"pushed_at":"2020-02-25T02:43:23.000Z","size":133,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-12T13:32:45.136Z","etag":null,"topics":["cli","github","traffic"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/g-harel.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}},"created_at":"2018-02-27T02:15:16.000Z","updated_at":"2020-09-09T05:25:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"58303dff-5e67-4c5d-b391-e6ae86f802cf","html_url":"https://github.com/g-harel/coco","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/g-harel/coco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-harel%2Fcoco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-harel%2Fcoco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-harel%2Fcoco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-harel%2Fcoco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-harel","download_url":"https://codeload.github.com/g-harel/coco/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-harel%2Fcoco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29623546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cli","github","traffic"],"created_at":"2024-09-24T21:13:13.517Z","updated_at":"2026-02-19T17:01:51.129Z","avatar_url":"https://github.com/g-harel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coco\n\n\u003e track project stats\n\n## Usage\n\n```\n$ go get -u github.com/g-harel/coco\n```\n\n```\nUsage: coco [flags...]\n\nFlags:\n  -github-new-stars int\n        Show repos if they have this quantity of new stars (default 1)\n  -github-owner value\n        GitHub owner to query.\n  -github-stars int\n        Show repos if they have this quantity of stars. (default 1)\n  -github-today int\n        Show repos if they have this quantity of views today. (default 1)\n  -github-token string\n        GitHub API token.\n  -github-views int\n        Show repos if they have this quantity of views. (default 1)\n  -log-error\n        Log errors. (default true)\n  -log-info\n        Log miscellaneous info.\n  -npm-owner value\n        NPM owners whose packages to query.\n  -npm-weekly int\n        Show repos if they have this quantity of weekly downloads. (default 1)\n  -rate-limit int\n        Maximum number of requests per second by all collectors. (default 999)\n  -state-file string\n        Absolute path to file used to store state between runs.\n```\n\n_GitHub traffic can only be collected from repositories that the token grants push access to._\n\n_Quantity of new stars can only be accurately shown if a state file is provided._\n\n_A single run can collect data from both GitHub and NPM._\n\n## Examples\n\n#### GitHub\n\n```bash\ncoco -github-token=\u003ctoken\u003e -github-owner=\u003cowner\u003e\n```\n\n_Tokens can be generated by following the steps in the [documentation](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)._\n\n_Organization names can also be passed in as owners to query._\n\n#### NPM\n\n```bash\ncoco -npm-owner=\u003cowner\u003e\n```\n\n#### Mixed\n\n```bash\ncoco \\\n    -log-info \\\n    -rate-limit=42 \\\n    -state-file=\"/home/me/.coco\" \\\n    -github-token=\u003ctoken\u003e \\\n    -github-owner=\u003cuser\u003e \\\n    -github-owner=\u003corg\u003e \\\n    -github-views=4 \\\n    -github-today=1 \\\n    -github-stars=3 \\\n    -npm-owner=\u003cuser\u003e \\\n    -npm-weekly=12\n```\n\n```\n+----------------------------------+\n| GitHub repo stats | \u003cuser\u003e \u003corg\u003e |\n+--------------------------+-------+--------+-------+------------------------------------------------------------------+\n| REPO                     | VIEWS | UNIQUE | TODAY | LINK                                                             |\n+--------------------------+-------+--------+-------+------------------------------------------------------------------+\n| blobs+34                 |   131 |     18 |     0 | https://github.com/g-harel/blobs/graphs/traffic                  |\n| npmfs+83                 |    19 |     10 |     0 | https://github.com/g-harel/npmfs/graphs/traffic                  |\n| superpermutations+1      |    16 |      6 |     3 | https://github.com/g-harel/superpermutations/graphs/traffic      |\n| SOEN321+0                |    10 |      3 |     0 | https://github.com/g-harel/SOEN321/graphs/traffic                |\n| coco+2                   |     7 |      3 |     1 | https://github.com/g-harel/coco/graphs/traffic                   |\n| targetblank+5            |     7 |      3 |     0 | https://github.com/g-harel/targetblank/graphs/traffic            |\n| rickety+9                |     5 |      5 |     1 | https://github.com/g-harel/rickety/graphs/traffic                |\n| okwolo+21                |     5 |      3 |     0 | https://github.com/okwolo/okwolo/graphs/traffic                  |\n| cards-amusing-humanity+1 |     4 |      2 |     0 | https://github.com/g-harel/cards-amusing-humanity/graphs/traffic |\n| svgsaurus+6              |     3 |      3 |     0 | https://github.com/g-harel/svgsaurus/graphs/traffic              |\n| sekstant+56              |     2 |      2 |     0 | https://github.com/g-harel/sekstant/graphs/traffic               |\n| website+10               |     2 |      2 |     0 | https://github.com/g-harel/website/graphs/traffic                |\n| ence+8                   |     0 |      0 |     0 | https://github.com/g-harel/ence/graphs/traffic                   |\n| open-source-logos+3      |     0 |      0 |     0 | https://github.com/g-harel/open-source-logos/graphs/traffic      |\n| slurry+5                 |     0 |      0 |     0 | https://github.com/g-harel/slurry/graphs/traffic                 |\n+--------------------------+-------+--------+-------+------------------------------------------------------------------+\n+--------------------------------+\n| Npm package downloads | \u003cuser\u003e |\n+---------+-----------+-------+-----------------------------------+\n| PACKAGE | DOWNLOADS | TOTAL | LINK                              |\n+---------+-----------+-------+-----------------------------------+\n| blobs   |       305 | 7,111 | https://npmjs.com/package/blobs   |\n| paph    |        20 |   339 | https://npmjs.com/package/paph    |\n| okwolo  |        19 | 1,863 | https://npmjs.com/package/okwolo  |\n| rickety |        12 | 1,289 | https://npmjs.com/package/rickety |\n+---------+-----------+-------+-----------------------------------+\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-harel%2Fcoco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-harel%2Fcoco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-harel%2Fcoco/lists"}