← all organisations

defra-design / Code

14 languages, 1.8 GB 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

14
languages in use
1.8 GB of source
517.9k
files at HEAD
across every analysed repository
0 B
on disk as mirrors
full history, every branch and tag
871.6 MB
largest repository
check-for-flooding

What stands out

One archived repository holds 27% of all the bytes.

check-for-flooding is 871.6 MB of git - a 2013 static snapshot of www.gov.uk, not source code. It single-handedly makes HTML the largest language by volume (93% 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 0% of archived repositories but only 0% 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.

31% 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.

HTMLHTML: 1.7 GB1.7 GBJavaScriptJavaScript: 64.5 MB64.5 MBCSSCSS: 42.4 MB42.4 MBSCSSSCSS: 10.0 MB10.0 MBNunjucksNunjucks: 5.7 MB5.7 MBTypeScriptTypeScript: 295.7 kB295.7 kBLessLess: 78.5 kB78.5 kBPythonPython: 35.5 kB35.5 kBShellShell: 22.5 kB22.5 kBHandlebarsHandlebars: 12.5 kB12.5 kBRich Text FormatRich Text Format: 5.1 kB5.1 kBDockerfileDockerfile: 2.5 kB2.5 kBProcfileProcfile: 1.8 kB1.8 kBRubyRuby: 685 B685 B

By number of repositories

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

JavaScriptJavaScript: 118118SCSSSCSS: 115115HTMLHTML: 113113ProcfileProcfile: 3636NunjucksNunjucks: 3535CSSCSS: 3030ShellShell: 2828PythonPython: 44DockerfileDockerfile: 22TypeScriptTypeScript: 22HandlebarsHandlebars: 11Rich Text FormatRich Text Format: 11RubyRuby: 11LessLess: 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

HTMLHTML: 7878JavaScriptJavaScript: 1616CSSCSS: 77SCSSSCSS: 55NunjucksNunjucks: 33TypeScriptTypeScript: 11

Archived repositories

HTMLHTML: 44JavaScriptJavaScript: 44CSSCSS: 33SCSSSCSS: 11NunjucksNunjucks: 00TypeScriptTypeScript: 00

Scale

Repository size distribution

Git data per repository, log-ish buckets.

523926130< 10 kB: 8< 10 kB< 100 kB: 7< 100 kB< 1 MB: 25< 1 MB< 10 MB: 34< 10 MB< 100 MB: 52< 100 MB100 MB +: 3100 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.

6.5k1.1k180.830.15.0114.5211.03.1k44.5kDefra-Form-Tool-Proto: 27 commits, 64 files, 1 authorsDefra-content-patterns-and-style-guide: 20 commits, 1 files, 3 authorsDefra-outcomes: 11 commits, 29 files, 1 authorsGB-notification-service: 64 commits, 241 files, 4 authorsGDS-Test-Kit: 50 commits, 37 files, 2 authorsImport-risk-categorisation: 6 commits, 8,475 files, 2 authorsPrototype-test: 10 commits, 16 files, 1 authorsRACE-prototype: 945 commits, 1,057 files, 7 authorsWater-Quality-Checker: 13 commits, 58 files, 1 authorsaccessibility: 254 commits, 99 files, 11 authorsadmin-responsibility-prototype: 54 commits, 51 files, 2 authorsai-patterns: 19 commits, 25 files, 2 authorsapplications-and-permissions-prototype: 508 commits, 10,190 files, 4 authorsapps-and-permissions-exotic: 2,692 commits, 1,166 files, 12 authorsaqie-design-history: 149 commits, 490 files, 3 authorsaqie-prototype: 41 commits, 167 files, 2 authorsbatteries-epr-prototype: 68 commits, 861 files, 3 authorsbiodiversity-net-gain-prototype: 1,105 commits, 3,399 files, 12 authorsbng-credit-prototype: 336 commits, 863 files, 4 authorsbng-digital: 36 commits, 98 files, 3 authorsbtms-prototype: 402 commits, 265 files, 2 authorscap-flood-warning-codes: 106 commits, 212 files, 6 authorscaseworking-ai-test: 53 commits, 810 files, 1 authorscheck-for-flooding: 1,796 commits, 19,571 files, 6 authorscheck-for-flooding-prototype: 235 commits, 246 files, 3 authorscheck-local-aq: 554 commits, 4,170 files, 6 authorscites-prototype: 35 commits, 30,333 files, 9 authorscpr-prototype: 6,536 commits, 23,183 files, 50 authorsdefra-forms-designer-history: 61 commits, 263 files, 3 authorsdefra-forms-mvp-prototype: 649 commits, 4,128 files, 5 authorsdesign: 219 commits, 15 files, 14 authorsdesign-help: 42 commits, 71 files, 1 authorsdigital-form-builder: 104 commits, 51 files, 4 authorsdigital-waste-reporting: 165 commits, 1,003 files, 2 authorsdomestic-combustibles: 65 commits, 398 files, 3 authorsdst-price-list: 49 commits, 16 files, 1 authorse-cites-control-prototype: 46 commits, 129 files, 2 authorsecho-certifier-prototype: 244 commits, 1,650 files, 11 authorsecho-prototype: 1,023 commits, 3,502 files, 16 authorsechoUI-prototype: 5 commits, 27,219 files, 2 authorsetrade-prototype: 3,132 commits, 2,598 files, 120 authorsfcp-animal-health: 152 commits, 2,379 files, 5 authorsfcp-combined-offer: 618 commits, 11,484 files, 8 authorsfcp-farming-front-door: 1,161 commits, 44,527 files, 16 authorsfcp-future-grants: 72 commits, 1,234 files, 3 authorsfcp-future-rps: 813 commits, 12,656 files, 7 authorsfcp-grants-casework: 230 commits, 11,061 files, 3 authorsfcp-grants-patterns: 9 commits, 19 files, 1 authorsfcp-one-off-grants: 341 commits, 1,145 files, 10 authorsff-ss: 41 commits, 222 files, 3 authorsffc-advice: 399 commits, 261 files, 14 authorsffc-ahwr-prototype: 1,965 commits, 16,805 files, 12 authorsffc-regulation-and-enforcement-prototype: 224 commits, 644 files, 10 authorsfind-design-history: 401 commits, 45 files, 8 authorsfind-prototype: 10 commits, 24 files, 2 authorsfish-prototype: 741 commits, 1,576 files, 15 authorsflood-map-for-planning-2: 427 commits, 947 files, 8 authorsflood-map-for-planning-design-history: 458 commits, 142 files, 10 authorsflood-risk-map: 41 commits, 89 files, 1 authorsfmfp-prototype: 662 commits, 746 files, 16 authorsforms-prototype: 354 commits, 3,875 files, 4 authorsfps-prototype: 21 commits, 483 files, 4 authorsget-air-pollution-data-prototype: 285 commits, 1,396 files, 4 authorsget-flood-warnings1: 5 commits, 30,240 files, 1 authorsgovuk-jekyll-theme: 30 commits, 210 files, 2 authorsgrants-prototype: 2,202 commits, 5,267 files, 30 authorshow-many-in-uk: 42 commits, 25 files, 5 authorsidm-prototype: 3,771 commits, 2,926 files, 116 authorsipaffs-prototype: 1,823 commits, 2,639 files, 20 authorsivory-prototype: 1,249 commits, 3,344 files, 26 authorslaps-prototype: 287 commits, 487 files, 4 authorslaps-prototype-v2: 173 commits, 132 files, 5 authorslivestock-traceability: 251 commits, 1,284 files, 6 authorsltfri-prototype: 634 commits, 1,141 files, 16 authorsmanage-biodiversity-gains: 387 commits, 1,290 files, 4 authorsmanage-water-abstraction-prototype: 178 commits, 84 files, 1 authorsmanage-your-packaging-waste-responsibilities-prototype: 25 commits, 77 files, 2 authorsmap-shape: 11 commits, 73 files, 1 authorsmarine-licensing-prototype: 1,602 commits, 1,582 files, 7 authorsmmo-mas: 300 commits, 120 files, 2 authorsmovinganimalstogb: 419 commits, 196 files, 7 authorsmpdp-prototype: 72 commits, 13,625 files, 3 authorsnew-cites-prototype: 235 commits, 595 files, 3 authorsnotification-service-prototype: 173 commits, 246 files, 2 authorsnutrient-management: 2,640 commits, 1,050 files, 5 authorsofficial-controls-prototype: 6 commits, 137 files, 2 authorspathway-rr-prototype: 46 commits, 177 files, 1 authorspig-syndromic-surveillance: 39 commits, 454 files, 4 authorsplant-exports-prototype: 2,785 commits, 28,561 files, 16 authorsplant-health-information: 97 commits, 10,031 files, 9 authorspreview-content: 6 commits, 7 files, 2 authorsprn-design-history: 50 commits, 24,587 files, 2 authorsprtr-prototype: 21 commits, 98 files, 1 authorsqualtrics-theme: 18 commits, 4 files, 4 authorsrcr-prototype: 6 commits, 45 files, 3 authorsreex-applications-prototype: 69 commits, 80 files, 4 authorsreex-regulator-prototype: 96 commits, 99 files, 3 authorsreport-dead-wild-birds-prototype: 47 commits, 110 files, 2 authorsrpa-mapping-improvements: 212 commits, 157 files, 4 authorsrpd-prototype: 18 commits, 8,753 files, 7 authorsservice-refresh-assets: 944 commits, 335 files, 4 authorssfi-22: 35 commits, 33,309 files, 1 authorssnippets: 9 commits, 8 files, 2 authorssustainable-development-prototype: 1,187 commits, 2,812 files, 3 authorstest-products-prototype: 40 commits, 174 files, 2 authorstfws: 68 commits, 179 files, 7 authorstfws-prototype: 63 commits, 31,828 files, 8 authorstrade-paper-prototype: 37 commits, 66 files, 1 authorsvet-gateway-guidance: 178 commits, 80 files, 3 authorswarnings-improvement-project: 90 commits, 797 files, 8 authorswater-availability-prototype: 378 commits, 298 files, 2 authorswhitehall-template: 7 commits, 140 files, 1 authorswrls-prototype: 3,006 commits, 1,182 files, 92 authorswrls-versions: 2,908 commits, 1,730 files, 92 authorswtp-glw-prototype: 314 commits, 2,166 files, 7 authorswts-prototype: 168 commits, 1,550 files, 5 authorsxws-internal-prototype: 36 commits, 306 files, 3 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

appapp: 109109docsdocs: 3737liblib: 3333gulpgulp: 2323node_modulesnode_modules: 1616publicpublic: 1414.vscode.vscode: 1111scriptsscripts: 1111.idea.idea: 66srcsrc: 44.cursor.cursor: 44assetsassets: 44"app"app: 33journey-demojourney-demo: 22.husky.husky: 22.claude.claude: 22serviceservice: 22testtest: 22

Most common file extensions

By total file count across the estate.

.js.js: 159.8k159.8k.html.html: 153.7k153.7k.ts.ts: 47.8k47.8k.map.map: 43.6k43.6k.md.md: 22.8k22.8k.json.json: 21.4k21.4k.pbf.pbf: 19.4k19.4k.scss.scss: 6.8k6.8k.png.png: 5.4k5.4k.njk.njk: 4.1k4.1k.yml.yml: 1.5k1.5k.mjs.mjs: 1.4k1.4k.css.css: 1.3k1.3k.txt.txt: 906906.backup.backup: 581581.cjs.cjs: 490490

The twenty largest repositories

RepositoryLanguageGit size CommitsFilesStatus
check-for-floodingJavaScript871.6 MB1,79619,571active
flood-map-for-planning-2HTML108.6 MB427947active
fmfp-prototypeHTML103.7 MB662746active
forms-prototypeHTML100.3 MB3543,875active
plant-exports-prototypeHTML98.1 MB2,78528,561active
accessibilityCSS95.1 MB25499active
fcp-farming-front-doorHTML83.3 MB1,16144,527active
idm-prototypeHTML76.1 MB3,7712,926active
warnings-improvement-projectHTML69.7 MB90797active
defra-forms-designer-historyNunjucks62.5 MB61263active
cites-prototypeCSS62.1 MB3530,333archived
ffc-ahwr-prototypeHTML58.7 MB1,96516,805active
fps-prototypeJavaScript58.2 MB21483active
prn-design-historyJavaScript57.5 MB5024,587active
ivory-prototypeHTML57.4 MB1,2493,344active
get-flood-warnings1HTML57.3 MB530,240active
bng-credit-prototypeHTML54.3 MB336863active
aqie-design-historyJavaScript53.1 MB149490active
larsHTML47.8 MB233,943active
apps-and-permissions-exoticJavaScript45.1 MB2,6921,166active