A Software Heritage product

The State of Public Code

How are governments contributing to Open Source?

240,922 Repositories with public sector contributions
82,438 Public sector contributors with at least 1 commit
114/195 Countries and territories with contributions to at least 10 repos

Source: Software Heritage archive snapshot, June 2026

Key findings

Heatmap of shared projects between the top 30 countries for cross-border collaboration (log scale). The darkest cells are France and United States, then United Kingdom and United States; a dense block links Indonesia, Mexico, Ecuador, Vietnam and Malaysia.
Cross-border collaboration happens even without formal agreements: France-US (709 shared projects), UK-US (347), Indonesia-Mexico (86).
Scatter plot of per-country government contributors (log scale) against the UN E-Government Development Index 2024, for 160 countries: the count rises with EGDI, Spearman rho = 0.53.
Open source contributions correlate most with a higher e-government index (ρ = 0.53), well ahead of GDP per capita (0.30).
Donut chart of hosting platforms for government-associated projects: github.com 90.8%, gitlab.com 2.6%, pypi.org 1.6%, gitlab.inria.fr 1.6%, bitbucket.org 1.4%, 62 other platforms 1.9%.
About nine projects in ten are hosted on a single commercial platform; Software Heritage preserves them independently of any platform.

As a citizen, I want to discover open source projects made by the administration.

Got a minute? Want to learn more?

Let us know if you're open to a brief interview. Your input directly drives the metrics and methodology of the next report.

Get involved