← all organisations

nhsuk-archive / Code

19 languages, 81.2 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

19
languages in use
81.2 MB of source
202k
files at HEAD
across every analysed repository
0 B
on disk as mirrors
full history, every branch and tag
118.9 MB
largest repository
experimental-patterns

What stands out

One archived repository holds 9% of all the bytes.

experimental-patterns is 118.9 MB of git - a 2013 static snapshot of www.gov.uk, not source code. It single-handedly makes HTML the largest language by volume (71% 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 3% 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.

47% 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: 58.0 MB58.0 MBJavaScriptJavaScript: 9.1 MB9.1 MBCSSCSS: 6.1 MB6.1 MBPythonPython: 3.8 MB3.8 MBSCSSSCSS: 2.7 MB2.7 MBC#C#: 605.0 kB605.0 kBTypeScriptTypeScript: 364.1 kB364.1 kBRubyRuby: 230.2 kB230.2 kBShellShell: 130.1 kB130.1 kBPHPPHP: 75.0 kB75.0 kBPowerShellPowerShell: 35.4 kB35.4 kBNunjucksNunjucks: 27.2 kB27.2 kBSmartySmarty: 25.4 kB25.4 kBHCLHCL: 23.2 kB23.2 kB

By number of repositories

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

JavaScriptJavaScript: 129129HTMLHTML: 105105CSSCSS: 7575ShellShell: 5858SCSSSCSS: 4242PythonPython: 2121DockerfileDockerfile: 2020RubyRuby: 88C#C#: 66NunjucksNunjucks: 55MakefileMakefile: 44TypeScriptTypeScript: 33PHPPHP: 22SmartySmarty: 22

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: 22JavaScriptJavaScript: 00PythonPython: 00ShellShell: 00CSSCSS: 00RubyRuby: 00C#C#: 00TypeScriptTypeScript: 00SmartySmarty: 00SCSSSCSS: 00

Archived repositories

HTMLHTML: 6060JavaScriptJavaScript: 4545PythonPython: 1919ShellShell: 1212CSSCSS: 1111RubyRuby: 44C#C#: 33TypeScriptTypeScript: 22SmartySmarty: 11SCSSSCSS: 11

Scale

Repository size distribution

Git data per repository, log-ish buckets.

6548.832.516.20< 10 kB: 21< 10 kB< 100 kB: 22< 100 kB< 1 MB: 44< 1 MB< 10 MB: 65< 10 MB< 100 MB: 31< 100 MB100 MB +: 2100 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.

7.2k1.2k189.730.85.0112.0144.41.7k20.9kReactTaxonomyTermChooser: 13 commits, 10 files, 4 authorsaccessibility-checklist: 22 commits, 85 files, 2 authorsalphahealth: 321 commits, 67 files, 12 authorsapim-blue-green-deploy: 198 commits, 56 files, 9 authorsaxe-selenium-python: 137 commits, 22 files, 19 authorsazure-data-service: 234 commits, 32 files, 7 authorsbanner: 68 commits, 33 files, 5 authorsbetahealth: 856 commits, 857 files, 21 authorsbetahealth-dashboard: 61 commits, 13 files, 9 authorsbetahealth-wagtail-demo: 34 commits, 49 files, 2 authorsbreast-screening-content-transformation-prototype: 61 commits, 163 files, 1 authorsbrightcove-cmsapi: 18 commits, 15 files, 5 authorsbs-select: 32 commits, 193 files, 3 authorsbunyan-logger: 261 commits, 18 files, 18 authorsc2s-page-per-gp-prototype: 335 commits, 148 files, 6 authorsc2s-use-current-location-prototype: 21 commits, 9,961 files, 6 authorscache-flush-slack-app: 169 commits, 78 files, 7 authorscervical-screening-interim: 2,151 commits, 2,399 files, 37 authorsci-deployment: 216 commits, 26 files, 15 authorscitizen-survey-tool-prototype: 170 commits, 296 files, 7 authorscms-eval: 13 commits, 54 files, 2 authorscococoto: 513 commits, 173 files, 19 authorsconnecting-to-services: 2,482 commits, 233 files, 42 authorsconnecting-to-services-design: 1,115 commits, 526 files, 30 authorsconnecting-to-services-design-beta: 10 commits, 393 files, 4 authorsconnecting-to-services-prototypes: 100 commits, 597 files, 4 authorsconsent-for-vaccinations-prototype: 338 commits, 113 files, 13 authorscontact-us-prototypes: 16 commits, 113 files, 7 authorscookie-consent-prototype: 126 commits, 60 files, 9 authorscypmh-prototype: 102 commits, 18,911 files, 4 authorsday-surgery-prototypes: 117 commits, 189 files, 9 authorsdct-wagtail-nhsuk-frontend: 441 commits, 142 files, 33 authorsdesign: 278 commits, 127 files, 10 authorsdesign-assets: 5 commits, 16 files, 4 authorsdesign-system-testing: 285 commits, 130 files, 3 authorsdev-base-machine: 10 commits, 4 files, 5 authorsdjango-snapshotpublisher: 46 commits, 45 files, 5 authorsdocker-nginx-https-redirect: 6 commits, 4 files, 2 authorsdolores-landingham-slack-bot: 232 commits, 284 files, 42 authorsdtos-strategic: 10 commits, 18,295 files, 3 authorselasticsearch-updater: 414 commits, 61 files, 14 authorserror-pages: 17 commits, 5 files, 7 authorseslint-config-nhsuk: 267 commits, 13 files, 19 authorsetl-toolkit: 21 commits, 24 files, 4 authorsetp-web-services: 26 commits, 31 files, 5 authorsexperimental-patterns: 46 commits, 74 files, 7 authorsfind-urgent-care-services: 1,694 commits, 713 files, 36 authorsfoundry-agent-webapp: 17 commits, 166 files, 2 authorsfrontend-dotnetcore: 47 commits, 212 files, 6 authorsfrontend-library: 222 commits, 104 files, 16 authorsfrontend-version-one: 114 commits, 89 files, 2 authorsfunnelspike: 12 commits, 3 files, 2 authorsgeneral-medical-practices: 10 commits, 7 files, 3 authorsgeneral-medical-practitioners: 21 commits, 7 files, 3 authorsget-a-shielding-note-prototype: 49 commits, 196 files, 2 authorsget-nhs-number-prototype: 183 commits, 194 files, 4 authorsglance: 63 commits, 29 files, 6 authorsgoogle-sheet-update: 25 commits, 7 files, 6 authorsgovuk-home-test-prototype: 63 commits, 182 files, 2 authorsgp-data-etl: 330 commits, 120 files, 9 authorsgp-feedback-prototype: 354 commits, 124 files, 12 authorsgp-finder: 1,208 commits, 205 files, 18 authorsgp-lookup: 201 commits, 56 files, 11 authorsgp-redirect: 213 commits, 41 files, 9 authorsgp-to-services: 228 commits, 42 files, 13 authorsimage-gallery-prototype: 49 commits, 170 files, 4 authorsinsulin-ux: 23 commits, 206 files, 3 authorsisolation-note-prototype: 420 commits, 242 files, 5 authorsleaveareview: 894 commits, 460 files, 8 authorsmake-nhs-services-inclusive-prototype: 88 commits, 197 files, 9 authorsmanage-childrens-vaccinations-prototype: 1,276 commits, 174 files, 8 authorsmedicines: 47 commits, 2 files, 1 authorsmenopause: 17 commits, 18,691 files, 2 authorsmental-health-service-finder: 866 commits, 139 files, 18 authorsmongodb-updater: 89 commits, 45 files, 8 authorsnbs-appointments-service: 380 commits, 144 files, 12 authorsnbs-check-in-app: 27 commits, 27 files, 1 authorsncrs-redesign: 621 commits, 387 files, 11 authorsnearby-services-api: 733 commits, 69 files, 21 authorsnhs-alpha-prototypes: 1,066 commits, 391 files, 33 authorsnhs-app-prototype: 121 commits, 293 files, 12 authorsnhs-notify-prototype: 29 commits, 464 files, 1 authorsnhs-prototypes-list: 34 commits, 1 files, 10 authorsnhsblog: 348 commits, 178 files, 17 authorsnhsuk-book-a-test-prototype: 543 commits, 223 files, 7 authorsnhsuk-charts: 64 commits, 17 files, 1 authorsnhsuk-cms-documentation: 11 commits, 17 files, 2 authorsnhsuk-content-store: 171 commits, 186 files, 8 authorsnhsuk-feedback-component-options: 33 commits, 20,864 files, 2 authorsnhsuk-header-search: 38 commits, 17 files, 13 authorsnhsuk-homepage-exploration: 66 commits, 359 files, 4 authorsnhsuk-homepage-exploration2: 16 commits, 17,963 files, 3 authorsnhsuk-info-arch-prototype-kit: 6 commits, 187 files, 2 authorsnhsuk-information-architecture-prototype: 1,031 commits, 1,060 files, 14 authorsnhsuk-nav-components-main: 9 commits, 18,500 files, 1 authorsnhsuk-page-templates-prototype: 12 commits, 219 files, 2 authorsnhsuk-portfolio: 518 commits, 63 files, 12 authorsnhsuk-prototype-kit-version-one: 211 commits, 75 files, 13 authorsnhsuk-rancher-templates: 230 commits, 56 files, 16 authorsnhsuk-react-commenting-component: 361 commits, 152 files, 11 authorsnhsuk-search-exploration: 21 commits, 16,932 files, 1 authorsnhsuk-sick-note: 420 commits, 187 files, 5 authorsnhsuk-sideways-navigation: 26 commits, 17,201 files, 1 authorsnhsuk-sketch-file: 19 commits, 2 files, 6 authorsnhsuk-syndicated-emergency-banner: 64 commits, 27 files, 3 authorsnhsuk-tools: 53 commits, 56 files, 11 authorsnhsuk-tools-prototype: 389 commits, 170 files, 15 authorsnhsuk.error-pages: 30 commits, 12 files, 4 authorspa11y-dashboard: 44 commits, 9 files, 7 authorspds-fhir-endpoint: 5 commits, 6 files, 1 authorspermission-to-contact-prototype: 472 commits, 696 files, 11 authorspharmacy-data: 41 commits, 12 files, 3 authorspharmacy-data-etl: 355 commits, 85 files, 12 authorspharmacy-db: 48 commits, 15 files, 8 authorspharmacy-service-data-etl: 281 commits, 53 files, 7 authorspipelines-dotnet-core: 34 commits, 77 files, 10 authorspomi-data-etl: 293 commits, 52 files, 11 authorspregnancy-prototype: 58 commits, 286 files, 2 authorsprimary-care-data-prototype: 146 commits, 126 files, 11 authorsprimary-care-prototypes: 216 commits, 359 files, 8 authorsprofiles: 989 commits, 226 files, 20 authorsprofiles-db: 216 commits, 38 files, 10 authorsprofiles-db-elastic: 127 commits, 31 files, 9 authorsprofiles-etl-combiner: 265 commits, 55 files, 10 authorsprototype-orgresponse: 5 commits, 159 files, 1 authorsrancher-azure: 39 commits, 11 files, 2 authorsrancher-cleanup: 21 commits, 6 files, 2 authorsrancher-elasticsearch-cluster: 35 commits, 5 files, 4 authorsrancher-gitlab-runner: 11 commits, 5 files, 5 authorsrancher-prometheus-global: 6 commits, 6 files, 3 authorsreact-responsive-modal: 530 commits, 30 files, 18 authorsreact-streamfield: 189 commits, 69 files, 8 authorsreact-taxonomy-permission-chooser: 22 commits, 15 files, 1 authorsredesign-frontend-kit: 1,703 commits, 272 files, 28 authorsregister-with-a-gp-beta-web: 1,462 commits, 222 files, 20 authorsregister-with-a-gp-design: 25 commits, 22 files, 3 authorsregister-with-a-gp-prototypes: 269 commits, 361 files, 5 authorsround-length-planning-tool: 6 commits, 18,493 files, 2 authorsseal: 390 commits, 42 files, 41 authorssee-a-gp-prototype: 125 commits, 400 files, 7 authorssexual-health-information-etl: 181 commits, 68 files, 6 authorssexual-health-service-data-combiner: 357 commits, 48 files, 6 authorssexual-health-service-finder: 882 commits, 318 files, 29 authorssimple-conditions-prototypes: 243 commits, 404 files, 9 authorsslack-profile-reminder: 5 commits, 6 files, 1 authorssmaller-checkboxes-test: 32 commits, 156 files, 2 authorsstyleguides: 238 commits, 6 files, 52 authorssymptoms-prototypes: 5 commits, 281 files, 3 authorstools-prototype: 385 commits, 170 files, 15 authorstraefik-rancher: 29 commits, 8 files, 5 authorstypeahead.js: 789 commits, 74 files, 119 authorsurgent-care-prototypes: 1,663 commits, 41 files, 34 authorsuser-research-repo: 42 commits, 159 files, 2 authorsvault-rancher: 15 commits, 3 files, 5 authorsverba: 72 commits, 101 files, 3 authorsvitamind-shielding-prototype: 292 commits, 165 files, 6 authorswagtail: 7,196 commits, 2,480 files, 264 authorswagtail-adminstreamfieldmeta: 18 commits, 36 files, 3 authorswagtail-apiimagerendition: 27 commits, 39 files, 5 authorswagtail-import-export: 34 commits, 19 files, 7 authorswagtail-react-streamfield: 86 commits, 40 files, 8 authorswagtail-reacttaxonomy: 95 commits, 49 files, 12 authorswagtail-rfcs: 43 commits, 11 files, 7 authorswagtail-schema.org: 21 commits, 34 files, 6 authorswagtail-smartquotes: 9 commits, 28 files, 2 authorswagtail-snapshotpublisher: 106 commits, 76 files, 8 authorsweb-performance: 8 commits, 6 files, 2 authorswidgets-react-poc: 13 commits, 25 files, 2 authorswinston-azure-application-insights: 19 commits, 7 files, 4 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: 7979liblib: 6969docsdocs: 5757middlewaremiddleware: 4343scriptsscripts: 4040publicpublic: 3333rancher-configrancher-config: 2929testtest: 2828docdoc: 2424configconfig: 2323srcsrc: 2020teststests: 1919linterslinters: 1515assetsassets: 1313datadata: 1111node_modulesnode_modules: 1010viewsviews: 88binbin: 66

Most common file extensions

By total file count across the estate.

.js.js: 99.3k99.3k.md.md: 16.6k16.6k.ts.ts: 14.6k14.6k.json.json: 13.9k13.9k.html.html: 12.2k12.2k.map.map: 11.4k11.4k.png.png: 4.4k4.4k.scss.scss: 2.8k2.8k.yml.yml: 1.8k1.8k.jpg.jpg: 1.3k1.3k.py.py: 1.2k1.2k.njk.njk: 748748.mo.mo: 539539.po.po: 539539.txt.txt: 441441.cs.cs: 304304

The twenty largest repositories

RepositoryLanguageGit size CommitsFilesStatus
experimental-patterns-118.9 MB4674archived
simple-conditions-prototypesHTML109.3 MB243404archived
day-surgery-prototypesHTML97.6 MB117189archived
urgent-care-prototypesCSS80.4 MB1,66341archived
redesign-frontend-kitHTML76.5 MB1,703272archived
wagtailPython46.9 MB7,1962,480archived
nhsuk-feedback-component-optionsHTML37.7 MB3320,864archived
dtos-strategicCSS33.7 MB1018,295archived
menopauseHTML26.1 MB1718,691archived
cervical-screening-interimHTML25.3 MB2,1512,399archived
nhsuk-homepage-explorationHTML24.6 MB66359active
cypmh-prototypeJavaScript23.5 MB10218,911archived
nhsuk-homepage-exploration2HTML23.0 MB1617,963active
nhsuk-sideways-navigationHTML22.7 MB2617,201archived
nhsuk-search-explorationHTML22.0 MB2116,932archived
round-length-planning-toolCSS21.7 MB618,493archived
nhs-app-prototypeHTML20.9 MB121293archived
nhsuk-nav-components-mainCSS20.8 MB918,500archived
image-gallery-prototypeHTML19.1 MB49170archived
cococotoHTML16.2 MB513173archived