{"id":20980501,"url":"https://github.com/hyperjumptech/export-github-clones-views","last_synced_at":"2025-05-14T15:30:41.066Z","repository":{"id":57117010,"uuid":"318238264","full_name":"hyperjumptech/export-github-clones-views","owner":"hyperjumptech","description":"A CLI to export the stats of clones and views of repositories","archived":false,"fork":false,"pushed_at":"2020-12-08T08:29:28.000Z","size":98,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-24T05:26:20.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperjumptech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCTS.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-03T15:32:45.000Z","updated_at":"2025-03-11T22:32:21.000Z","dependencies_parsed_at":"2022-08-22T22:20:24.627Z","dependency_job_id":null,"html_url":"https://github.com/hyperjumptech/export-github-clones-views","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fexport-github-clones-views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fexport-github-clones-views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fexport-github-clones-views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperjumptech%2Fexport-github-clones-views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperjumptech","download_url":"https://codeload.github.com/hyperjumptech/export-github-clones-views/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254171548,"owners_count":22026462,"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":[],"created_at":"2024-11-19T05:28:56.051Z","updated_at":"2025-05-14T15:30:40.552Z","avatar_url":"https://github.com/hyperjumptech.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# export-github-clones-views\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@hyperjumptech/export-github-clones-views.svg)](https://npmjs.org/package/@hyperjumptech/export-github-clones-views)\n[![License](https://img.shields.io/npm/l/@hyperjumptech/export-github-clones-views)](https://github.com/hyperjumptech/export-github-clones-views/blob/master/package.json)\n\n# About\n\nThis is a CLI to fetch the daily number of **clones** and **views** of one or many github repositories to which you have push access. You can run this script regularly to track the traffic of clones and views of your repositories in a long term since the data shown in a Github repository website cannot be exported and only shows up to few days back.\n\n# Prerequisite\n\n1. Create a Personal Access Token in your [Github settings](https://github.com/settings/tokens). Make sure you select the **repo** scope.\n2. Optionally run a mongodb server to store the data.\n\n# Install\n\n```sh-session\n$ npm install -g @hyperjumptech/export-github-clones-views\n```\n\n# Usage\n\nTo simply print the data to console, run the following\n\n```sh-session\n$ export-github-clones-views -u \u003cGITHUB_USERNAME\u003e -p \u003cGITHUB_PASSWORD\u003e user/reponame1 organization/reponame2 ...\n```\n\nTo store the data to mongodb, provide the mongodb uri,\n\n```sh-session\n$ export-github-clones-views -u \u003cGITHUB_USERNAME\u003e -p \u003cGITHUB_PASSWORD\u003e -m \u003cMONGODB_URI\u003e user/reponame1 organization/reponame2 ...\n```\n\nNotes:\n\n1. You can add any number of repositories as the argument of the command.\n2. The repository needs to include both the username/organization and the repository name, e.g., `hyperjumptech/export-github-clones-views`.\n3. Example of `MONGODB_URI`: `mongodb+srv://username:password@mongodb.net/database-name`.\n4. Use the Personal Access Token you generated as `GITHUB_PASSWORD`\n5. You can use environment variables instead of command line arguments. Check out the help of the command line.\n\n# Articles\n\n- Bahasa Indonesia: [Ketika Jumlah Git Clone Menjadi KPI](https://medium.com/hyperjump-tech/melacak-jumlah-git-clone-per-hari-di-github-1c187eaf90bb).\n- English: [How to track the traffic of views and clones of Github Repository](https://nico.fyi/articles/track-github-clones-views-traffic)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperjumptech%2Fexport-github-clones-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperjumptech%2Fexport-github-clones-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperjumptech%2Fexport-github-clones-views/lists"}