← all organisations

govuk-forms / Code

15 languages, 7.6 MB of source, and what the live estate is written in today.

Language figures come from GitHub's own per-repository byte counts, which measure source rather than a single headline label. File counts and repository sizes come from the mirrors themselves. The two tell different stories, and the difference is the point.

The codebase

15
languages in use
7.6 MB of source
4k
files at HEAD
across every analysed repository
0 B
on disk as mirrors
full history, every branch and tag
78.2 MB
largest repository
forms

What stands out

One archived repository holds 58% of all the bytes.

forms is 78.2 MB of git - a 2013 static snapshot of www.gov.uk, not source code. It single-handedly makes HTML the largest language by volume (20% of all source bytes). Any size or language statistic that does not exclude it is measuring an archive, not a codebase.

Sizes here are GitHub's reported figures.

This organisation was harvested with blobless partial clones, which fetch every commit and file path but not file contents, so there is no local size to measure against. Checked elsewhere in this dataset against 1,526 fully mirrored repositories, GitHub's reported size is accurate to within about six percent.

Ruby is the house language, but its share is falling.

Ruby is the primary language of 100% of archived repositories but only 62% of live ones. Python, Go, TypeScript and HCL have taken the difference - the signature of a shift from monolithic Rails publishing apps toward data pipelines, infrastructure-as-code and platform tooling.

Most repositories are small; a handful are enormous.

33% of repositories are under a megabyte of git data. The estate is not a monolith - it is a very long tail of small services, gems and prototypes around a few large publishing applications.

Languages, two ways

By volume of source

Bytes of code. Dominated by archived static HTML.

RubyRuby: 4.8 MB4.8 MBHTMLHTML: 1.5 MB1.5 MBHCLHCL: 781.0 kB781.0 kBJavaScriptJavaScript: 239.4 kB239.4 kBShellShell: 58.1 kB58.1 kBSCSSSCSS: 52.1 kB52.1 kBSmartySmarty: 27.3 kB27.3 kBMakefileMakefile: 16.5 kB16.5 kBJavaJava: 10.4 kB10.4 kBDockerfileDockerfile: 10.1 kB10.1 kBPythonPython: 8.6 kB8.6 kBCSSCSS: 3.0 kB3.0 kBNunjucksNunjucks: 974 B974 Bjqjq: 935 B935 B

By number of repositories

How many repositories name each language as their primary one. A better guide to what engineers actually work in.

RubyRuby: 99HTMLHTML: 66DockerfileDockerfile: 66ShellShell: 66JavaScriptJavaScript: 55HCLHCL: 44SCSSSCSS: 44CSSCSS: 22SmartySmarty: 11MakefileMakefile: 11PythonPython: 11jqjq: 11JavaJava: 11TypeScriptTypeScript: 11

Live estate versus archive

The same language ranking, split by whether the repository is still active. The shift is the clearest signal of technical direction in the whole dataset.

Active repositories

RubyRuby: 55HCLHCL: 11JavaJava: 11HTMLHTML: 11

Archived repositories

RubyRuby: 33HCLHCL: 00JavaJava: 00HTMLHTML: 00

Scale

Repository size distribution

Git data per repository, log-ish buckets.

53.82.51.20< 10 kB: 0< 10 kB< 100 kB: 2< 100 kB< 1 MB: 2< 1 MB< 10 MB: 5< 10 MB< 100 MB: 3< 100 MB100 MB +: 0100 MB +

Commits against files

Each circle is a repository, sized by number of distinct authors. Both axes are logarithmic. The diagonal band is the normal relationship between codebase size and churn; outliers above it are long-lived apps with heavy iteration, below it are dumps and imports.

9.1k1.5k233.937.56.012.038.3122.0388.91.2kforms: 1,643 commits, 606 files, 51 authorsforms-admin: 9,121 commits, 1,240 files, 58 authorsforms-api: 2,149 commits, 139 files, 36 authorsforms-api-prototype: 50 commits, 12 files, 6 authorsforms-deploy: 5,911 commits, 713 files, 44 authorsforms-e2e-tests: 782 commits, 36 files, 28 authorsforms-load-tests: 16 commits, 19 files, 4 authorsforms-management-prototype: 6 commits, 90 files, 1 authorsforms-product-page: 2,799 commits, 201 files, 47 authorsforms-prototypes: 1,069 commits, 205 files, 37 authorsforms-runner: 5,797 commits, 631 files, 48 authorsgovuk-forms-markdown: 238 commits, 61 files, 15 authorsfiles at HEAD (log)commits (log)

The shape of a repository

Directory layout is the cheapest reliable signal of what a repository actually is. app/ with config/ and spec/ is a Rails application; src/ with test/ is Java or Node. Counted by how many repositories contain each top-level directory at HEAD.

Most common top-level directories

specspec: 77binbin: 77appapp: 66configconfig: 66liblib: 66publicpublic: 55dbdb: 44.review_apps.review_apps: 33tmptmp: 22dockerdocker: 22loglog: 22storagestorage: 22designdesign: 11ADRADR: 11researchresearch: 11diagramsdiagrams: 11decision-recorddecision-record: 11engagementengagement: 11

Most common file extensions

By total file count across the estate.

.rb.rb: 1.6k1.6k.tf.tf: 441441.png.png: 408408.md.md: 281281.erb.erb: 258258.yml.yml: 182182.html.html: 171171.scss.scss: 5757.js.js: 5555.rake.rake: 2929.json.json: 2929.hcl.hcl: 2626.sh.sh: 2525.svg.svg: 2323.tfvars.tfvars: 1515.lock.lock: 1111

The twenty largest repositories

RepositoryLanguageGit size CommitsFilesStatus
forms-78.2 MB1,643606active
forms-deployHCL16.3 MB5,911713active
forms-adminRuby14.9 MB9,1211,240active
forms-runnerRuby9.2 MB5,797631active
forms-prototypesHTML7.3 MB1,069205active
forms-product-pageRuby4.0 MB2,799201active
forms-apiRuby2.0 MB2,149139archived
forms-e2e-testsRuby1.7 MB78236active
govuk-forms-markdownRuby272.4 kB23861active
forms-api-prototypeRuby148.5 kB5012archived
forms-management-prototypeRuby37.9 kB690archived
forms-load-testsJava31.7 kB1619active