{"id":17749800,"url":"https://github.com/stscoundrel/polylinguist","last_synced_at":"2026-05-18T03:11:15.359Z","repository":{"id":143571412,"uuid":"615750156","full_name":"stscoundrel/polylinguist","owner":"stscoundrel","description":"More exact language usage stats from Github profile. Customizable results.","archived":false,"fork":false,"pushed_at":"2026-01-01T15:02:09.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-06T18:33:34.377Z","etag":null,"topics":["github-api","go","golang","golang-library","graphql","readme-stats","top-languages"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/stscoundrel/polylinguist","language":"Go","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/stscoundrel.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":"2023-03-18T15:16:38.000Z","updated_at":"2026-01-01T15:02:11.000Z","dependencies_parsed_at":"2024-03-16T07:46:09.769Z","dependency_job_id":null,"html_url":"https://github.com/stscoundrel/polylinguist","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"stscoundrel/go-template","purl":"pkg:github/stscoundrel/polylinguist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fpolylinguist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fpolylinguist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fpolylinguist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fpolylinguist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stscoundrel","download_url":"https://codeload.github.com/stscoundrel/polylinguist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stscoundrel%2Fpolylinguist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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-api","go","golang","golang-library","graphql","readme-stats","top-languages"],"created_at":"2024-10-26T11:24:57.147Z","updated_at":"2026-05-18T03:11:15.323Z","avatar_url":"https://github.com/stscoundrel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polylinguist\n\nMore exact language usage stats from Github profile.\n\nFeatures:\n- No limits like only \"top 10 languages\"\n- Both public \u0026 private repos via access token\n- Aliasing similar languages to same stats. For example, combine C \u0026 C++ to C/C++\n- Ignoring languages. For example, drop markup like SCSS, HTML, Twig etc.\n- Ignoring repositories. For example, drop a repository that contains megabytes of generated code, skewing statistics.\n\n## Install\n\n`go get github.com/stscoundrel/polylinguist`\n\n\n## Usage\n\nPolylinguist exposes a functions for getting Github language stats by username \u0026 access token.\n\nWith default settings:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n\t\"github.com/stscoundrel/polylinguist\"\n)\n\naccessToken := \"YOUR_ACCESS_TOKEN\"\n\n// Fetches all languages from all repos.\nstats, err := polylinguist.GetTopLanguages(\"YOUR_USERNAME\", accessToken)\n\nif err != nil {\n    // However you want to deal with your errors.\n    // Most likely cause: failed network, failed auth.\n}\n\nfor index, language := range stats {\n    fmt.Printf(\"%d. %s - %f - %s \\n\", index+1, language.Name, language.Percentage, language.Color)\n}\n```\n\nWith custom settings:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n\t\"github.com/stscoundrel/polylinguist\"\n\t\"github.com/stscoundrel/polylinguist/stats\"\n)\n\naccessToken := \"YOUR_ACCESS_TOKEN\"\n\n// Setup custom settings to skip certain languages \u0026 repos\n// Also set custom aliases to combine some languages into single statistic.\nsettings := stats.Settings{\n    IgnoredLanguages: []string{\"SCSS\", \"CSS\", \"ASL\", \"HTML\"},\n    IgnoredRepos: []string{\n        \"old-norwegian-dictionary\",\n        \"old-norwegian-dictionary-rs\",\n        \"old-norwegian-dictionary-go\",\n    },\n    AliasedLanguages: []stats.LanguageAlias{\n        {\n            Language: \"C\",\n            Alias:    \"C/C++\",\n        },\n        {\n            Language: \"C++\",\n            Alias:    \"C/C++\",\n        },\n    },\n}\n\nstats, err := polylinguist.GetTopLanguagesWithSettings(\"YOUR_USERNAME\", accessToken, settings)\n\nif err != nil {\n    // However you want to deal with your errors.\n}\n\nfor index, language := range stats {\n    fmt.Printf(\"%d. %s - %f - %s \\n\", index+1, language.Name, language.Percentage, language.Color)\n}\n```\n\nOutput will be something to the effect of:\n\n```\n1. TypeScript - 37.237267 - #3178c6 \n2. JavaScript - 28.081825 - #f1e05a \n3. Go - 9.608068 - #00ADD8 \n4. Rust - 5.951985 - #dea584 \n5. C# - 5.426030 - #178600 \n6. PHP - 4.735421 - #4F5D95 \n7. Python - 3.653692 - #3572A5 \n8. Java - 2.354974 - #b07219 \n9. Nim - 1.370613 - #ffc200 \n10. Scala - 0.892341 - #c22d40 \n11. C/C++ - 0.359692 - #555555 \n12. Kotlin - 0.223640 - #A97BFF \n13. F# - 0.076285 - #b845fc \n14. Dockerfile - 0.027167 - #384d54 \n15. Shell - 0.001000 - #89e051\n```\n\nUp to you what kind of graphic or chart you want to produce with the data. The data includes Github language colors for visual portions.\n\n### As Vercel Cloud Function\n\nFor a template on usage as a cloud function on Vercel, see [this repo](https://github.com/stscoundrel/polylinguist-vercel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fpolylinguist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstscoundrel%2Fpolylinguist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstscoundrel%2Fpolylinguist/lists"}