{"id":23201161,"url":"https://github.com/codedotjs/repocount","last_synced_at":"2025-04-05T09:26:32.500Z","repository":{"id":87437405,"uuid":"48629854","full_name":"CodeDotJS/RepoCount","owner":"CodeDotJS","description":":100: Count repository of a github user [ count \u003c 200 ]","archived":false,"fork":false,"pushed_at":"2016-05-21T01:51:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:41:19.347Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeDotJS.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}},"created_at":"2015-12-27T02:16:25.000Z","updated_at":"2023-09-08T17:05:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"b7bec2f7-ff4a-4b87-a09b-ca1ae04933ee","html_url":"https://github.com/CodeDotJS/RepoCount","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FRepoCount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FRepoCount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FRepoCount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2FRepoCount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/RepoCount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314727,"owners_count":20918897,"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-12-18T15:14:00.787Z","updated_at":"2025-04-05T09:26:32.485Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## RepoCount\n\n\u003e A small javascript snippet to show the exact number of forked, genuine and total repository by a github user.\n\n## Running\n\n\u003e Paste the below code in your chrome console and hit enter.\n\n```js\nfunction countRepos() {\n\tvar totalRepos = document.getElementsByClassName(\"repo-list-item\");\n\tvar nums = 0;\n\tfor (var i = 0; i.length \u003c totalRepos.length; i++) {\n\t\tnums += 1;\n\t}\n\n\tvar forkedRepos = document.getElementsByClassName(\"repo-list-info\");\n\tvar forks = 0;\n\tfor (var n = 0; n.length \u003c forkedRepos.length; n++) {\n\t\tforks += 1;\n\t}\n\n\tvar mineRepos = (totalRepos.length - forkedRepos.length);\n\n\treturn \"Total Reposiories :\" + \" \" + totalRepos.length + \"\\n\" + \n\t\t   \"Forked Repositories :\" + \" \" + forkedRepos.length + \"\\n\" + \n\t\t   \"Original Repositories :\" + \" \" + mineRepos;\n}\n\nconsole.log(countRepos());\n```\n\n## NOTE\n\n```\nBefore, this code used to work for all the github users.\nBut now, github shows only 200 repository of a user on single page.\nSo, this code will work only if the user has 200 repositories.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Frepocount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Frepocount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Frepocount/lists"}