{"id":50937800,"url":"https://github.com/spenserblack/github-polyglot","last_synced_at":"2026-06-17T11:02:45.008Z","repository":{"id":363662126,"uuid":"1121799302","full_name":"spenserblack/github-polyglot","owner":"spenserblack","description":"Linguist, but for the user instead of the repository","archived":false,"fork":false,"pushed_at":"2026-06-09T20:55:08.000Z","size":60,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-09T22:06:07.831Z","etag":null,"topics":["github","language-statistics"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/spenserblack.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-23T15:17:04.000Z","updated_at":"2026-06-09T20:44:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/spenserblack/github-polyglot","commit_stats":null,"previous_names":["spenserblack/github-polyglot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/spenserblack/github-polyglot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fgithub-polyglot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fgithub-polyglot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fgithub-polyglot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fgithub-polyglot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spenserblack","download_url":"https://codeload.github.com/spenserblack/github-polyglot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Fgithub-polyglot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34204226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","language-statistics"],"created_at":"2026-06-17T11:02:41.132Z","updated_at":"2026-06-17T11:02:45.001Z","avatar_url":"https://github.com/spenserblack.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-polyglot\n\n[![Gem Version](https://badge.fury.io/rb/github-polyglot.svg)](https://badge.fury.io/rb/github-polyglot)\n[![CI](https://github.com/spenserblack/github-polyglot/actions/workflows/ci.yml/badge.svg)](https://github.com/spenserblack/github-polyglot/actions/workflows/ci.yml)\n\nLinguist, but for the user instead of the repository.\n\nThis scans all of the repositories that the user has and compiles the language stats.\nThe stats can be output as...\n\n- A human-readable terminal output\n- JSON\n- An SVG file resembling the language bar\n\n## Usage\n\n### As a GitHub Action\n\nThis action runs the `github-polyglot` gem in a Docker container.\n\n#### Inputs\n\n##### `token`\n\nOptional. GitHub API token to avoid rate limits when scanning repository language details.\n\n##### `user`\n\nOptional. The user to collect data for. Defaults to the owner of the repository that is running\nthe action.\n\n##### `format`\n\nOptional. The format of the output. Defaults to `print` (a display format for terminal display).\n\n#### Outputs\n\n##### `output`\n\nThe output of the `github-polyglot` gem.\n\n#### Example\n\n```yaml\n# ...\nsteps:\n- uses: spenserblack/github-polyglot@main\n  id: github-polyglot\n  with:\n    token: ${{ secrets.PAT }}\n    format: svg\n- name: Create language stats image\n  env:\n    SVG: ${{ steps.github-polyglot.outputs.output }}\n  run: echo \"$SVG\" \u003e language-stats.svg\n  # Commit the SVG with your favorite commands or actions\n```\n\n### As a Ruby Gem\n\nIf the `GITHUB_TOKEN` environment variable is set, it can use that token to get more\naccurate stats and avoid rate-limiting. You can also avoid needing to pass `--username`\nif you have the token set.\n\n## Building\n\n### Prerequisites\n\nThis project depends on [Linguist][github-linguist], which has some dependencies that\nmay require extra steps. Read their documentation for more details.\n\n#### On Ubuntu\n\n```shell\nsudo apt install build-essential cmake pkg-config libicu-dev zlib1g-dev libcurl4-openssl-dev libssl-dev ruby-dev\n```\n\n[dotenv-gem]: https://github.com/bkeepers/dotenv\n[github-linguist]: https://github.com/github-linguist/linguist\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspenserblack%2Fgithub-polyglot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspenserblack%2Fgithub-polyglot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspenserblack%2Fgithub-polyglot/lists"}