{"id":17684608,"url":"https://github.com/mattrltrent/ghloc","last_synced_at":"2026-04-29T18:32:55.351Z","repository":{"id":220239905,"uuid":"751120150","full_name":"mattrltrent/ghloc","owner":"mattrltrent","description":"🖥️ Keeps track of all your repositories' stats across your entire GitHub account. On Homebrew.","archived":false,"fork":false,"pushed_at":"2024-02-05T05:43:35.000Z","size":137,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T07:37:51.928Z","etag":null,"topics":["github-api","github-profile","homebrew","homebrew-tap"],"latest_commit_sha":null,"homepage":"https://matthewtrent.me/articles/ghloc","language":"Rust","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/mattrltrent.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":"2024-02-01T00:56:25.000Z","updated_at":"2025-11-24T12:38:56.000Z","dependencies_parsed_at":"2024-02-05T06:46:09.172Z","dependency_job_id":null,"html_url":"https://github.com/mattrltrent/ghloc","commit_stats":null,"previous_names":["mattrltrent/ghloc"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mattrltrent/ghloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrltrent%2Fghloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrltrent%2Fghloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrltrent%2Fghloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrltrent%2Fghloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattrltrent","download_url":"https://codeload.github.com/mattrltrent/ghloc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrltrent%2Fghloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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":["github-api","github-profile","homebrew","homebrew-tap"],"created_at":"2024-10-24T10:24:10.078Z","updated_at":"2026-04-29T18:32:55.333Z","avatar_url":"https://github.com/mattrltrent.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub LOC counter: `ghloc`\n\n[Blog post](https://matthewtrent.me/articles/ghloc) covering its creation 📚\n\n### Example output\n\nThis scans all your repositories and aggregates your commit data (`ghloc stats`):\n\n\u003cimg src=\"https://github.com/mattrltrent/ghloc/blob/main/assets/demo_1.png?raw=true\" width=\"\" height=\"\" style=\"display: inline\"/\u003e\n\n\n### Install via Homebrew\n\nTo install, run:\n\n```sh\nbrew tap mattrltrent/tap ; brew install ghloc\n```\n\nTo verify installation, run:\n\n```sh\nghloc --version\n```\n\n### Quick start\n\n**Get your GitHub token**\n\n1. Go to [GitHub's token manager](https://github.com/settings/tokens?type=beta) (you may need to login) and click the **Generate new token** button in the top-right.\n\n2. Give your new token a name, an optional description, and set its expiration. The specifics of what you enter don't matter. However, if your token expires, you'll have to re-enter a new one in the tool.\n\n3. Under **Repository access**, select **All repositories**.\n\n4. Under the **Permissions** \u003e **Repository permissions** dropdown, grant your token **Access: Read-only** for:\n\n    - **Contents**\n    - **Commit statuses**\n\n**Use the CLI tool**\n\nRun this to set your credentials with your GitHub username and newfound token:\n\n```sh\nghloc set --username \u003cYOUR_NAME\u003e --token \u003cYOUR_TOKEN\u003e\n```\n\nYou can check they were added and saved correctly by running:\n\n```sh\nghloc creds\n```\n\nAnd if needed, clear them by running:\n\n```sh\nghloc clear\n```\n\nThen run this to check your stats (it will take a while):\n\n```sh\nghloc stats\n```\n\nIf you're ever lost, try:\n\n```sh\nghloc help\n```\n\nor:\n\n```sh\nghloc example\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrltrent%2Fghloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattrltrent%2Fghloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrltrent%2Fghloc/lists"}