GitHub new-repos research · 2 November 2026

How big are GitHub repos, and is the estimate right?

Two questions: does the lines-of-code estimate (GitHub language bytes ÷ 41) hold for repos from 2024, 2020 and 2010? And how big is a typical new GitHub repo each year from 2010 to 2026?

Key takeaways

    Validation: does the estimate hold for older repos?

    For 2024, 2020 and 2010, we took random repos spread evenly across six size buckets, cloned and counted them, and compared the real count with both estimators. The models are not refitted; they're used exactly as calibrated on the 2026 sample [1]:

    Size trend, 2010–2026

    10,000 fully random repos per creation year (forks excluded). Lines of code are estimated with the language-bytes model. Empty repos and repos with no code are reported separately, because they dominate a random sample and would push every median to zero.

    Is the 2026 jump real?

    Two checks: a second, independent sample of 10,000 repos created in 2026 (none shared with the first), and the same median broken down by the month each repo was created.

    Available once sampling is complete.

    What's behind the jump?

    A follow-up on a random subsample of the main sample: about 500 repos per year for 2016, 2018, 2020 and 2022–2025, and 750 for 2026. For each repo we read its git history directly [7]: the default branch as it was 7, 90 and 365 days after creation, plus today. Each snapshot's code is counted from file sizes by extension, with dependencies and minified files left out. At today's state this matches GitHub's language bytes (median ratio 1.00), so the numbers are comparable with the rest of the report. Three questions: is 2026 only bigger because its repos are younger, do AI coding agents leave traces, and are READMEs growing too?

    Available once the follow-up sample is collected.

    Size buckets by year

    Language mix

    Share of each year's sample by GitHub's primary language (top 6). Repos with no detected language are counted in the denominator but not listed.

    Top 50 languages, 2010–2026

    The 50 languages found in the most sampled repos (any amount of code, all years combined), as GitHub's Linguist detects them [5]. Pick up to 8 at once to compare; the list is ranked by how many sampled repos use each language.

    Available once sampling is complete.

    Method

    Limitations

    Validation repos

    Sources

    1. Estimating a GitHub repo's lines of code without downloading it, this research's calibration study (250 repos), 2026-11-02.
    2. List repository languages, GitHub Docs: bytes of code per language. Accessed 2026-11-02.
    3. Understanding the search syntax, GitHub Docs: date and time qualifiers. Accessed 2026-11-02.
    4. Rate limits and query limits for the GraphQL API, GitHub Docs. Accessed 2026-11-02.
    5. Linguist: Overrides, GitHub Linguist: which files count toward language stats. Accessed 2026-11-02.
    6. Primary data: this study's validation clones and random samples, collected 2026-11-02.
    7. Get a tree, GitHub Docs: Git trees REST API (recursive file listing with sizes). Accessed 2026-11-03.
    8. AGENTS.md, an open format for instructions to coding agents, used by Codex, Cursor, Jules and others. Accessed 2026-11-03.
    9. Claude Code settings, Anthropic Docs: the co-authored-by attribution Claude Code adds to commits by default. Accessed 2026-11-03.
    10. Claude (language model), Wikipedia: Claude model release dates and Claude Code preview / general availability. Accessed 2026-11-03.
    11. OpenAI GPT Model Release Timeline, Hidekazu Konishi, updated 2026-10-20: GPT-4o through GPT-6.1 release dates; cross-checked with Wikipedia's GPT-6 page. GPT-5.3-Codex (5 February 2026) from third-party trackers only. Accessed 2026-11-03.
    12. Gemini (language model), Wikipedia: Gemini 2.5 Pro, 3 Pro and 4 (Argon) release dates. Accessed 2026-11-03.