{"id":24589379,"url":"https://github.com/ppebb/metrics","last_synced_at":"2026-05-17T12:05:22.911Z","repository":{"id":273621512,"uuid":"919859274","full_name":"ppebb/metrics","owner":"ppebb","description":"Generate a language usage graph for a Github profile","archived":false,"fork":false,"pushed_at":"2025-03-05T02:04:30.000Z","size":144,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T03:18:39.548Z","etag":null,"topics":["github","github-profile","profile-card","readme-generator"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ppebb.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":"2025-01-21T06:26:09.000Z","updated_at":"2025-03-05T02:04:33.000Z","dependencies_parsed_at":"2025-03-05T03:18:28.273Z","dependency_job_id":"edeecc13-068d-4441-b2fd-964b3bdba433","html_url":"https://github.com/ppebb/metrics","commit_stats":null,"previous_names":["ppebb/metrics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppebb%2Fmetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppebb%2Fmetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppebb%2Fmetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppebb%2Fmetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppebb","download_url":"https://codeload.github.com/ppebb/metrics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117640,"owners_count":20400743,"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":["github","github-profile","profile-card","readme-generator"],"created_at":"2025-01-24T08:15:27.990Z","updated_at":"2026-05-17T12:05:22.905Z","avatar_url":"https://github.com/ppebb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppeb's metrics\n\n\"Simple\" Go project to generate a language graph for your repositories,\nintended to be run locally.\n\n## Building\n\n0. Have the Go compiler installed\n1. `git clone https://github.com/ppebb/metrics.git`\n2. `go build`\n\n## Usage\n```\n./ppebtrics [OPTIONS]\n -h|--help             Display this message and exit\n -c|--config           Specify the path to your config.yml\n -o|--output           Specify the output path of your svg\n -d|--dry-run          Dry run! List the repos to be cloned and analyzed\n -s|--silent           Don't output to stdout\n -f|--force            Ignore the lockfile, run even if it is present\n```\n\n## Config\n\nSee `example.config.yml` for a template.\n\nlocation (`string`): The path to store repositorites at.\n\nindepth (`boolean`): Whether to index every commit, or just count the lines of\neach file as they are in the latest commit.\n\ncounttotal (`boolean`): When true, diffs are calculated as added - removed.\nWhen false, diffs are calculated as added + removed.\n\ncountspaces (`boolean`): When true, blank lines are included in the count.\n\nlangscount (`integer`): How many languages to display.\n\nstyle.theme (`string`): Path to a theme.yml file (see `./themes`).\n\nstyle.type (`string`): `\"compact\"` or `\"vertical\"`.\n\nstyle.count (`string`): The metric to count, `\"lines\"` or `\"bytes\"`.\n\nstyle.bytesbase (`integer`): When counting bytes, whether to use metric or\nbinary prefixes (MB vs MiB).\n\nstyle.showtotal (`boolean`): Whether to include a line displaying the total\nnumber of lines/bytes and files beneath the header.\n\ntoken (`string`): A Github access token with the repository scope, only if you\nwant to count private repositories.\n\nexcludeforks (`boolean`): Should forks be included in counts.\n\nparallel (`integer`): How many goroutines to spawn at once. Higher will count\nfaster but may encounter network bottlenecks when cloning.\n\nusers (`[]string`): Users to count repositories of.\n\norgs (`[]string`): Organizations to count repositories of.\n\nrepositories (`[]string`): Repositories to count. Not subject to filters.\n\nauthors (`[]string`): When counting in-depth, the author strings used to match\ncommits to consider (see the `--author` option of `git-log`).\n\nfilters (`[]string`): Regex patterns used to match repositories to exclude.\n\ncommits (`[]string`): List of 6-character commit hashes to exclude.\n\nignore.enryvendor (`boolean`): Whether to ignore files identified by go-enry as vendored.\n\nignore.linguistvendor (`boolean`): Whether to ignore files identified by `.gitattributes` as vendored.\n\nignore.dotfiles (`boolean`): Whether to ignore files identified by go-enry as dotfiles.\n\nignore.binary (`boolean`): Whether to ignore files identified by go-enry as binary.\n\nignore.configuration (`boolean`): Whether to ignore files identified by go-enry as configuration.\n\nignore.image (`boolean`): Whether to ignore files identified by go-enry as images.\n\nignore.test (`boolean`): Whether to ignore files identified by go-enry as tests.\n\nignore.generated (`boolean`): Whether to ignore files identified by go-enry as generated.\n\nignore.langs (`[]string`): List of languages to exclude from results.\n\npostexec (`string`): String passed to `sh -c` to be executed after processing\nrepositories. Useful to copy the generated svg to a remote server for hosting.\n\n## Credit\nThis project is loosely based upon\n[lowlighter/metrics](https://github.com/lowlighter/metrics) and\n[anuraghazra/github-readme-stats](https://github.com/anuraghazra/github-readme-stats)\nfor SVG styling.\n\n[go-enry](https://github.com/go-enry/go-enry) is used to identify the languages\nof each file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppebb%2Fmetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppebb%2Fmetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppebb%2Fmetrics/lists"}