# The largest Go repositories by lines of code

OctoCounts has measured 537 public GitHub repositories whose primary programming language is Go. Sidiora-Labs/paxeer-monorepo is the largest, with 8,570,472 code lines across 41,882 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.

| Rank | Repository | Code lines | Total lines | Files | Go share |
| --- | --- | --- | --- | --- | --- |
| 1 | [Sidiora-Labs/paxeer-monorepo](https://octocounts.com/github/Sidiora-Labs/paxeer-monorepo) | 8,570,472 | 9,809,617 | 41,882 | 29.4% |
| 2 | [googleapis/google-cloud-go](https://octocounts.com/github/googleapis/google-cloud-go) | 7,225,977 | 10,113,896 | 24,876 | 89.5% |
| 3 | [googleapis/google-api-go-client](https://octocounts.com/github/googleapis/google-api-go-client) | 6,656,504 | 9,623,739 | 1,543 | 52.9% |
| 4 | [meshery/meshery](https://octocounts.com/github/meshery/meshery) | 6,317,973 | 6,395,654 | 36,850 | 2.6% |
| 5 | [google/fhir](https://octocounts.com/github/google/fhir) | 6,037,483 | 6,330,735 | 32,244 | 18.0% |
| 6 | [Azure/azure-sdk-for-go](https://octocounts.com/github/Azure/azure-sdk-for-go) | 4,527,070 | 6,693,542 | 19,091 | 98.7% |
| 7 | [grafana/grafana](https://octocounts.com/github/grafana/grafana) | 4,151,998 | 4,848,725 | 22,064 | 33.1% |
| 8 | [kubernetes/kubernetes](https://octocounts.com/github/kubernetes/kubernetes) | 4,080,874 | 5,066,955 | 15,314 | 67.1% |
| 9 | [ptone/scion](https://octocounts.com/github/ptone/scion) | 3,828,462 | 5,151,707 | 13,469 | 82.2% |
| 10 | [hashicorp/terraform-provider-aws](https://octocounts.com/github/hashicorp/terraform-provider-aws) | 3,518,721 | 4,098,088 | 16,523 | 92.9% |
| 11 | [nwverse/persona](https://octocounts.com/github/nwverse/persona) | 3,457,257 | 4,069,338 | 21,092 | 49.8% |
| 12 | [matrixorigin/matrixone](https://octocounts.com/github/matrixorigin/matrixone) | 3,186,373 | 3,927,211 | 8,136 | 95.1% |
| 13 | [cockroachdb/cockroach](https://octocounts.com/github/cockroachdb/cockroach) | 3,085,053 | 4,182,809 | 12,785 | 84.1% |
| 14 | [mattermost/mattermost](https://octocounts.com/github/mattermost/mattermost) | 2,594,870 | 3,058,278 | 9,542 | 33.8% |
| 15 | [gravitational/teleport](https://octocounts.com/github/gravitational/teleport) | 2,513,355 | 3,277,385 | 11,080 | 74.9% |
| 16 | [simplexai-labs/linger](https://octocounts.com/github/simplexai-labs/linger) | 2,409,192 | 2,508,496 | 4,435 | 11.3% |
| 17 | [golang/go](https://octocounts.com/github/golang/go) | 2,185,023 | 3,081,128 | 9,757 | 91.0% |
| 18 | [milvus-io/milvus](https://octocounts.com/github/milvus-io/milvus) | 2,163,489 | 2,686,450 | 6,944 | 74.2% |
| 19 | [sourcegraph/sourcegraph-public-snapshot](https://octocounts.com/github/sourcegraph/sourcegraph-public-snapshot) | 1,949,533 | 2,387,445 | 14,383 | 48.8% |
| 20 | [open-telemetry/opentelemetry-collector-contrib](https://octocounts.com/github/open-telemetry/opentelemetry-collector-contrib) | 1,905,815 | 2,323,391 | 12,884 | 75.1% |
| 21 | [mudler/LocalAI](https://octocounts.com/github/mudler/LocalAI) | 1,820,319 | 2,216,253 | 9,521 | 51.2% |
| 22 | [pingcap/tidb](https://octocounts.com/github/pingcap/tidb) | 1,688,917 | 2,103,219 | 5,177 | 81.9% |
| 23 | [vitessio/vitess](https://octocounts.com/github/vitessio/vitess) | 1,668,674 | 2,209,660 | 4,077 | 76.0% |
| 24 | [coder/coder](https://octocounts.com/github/coder/coder) | 1,611,775 | 1,941,177 | 7,491 | 64.1% |
| 25 | [multica-ai/multica](https://octocounts.com/github/multica-ai/multica) | 1,547,710 | 1,918,170 | 8,667 | 50.2% |
| 26 | [OrchestratorInc/agent-orchestrator](https://octocounts.com/github/OrchestratorInc/agent-orchestrator) | 1,547,648 | 1,822,328 | 7,279 | 47.7% |
| 27 | [coze-dev/coze-studio](https://octocounts.com/github/coze-dev/coze-studio) | 1,533,916 | 1,975,073 | 13,762 | 39.6% |
| 28 | [apache/plc4x](https://octocounts.com/github/apache/plc4x) | 1,521,556 | 2,085,127 | 6,643 | 83.1% |
| 29 | [openmeterio/openmeter](https://octocounts.com/github/openmeterio/openmeter) | 1,322,875 | 1,699,368 | 4,747 | 79.7% |
| 30 | [yetone/magpie](https://octocounts.com/github/yetone/magpie) | 1,314,150 | 1,639,377 | 7,789 | 88.5% |
| 31 | [infiniflow/ragflow](https://octocounts.com/github/infiniflow/ragflow) | 1,304,609 | 1,600,363 | 5,993 | 64.9% |
| 32 | [smithersai/vibelang](https://octocounts.com/github/smithersai/vibelang) | 1,237,559 | 1,564,724 | 19,330 | 58.2% |
| 33 | [strelov1/freehire](https://octocounts.com/github/strelov1/freehire) | 1,190,149 | 1,814,353 | 12,442 | 73.9% |
| 34 | [jlcodes99/cockpit-tools](https://octocounts.com/github/jlcodes99/cockpit-tools) | 1,183,188 | 1,313,157 | 2,806 | 34.6% |
| 35 | [Wei-Shaw/sub2api](https://octocounts.com/github/Wei-Shaw/sub2api) | 1,132,136 | 1,369,444 | 4,300 | 90.7% |
| 36 | [stackrox/stackrox](https://octocounts.com/github/stackrox/stackrox) | 1,125,635 | 1,357,538 | 9,576 | 66.5% |
| 37 | [esengine/DeepSeek-Reasonix](https://octocounts.com/github/esengine/DeepSeek-Reasonix) | 1,107,544 | 1,321,717 | 10,478 | 76.8% |
| 38 | [iDvel/rime-ice](https://octocounts.com/github/iDvel/rime-ice) | 1,106,273 | 1,152,847 | 124 | 0.2% |
| 39 | [gastownhall/beads](https://octocounts.com/github/gastownhall/beads) | 1,095,045 | 1,513,500 | 5,296 | 90.3% |
| 40 | [warmbly/warmbly](https://octocounts.com/github/warmbly/warmbly) | 1,013,848 | 1,255,592 | 7,682 | 54.0% |
| 41 | [cilium/cilium](https://octocounts.com/github/cilium/cilium) | 1,007,670 | 1,294,691 | 7,357 | 73.0% |
| 42 | [hanc00l/nemo_go](https://octocounts.com/github/hanc00l/nemo_go) | 989,194 | 3,324,281 | 7,944 | 5.3% |
| 43 | [rorkai/App-Store-Connect-CLI](https://octocounts.com/github/rorkai/App-Store-Connect-CLI) | 972,495 | 1,090,721 | 4,002 | 97.9% |
| 44 | [Tencent/WeKnora](https://octocounts.com/github/Tencent/WeKnora) | 964,053 | 1,212,708 | 5,875 | 74.4% |
| 45 | [google/simhospital](https://octocounts.com/github/google/simhospital) | 959,566 | 1,123,659 | 257 | 99.5% |
| 46 | [TencentCloud/CubeSandbox](https://octocounts.com/github/TencentCloud/CubeSandbox) | 951,064 | 1,182,698 | 3,504 | 38.7% |
| 47 | [argoproj/argo-cd](https://octocounts.com/github/argoproj/argo-cd) | 915,353 | 1,011,246 | 4,666 | 48.8% |
| 48 | [looplj/axonhub](https://octocounts.com/github/looplj/axonhub) | 914,986 | 1,090,875 | 3,154 | 75.6% |
| 49 | [router-for-me/CLIProxyAPI](https://octocounts.com/github/router-for-me/CLIProxyAPI) | 885,637 | 998,450 | 2,529 | 98.0% |
| 50 | [nsgo-dev/nsgo](https://octocounts.com/github/nsgo-dev/nsgo) | 879,226 | 1,039,450 | 4,745 | 89.7% |

Ranking rule: a repository belongs to Go when Go is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "Go share" is the share of the repository's code lines written in Go. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

## FAQ

### Which Go repository has the most lines of code?

Sidiora-Labs/paxeer-monorepo is the largest Go repository in OctoCounts' index, with 8,570,472 code lines out of 9,809,617 total lines across 41,882 files, counted on November 24, 2026. googleapis/google-cloud-go follows with 7,225,977 code lines. Code size is not code quality: a larger count only means more source material.

### How does a repository join the Go leaderboard?

Go must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

### How many Go repositories has OctoCounts measured?

537 public GitHub repositories have Go as their primary programming language in OctoCounts' index. This page lists the 50 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

## Curated comparisons in Go

- [Rust vs Go: lines of code compared](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js: lines of code compared](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform: lines of code compared](https://octocounts.com/compare/kubernetes-vs-terraform)

## Related OctoCounts pages

- [The largest codebases by programming language](https://octocounts.com/languages)
- [How OctoCounts counts lines of code](https://octocounts.com/docs/methodology)
- [Hall of Monoliths: largest repositories by lines of code](https://octocounts.com/hall-of-monoliths)
- [How many lines of code? The largest codebases, counted](https://octocounts.com/docs/largest-codebases)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [OctoCounts: count lines of code in any public GitHub repository](https://octocounts.com/)
