OpenCommons

Design language

Principles

These are the rules the network is built to. Where a site hasn’t caught up yet, the sections below say so.

  1. The canonical URL is the API. Every entity lives at one human-readable URL; machines get the same URL with a format extension (.json, .md, .csv…). There is no /api namespace, no version prefix and no API keys — a plain HTTP GET is the whole contract.
  2. Server-rendered, no frameworks. Pages are rendered on the server (Django templates or a Cloudflare Worker) with a handful of hand-written stylesheets per site and small amounts of dependency-free vanilla JavaScript. No CSS framework, no client framework, no build step for the front end.
  3. Progressive enhancement everywhere. Everything works without JavaScript: forms are plain GETs, charts read their data from server-rendered tables, tooltips are <details> elements, sliders degrade to number inputs. JS adds convenience (scroll-spy, prefetch, charts, maps), never capability.
  4. Open by default, guarded by engineering. No sign-up, no rate limits. Load is managed with caps (embedded lists, result counting), statement timeouts that degrade to friendly messages, and layered caching — not with gates.
  5. Provenance is part of the product. Every record links back to its source register; the goal is provenance in-band — source_url and retrieved_at on API rows, licence attribution (Open Government Licence v3.0, Open Parliament Licence v3.0) in footers and payloads — as openinterests.uk and opencompanies.uk already do.
  6. Honest numbers. Result counts cap at “1,000+” rather than pretending precision; unreliable headline stats get plain-English caveats; OCR’d documents carry a visible disclaimer.
  7. One family, one blue. Every property shares the same accent blue, token set, wordmark pattern and favicon system. A site’s identity comes from its name suffix and favicon glyph, not from a different palette.

Identity

Naming

Properties are named Open + Thing, one word, capitalised as OpenThing, at the domain open{thing}.uk. The thing is a plural, concrete noun for the register being opened: Charities, Interests, Companies, Postcodes, Properties.

Wordmark

The wordmark is plain text in the site header: Open<span>Thing</span>. “Open” is white at weight 700; the suffix span is dimmed to opacity: 0.7 at weight 600. The pattern (as shipped on opencharities.uk): an <h1 class="site-title"> on the homepage and a linked <p class="site-title"> everywhere else, so each page keeps exactly one h1, owned by the content. openpostcodes.uk currently keeps the h1 wordmark on every page, and several opencompanies.uk page types title with an h2 — new sites should follow the h1/p pattern, as openproperties.uk does. openproperties.uk also names both halves — <span class="site-title-open"> and <span class="site-title-thing"> — rather than leaving “Open” as a bare text node, and pins font-size, letter-spacing and line-height on .site-title so the h1 and the p render identically instead of differing by the 2.8px the heading styles would otherwise add. Both are worth copying.

OpenCommons

OpenCharities

OpenInterests

OpenCompanies

OpenPostcodes

OpenProperties

OpenContracts

Favicons

One system: a 32×32 rounded square (rx="6") filled with the brand blue #1a5fb4, carrying a single white glyph for the site’s domain. The hub’s glyph is a 2×2 grid of squares: separate registers, one commons. It was drawn when there were exactly four and has stayed a pattern rather than a tally — it should not be redrawn every time a site joins.

Commons
Charities
Interests
Companies
Postcodes
Properties
Legislation
Contracts

openpostcodes.uk serves its envelope badge as a multi-size .ico; the SVG above is illustrative.

Taglines

Each site has a one-line, verb-led description used on the hub: “Indexing UK charity records”, “Tracking political financial interests”, “Mapping UK corporate networks”, “Locating UK postcodes”, “Charting house sale prices”, “Tracing UK public sector contracts”. The hub’s own line is the homepage hero, “Search the UK’s public registers.”, with the intro under it: “Companies, charities, laws, house sales, postcodes and politicians’ interests. Quick, clear, interconnected, and free.” The older network line, “Public registries made quick, clear, searchable, and interconnected. Distributing transparent, accountable public data.”, is no longer shown on the page and survives only as the homepage’s meta description.

Keep them under about 40 characters. The hub’s homepage lists the sites in two columns of rows (glyph, name, tagline, figure) and prints each tagline on its own after the name — “Mapping UK corporate networks”, with no domain — in 13px muted text, in whatever width the row leaves beside its figure: about 300px at the narrowest, on the Legislation row beside “Acts and instruments”. At 40 characters the tagline still fits one line there, so the two rows side by side stay the same height; on a phone the rows stack and a long tagline may wrap, which costs nothing. Two were cut back to fit when the hub used 256px cards — openpostcodes.uk’s dropped “and addresses”, and openproperties.uk’s dropped “in England and Wales”, which is a real scope limit and is left to the site itself to state.

Colour

Every site declares the same core tokens as CSS custom properties on :root. The palette is deliberately small: near-black text, one blue, greys, and a handful of semantic colours. Light theme only — no site ships a dark mode.

Core tokens

--color-bg: #fffPage background
--color-text: #313131Body text
--color-muted: #666Secondary text, labels, table headers
--color-header-bg: #1a5fb4The brand blue: header band
--color-link: var(--color-header-bg)Links, buttons, focus rings — tied to the header colour, never a separate hex
--color-link-hover: #0d3d6bLink and button hover
--color-border: #dddBorders, table rules, h2 underline
--color-header-text: #fffHeader text and wordmark

--color-link is declared as var(--color-header-bg), not a duplicated hex value — the header band and every link, button and focus ring on the site are structurally the same colour and can’t drift apart. Change the brand colour in one place.

Supporting colours

#eef3fcAccent wash: tag pills, active/hover fills
#f5f7faPanels, table row hover, code background
#f5f5f5Footer background
#0b6e4fActive/positive status badges
#8a8a8aDissolved/inactive status badges
#b3261eErrors and warnings
#1a7f37Success states (e.g. “Copied!”)
#fff8e1 / #e0b800Amber caveat blocks (OCR disclaimers)
#fff3a8Search snippet <mark> highlight

Data-visualisation colours

Chart series come from a small categorical set, assigned in fixed order per field so a series keeps its colour whether or not the others have data, and checked for colour-vision separation against a white surface. On opencompanies.uk: turnover #2a78d6, net assets #eb6834, cash #1baf7a, employees #eda100. Where a series has a natural meaning it takes the semantic colour instead — opencharities.uk plots income #1a7f37 and expenditure #c93030, with net in #6b7280. Gridlines are #e8e8e8 and every axis or legend label #666. Map markers, cluster circles and boundary overlays are the brand blue: #1a5fb4, with #5ba3e8 and #0d3d6b stepping the cluster scale either side of it. See Charts and Maps.

Typography

One webfont — Inter Variable — served from the hub at /shared/opencommons.css, with a system-font stack behind it. The scale is small and consistent:

UseSpec
Bodyvar(--font-sans) — "Inter Variable", ui-sans-serif, system-ui, sans-serif; base 15px; line-height: 1.5; letter-spacing: -0.01em; colour #313131
Font renderingfont-feature-settings: "cv02", "cv03", "cv04", "calt" (Inter's disambiguated 4/6/9), font-optical-sizing: auto, greyscale antialiasing
Root sizehtml stays at 16px so rem remains a layout unit; text sizes are set in px from the shared scale
Type scale--text-xs 12px · --text-sm 13px · --text-base 15px · --text-lg 17px · --text-xl 20px · --text-2xl 24px · --text-3xl 30px
Page title h11.75rem, one per page
Section heading h21.25rem with a 1px --color-border bottom rule and 0.25rem padding
Wordmark .site-title1.25rem weight 700 (1.1rem ≤640px); suffix span opacity 0.7, weight 600
Small textvar(--text-sm) — 13px. One step below body, used for labels, footers, dt, th, table bodies, pagination, breadcrumbs and code panels
Extra smallvar(--text-xs) — 12px, for badges, demo labels and popup chrome. Tag pills remain at 0.78rem
Codevar(--font-mono) at 0.9em on a #f5f7fa chip; Inter's feature settings and tracking are reset to normal
Numbersfont-variant-numeric: tabular-nums, right-aligned in tables via a .num class
LinksAlways underlined, text-underline-offset: 2px; never colour-only

Every site now inherits the family stack, the type scale and the colour tokens from /shared/opencommons.css, so body type and text colour no longer drift. Small text is var(--text-sm) everywhere, one step below body rather than equal to it, and the old off-scale table sizes (0.85rem/0.9rem) have been folded into it. Body, small and extra-small text are therefore fully tokenised. Headings and tag pills are still hardcoded rem values: 1rem and 1.25rem happen to equal --text-lg and --text-xl exactly, while 1.1rem, 1.75rem and the rest sit off the scale. Moving headings onto tokens is a design decision, not a mechanical swap. Per-site drift that remains is in the heading sizes. openproperties.uk is the one site that matches the table exactly — 1.75rem h1, ruled 1.25rem h2, 1.25rem wordmark dropping to 1.1rem — and it comments why: the shared stylesheet supplies the weight, so the site sets only the size. openinterests.uk now matches it too. openpostcodes.uk’s h2 is an unruled 1.2rem and its code chips are #f3f3f3. New properties should use the table above.

Layout & spacing

Content column
--max-width: 1100px, defined once in the shared stylesheet and centred with margin: 0 auto. Every site, the hub included, caps its bar, header, main and footer at it, padding included, so the content column is 1052px on a desktop and doesn't jump as you move between sites. Don't redefine it locally; cap long text inside the column instead (prose at about 72ch).
Gutter unit
--spacing: 1.5rem used for page padding; multiples via calc() for footers and bottoms. It is set once, in /shared/opencommons.css, and no site defines it.
Mobile rule
At max-width: 640px the shared stylesheet redefines --spacing: 0.75rem, so every site, and the network bar above it, gets the same 12px gutter on a phone. Pad page-level blocks with var(--spacing) rather than a hardcoded value, and don't redefine it locally: a site’s stylesheet loads after the shared one, so a local :root { --spacing } would override the mobile value.
Page scaffolds
Two-column CSS grids that collapse to a single column on mobile: filter sidebar (260px + 1fr), in-page section nav (200px + 1fr), stats column (1fr + 15rem), person page (14rem + 1fr). Sidebars are position: sticky; top: 1.5rem.
Header band
Solid #1a5fb4, min-height: 4rem, wordmark left, optional compact search right.
Radii
6px for panels and cards; 4–6px on form controls and buttons (4px on every site; openproperties.uk splits the two, giving its filter inputs 4px and the button beside them 6px, which is the one place the range is visible inside a single form); 999px for pills and badges; 2px on focus outlines.
Wide content
Tables always sit inside a .table-wrap { overflow-x: auto } so the page never scrolls horizontally.
Full-bleed exception
Map pages drop the max-width and fill 100dvh — see Maps.

Components

The shared kit, shown live where this page can render it. Not every site uses every component — this is the vocabulary to draw from. All components are server-rendered HTML with class-based styling, and none should require JavaScript to function (two current exceptions are flagged below).

Network bar

The grey-on-near-black strip at the very top of this page (and every page on every site). It is owned by the hub — markup at opencommons.uk/shared/bar, styles in /shared/opencommons.css — and links the whole family. Below 720px, where the brand and every link stop fitting on one line, the inline links give way to an “OpenCommons” toggle, a native <details> with no JavaScript, which opens a panel listing the hub and every sister site. See Shared assets for the include contract.

Blue band with the wordmark; on content pages a compact search form (role="search", translucent rgba(255,255,255,0.15) input with white text) sits on the right, omitted on the homepage and search pages where a large hero search takes over (opencharities.uk, opencompanies.uk, openinterests.uk; openproperties.uk omits it on the homepage only, so as not to put the same field on screen twice). Focus outlines switch to white inside the band.

The hub has two of its own. Its homepage keeps the h1 wordmark in the band and continues the blue into a hero below it: a large white search field with a visible primary “Search” button, the first submit button in the form, so Enter searches every register at /search; then a row of “Search in” pills, each a further submit button with formaction set to one site’s own search and carrying that site’s favicon glyph. It all works without JavaScript. The results page at /search is a content page: linked p wordmark on the left, the compact search on the right with the query filled in, wrapping to its own full-width line on a phone with the field at 16px so iOS doesn’t zoom.

Status badges & tag pills

Live example

Active Dissolved former

Badges are 999px-radius pills, 0.75rem/600 white text: green #0b6e4f for active/positive, grey #8a8a8a for dissolved/inactive/disqualified. Tag pills are the quiet variant: #eef3fc background with blue text.

Data tables

Live example

CompanyStatusIncorporatedNet assets
Example Holdings LtdActive2019-03-14£184,873
Sample Trading LtdDissolved2004-11-02—
No further rows match.

Full-width, collapsed borders. Headers are muted, weight 600, with a 2px bottom rule and scope="col" (opencharities.uk, openinterests.uk and openproperties.uk set the scope attribute; the others should). Rows get a #f5f7fa hover. First and last cells strip their outer padding so text sits flush with the column edges. Numeric and date cells use .num. Empty states are a full-colspan muted row, not a missing table. For sorting, openinterests.uk renders headers as links toggling ?ordering=, with aria-sort and a ▲/▼ arrow on the active column; opencharities.uk uses a <select name="sort"> instead.

Financial statements

Live example

Item28 Feb 202628 Feb 2025
Fixed assets£752,640£752,337
Current assets£5,135£45,941
Debtors-£476
Cash at bank and in hand£5,135£45,465
Creditors: due within one year£484,213-
Net current assets/liabilities-£478,409-£538,645
Net assets/liabilities£252,661£193,141

Figures as filed. A dash means the figure wasn’t tagged in that filing, which isn’t the same as zero.

A filed balance sheet or profit and loss account, one period beside its comparative, is a data table set out the way the accounts themselves are. opencompanies.uk’s accounts pages (.accounts-figures) are the reference.

Width
Capped at 42rem, not full width, so each label sits beside its amounts instead of half a screen away. Amount columns are 9rem on desktop and size to their content on phones.
Amounts
.num on the cells and on their date headers, so the digits line up under the date. Whole pounds with grouping, negatives as -£1,200. The corner cell is empty to the eye but carries a visually hidden “Item”, and each row label is a th scope="row" at normal weight.
Structure
Lines follow the statutory order. Subtotals are bold (tr.total): net current assets, total assets less current liabilities, net assets, shareholders’ funds, gross and operating profit, profit before tax, profit for the period. Parts of a line above them (debtors, cash) are indented 1rem and muted (tr.sub).
Comparative
The earlier period’s column is muted (.prior), so the eye reads the current year first.
Missing figures
A muted dash, never a zero or an empty cell, explained once in a muted note under the last table. A line drops out only when neither period has it.
Period
“1 Apr 2024 to 31 Mar 2025” in the facts list above the tables, only when the filing gives a start. A balance-sheet-only filing has no start, and the heading already gives the date it was made up to.

Facts list

The standard key–value component on entity pages: a <dl> laid out as a two-column grid (label column max-content or fixed 9–10rem), muted bold dt labels — as used for the Layout section above.

Entity preview

Live example: hover a value, or Tab to it

Company number
07529991
Charity number
1140676
Postcode
EX2 5DW
MP
Adam Dance
Donor
Mina Travel Ltd
Act
Equality Act 2010

The card, drawn in place

A link to a record on another family site can carry a hover card that says what is at the other end before the reader leaves: the company behind a charity’s company number, the charity behind a company, the MP or donor behind a donation, the area behind a postcode. It is an enhancement only. The link is a normal link to the record’s canonical page, the card never holds anything the page doesn’t, and without JavaScript, on a phone or with a finger, the link simply goes there.

<a href="https://opencompanies.uk/company/07529991" data-preview>07529991</a>
<script defer src="//opencommons.uk/shared/preview.js"></script>
Markup
Add data-preview to the link and load /shared/preview.js on that page only, from the hub, like the shared libraries (it caches for an hour, so no ?v=). The styles are already in /shared/opencommons.css. Use it on identifiers and names in a facts list or table cell that point off-site; not on links within the same site, which speculation rules already make instant, and not on links to outside registers (Companies House, the Charity Commission).
Data
The card fetches the link’s own .json, the same record every entity URL already serves, so there is no separate preview endpoint to keep in step. That makes Access-Control-Allow-Origin: * on entity JSON a requirement, not a nicety. The script holds one small adapter per kind of record that picks the fields: today companies, charities, MPs and peers, political donors, postcodes and legislation. A link no adapter knows gets no card. A site can teach it another kind with OpenCommonsPreview.register({ host, path, card }).
Card
In this order: the record’s name, weight 600; one status badge; and up to four muted lines, the facts that tell two similar records apart (type, dates, place, a headline number). No link: the reader is already pointing at one, so the card is information only and takes no pointer events. 280px wide, 6px radius, --color-border edge, a soft 0 4px 16px rgba(0,0,0,.15) shadow, text at --text-sm. Names come as the register’s own JSON gives them, or its display_name where it has one.
Badge
The quiet pill opencharities.uk uses for filing status, not the solid status badge: --text-xs/600 on a tint, green #e6f4ea/#1e7e34 (.is-positive) for active, registered, current; amber #fdf1dc/#8a5300 (.is-warning) for something outstanding; grey otherwise.
Behaviour
Opens 150ms after the pointer rests on the link, so passing over it does nothing, and closes 100ms after the pointer leaves. It opens on keyboard focus too (:focus-visible), is linked to the link with aria-describedby while open, and Escape closes it. It is positioned in the page, not the window, so it stays beside its link when the page scrolls; it sits below the link, or above when there is no room below. It shows “Loading…” until the JSON arrives and “Details unavailable.” if it doesn’t, and each record is fetched once per page.
Phones
Hidden at max-width: 640px, and a touch never opens it, since a tap is a click.

Search tabs

Folder-style tabs over search facets. The baseline is an inset box-shadow so the active tab’s opaque background “opens” into the content; the strip scrolls horizontally with hidden scrollbars on narrow screens; the active tab carries aria-current="page". openinterests.uk adds per-tab result counts (“People (12)”) and defaults to the tab with the most matches; opencharities.uk and opencompanies.uk use plain labels landing on the primary facet.

Pagination

Live example

Previous/Next bordered buttons with rel="prev"/"next" and a centred “Page X of Y” status, laid out as a 1fr auto 1fr grid. Each button sits inside its own .pagination-prev/.pagination-next wrapper, and it is the wrapper that carries justify-self: start/end: the wrapper holds its column open on the first and last page, when there is no link to put in it, so the status stays centred instead of sliding across. Without the justify-self the button would stretch the full width of its track.

On opencharities.uk and opencompanies.uk result counting is capped at 1,000, so totals render as “1,000+ results” (opencompanies.uk and openinterests.uk carry the cap into “Page 3 of 20+”); openinterests.uk counts its listing pages exactly, since none of them is large enough to need the cap. Links preserve every non-page query parameter.

Drift: only opencharities.uk and openinterests.uk ship the grid above. opencompanies.uk lays the same three parts out with display: flex and a[rel="next"] { margin-left: auto }, and prints no wrappers, so its status sits beside the Previous button rather than centred — and jumps to the left edge on page one. The buttons themselves are identical on both; it is only the layout around them that differs. openproperties.uk is a third shape again — flex, centred, 6px buttons, no arrows, and a .disabled span holding the place of the missing end rather than a wrapper div. All three should converge on the grid.

Stats panel

Live example

Homepage sidebar card on #f5f7fa: muted 0.8rem labels over bold tabular-nums figures. Numbers that deserve caution get a <details>-based info tooltip — a circled italic serif “i” that works without JavaScript (opencompanies.uk’s pattern, and openinterests.uk’s).

Live example

Every pill above is a working link to a real record. The first four are the set a charity page prints; PDF is what a document page prints instead of CSV and ZIP; the last three are additions only one site each makes. Follow any of them and the file downloads or renders — that is the whole of the API.

Rounded pill links to a record’s machine formats. They appear in a visible “Data” section on entity pages, mirroring the <link rel="alternate"> tags in the head — fully shipped on charity and company pages, and on openinterests.uk’s entity pages; openproperties.uk and opencompanies.uk’s secondary entity types currently expose the head tag or plain links only — openproperties.uk carries the tag on all four levels of its address hierarchy and no pill on any of them.

Markup
A <ul class="data-links"> of <li>s, each holding one <a> whose only extra class names the format: format-json, format-md, format-csv, format-pdf, format-zip, format-geojson, format-rss, format-schema. No icon markup in the HTML — the class is the whole contract.
Pill
inline-flex, 0.3rem 0.75rem padding, 999px radius, 1px --color-border, --color-link text at --text-sm, undecorated. 0.5rem gap between pills; the list wraps. Hover fills --color-accent-bg and pulls the border to --color-link over 0.15s.
Icon
An ::before box, 16px square with a -0.2rem left margin, painted background-color: currentColor and clipped by mask: no-repeat center / contain. The glyph is a stroke-only 24×24 feather-style outline at stroke-width: 2, round caps and joins. A mask reads only the alpha channel, so the file’s own stroke colour never shows — pills inherit the link colour, including on hover, for free.
Where the glyphs live
Django sites keep them as files in static/img/formats/*.svg and reference them by URL; openpostcodes.uk, having no static directory, wraps the same path data into data:image/svg+xml mask URIs at build time. Either is fine — the geometry is what has to match.
Which pills where
JSON and Markdown on everything. CSV where the record has a table (a charity’s financial years); ZIP for a bundle; PDF on document pages. openpostcodes.uk swaps CSV for GeoJSON — a map-pin glyph in place of the grid icon — since a postcode’s boundary field is a geometry, not a table, and adds a JSON Schema pill for the response shape. opencompanies.uk adds RSS on SIC pages, where new incorporations are a feed.

Drift: openpostcodes.uk draws its icon box at 14px rather than 16px, so its pills sit a hair tighter than the same pill on a charity page. opencompanies.uk’s pdf.svg is the one glyph off the family grid — a 16 viewBox at stroke-width: 1.5 with a solid filled label block, where every other icon is a 24 viewBox outline at 2; opencharities.uk’s pdf.svg is the correct one, and is what the demo above uses.

The trail above is the one openproperties.uk prints on 4 North Street, DH6, copied verbatim. Two rules make it:

First crumb
The property’s own name — “OpenProperties”, “OpenCharities”, “OpenCompanies” — linked to its homepage. Never “Home”: a reader arriving from a search result needs to be told which of the family’s sites they have landed on, and the word “Home” tells them nothing. It is also the first BreadcrumbList item a crawler is given, so it has to be a name.
Last crumb
Ancestors only — the current page is the h1, not a breadcrumb item. Everything in the list is therefore a link, and the trail stops one level above where the reader is.

The trail sits 0.75rem above the page heading. Any less and the heading reads as part of the trail, which is why opencompanies.uk went from 0.25rem to 0.75rem in November 2026. openinterests.uk matches. opencharities.uk and openlegislation.uk still use 0.5rem.

Separators are “›” drawn with li + li::before. openproperties.uk builds the list once in _hierarchy_breadcrumbs() and hands it to both base.html and schema_org.py, so the nav a reader sees and the BreadcrumbList a crawler is told about cannot disagree; the other sites still write the trail out in each template.

Errors & caveats

Live example

Your search was too broad to finish in time. Please add a filter or use a more specific term.

Errors are in-page, friendly, and #b3261e at weight 600. On opencharities.uk and opencompanies.uk a slow query hits the 15-second statement timeout and renders a message like this — never a raw 500. OCR’d document pages carry an amber disclaimer block (#fff8e1 with a #e0b800 left rule).

Charts

A chart is never handed its own data. The server renders the figures once as a table, each formatted cell carrying the machine-readable number beside it in a data-value attribute; the chart script reads those attributes on load and draws a picture of what is already on the page. The table is simultaneously the single source of truth and the no-JS fallback, and there is no second payload to drift out of sync with it.

Live example

Example Holdings Ltd — filed accounts
YearTurnoverNet assets
2024£7.4m£3.0m
2023£6.1m£2.3m
2022£5.6m—
2021£4.2m£1.1m
Real ECharts, loaded from the hub, reading the table underneath it — there is no second copy of these figures anywhere on the page. Turn JavaScript off and the table remains, unchanged and complete; nothing is lost but the picture. 2022 filed no net-assets figure, so that cell’s data-value is empty and the orange line breaks rather than dropping to zero.
Library
ECharts, loaded from the hub as //opencommons.uk/shared/echarts.js. Every glue script opens with if (typeof echarts === 'undefined') return;, so a failed load leaves the table untouched rather than throwing.
Container
An empty <div id="finance-chart" class="finance-chart"> directly above the table it is drawn from — 100% wide, 240px tall (220px ≤500px). It is rendered only when there is enough data to be worth a picture: openproperties.uk needs two sales before it prints the container at all.
Reading the table
Rows from tbody tr, the period from data-period-end on the row, values from td[data-value]. An empty data-value becomes null, never 0 — a year with no filing is a gap in the line, not a plunge to the axis. Rows are reversed on the way in: tables render newest-first, charts read oldest-to-newest.
Money
Axis labels abbreviate to one decimal place with a trailing .0 dropped — £820k, £1.2m, £6.1m, £2.4bn. Tooltips give the full grouped figure via toLocaleString('en-GB'). Missing values print an en dash, not a zero.
Axes
Anchor value axes at zero — a tight auto-range exaggerates every rise, and these charts are read against each other across a site. Use a time axis wherever the intervals are irregular (sales twenty years then three months apart), pinned to a fixed window shared by every chart on the site, so two records are comparable at a glance instead of each one filling the width.
Marks
Lines 2px with circle symbols; a 2px surface-coloured ring on the symbol keeps overlapping series legible. Smooth the line only when the points are evenly spaced — a spline through irregular points overshoots and draws figures that were never filed. Area fills sit at 0.12–0.25 alpha. Bars are context behind the lines: 0.55 opacity, 4px top radius, 28px maximum width, on their own right-hand axis.
Chrome
Gridlines #e8e8e8, every axis and legend label --color-muted (#666) at 12px, legend along the bottom — dropped entirely for a single series, which the heading above has already named. Tooltips are trigger: 'axis'.
Motion
Animation is cut to 300ms cubicOut and switched off under prefers-reduced-motion. The chart sits above the numbers it repeats, so a long draw-in reads as a page still settling after you have started reading.
Resize
new ResizeObserver(function () { chart.resize(); }).observe(el) — the container is fluid, so the chart follows it rather than waiting on a window event.
Accessibility
The chart repeats the table, so it should be aria-hidden: a screen reader reads the figures once, in the table, rather than a wall of unlabelled shapes. The demo above does this; the live containers don’t carry the attribute yet.

Series colours come from a small categorical set, assigned in fixed order per field so a series keeps its colour whether or not the others have data, and checked for colour-vision separation against white. opencompanies.uk’s accounts chart is the fullest: turnover #2a78d6, net assets #eb6834, cash #1baf7a, employees #eda100 as bars on a second axis. opencharities.uk plots income #1a7f37, expenditure #c93030 (drawn negative, below the axis) and net #6b7280. openproperties.uk draws one line in the brand blue, read from --color-link rather than hardcoded.

Sizing drift: opencharities.uk and opencompanies.uk set the container height in CSS; openproperties.uk sets it from JavaScript instead, deliberately — the element is useless without JS, so its natural zero height is the right no-JS result, and a reader holding a stale cached stylesheet still gets a correctly sized chart. Chrome is only fully specified on opencompanies.uk; the other two still take ECharts’ defaults for gridlines and label colour.

Maps

Maps follow the same rule from the other direction: the address, postcode or coordinate is already printed on the page in words, and the map is the optional picture of it. Every one is a [data-oc-map] element carrying its position in data-lat, data-lng and data-zoom — the same three attributes on every site, so one small glue script serves them all.

Live example — single point

<div data-oc-map
     data-lat="51.50354" data-lng="-0.12768" data-zoom="14"
     role="region" aria-label="Map of the area around SW1A 2AA"></div>

Three attributes are the whole contract. The glue finds every [data-oc-map] on the page, skips any whose numbers don’t parse, and initialises MapLibre into it: the family tile style, a NavigationControl top-right, a non-compact attribution control, a brand-blue marker and a ResizeObserver.

A real map, not a picture of one: the markup above is what is on this page, drawn by the same glue script and the same tile proxy the sites use, at the shipped size — 280×240, 4px radius, 1px --color-border. Pan it, zoom it, or read the attribution it is obliged to show.
Library
MapLibre GL, loaded from the hub as //opencommons.uk/shared/maplibre-gl.js with maplibre-gl.css beside it. Glue opens with if (typeof maplibregl === 'undefined') return;. Both are printed only on pages that actually have a coordinate.
Tiles
https://maptiles.opencommons.uk/styles/bright — a Cloudflare Worker caching proxy in front of OpenFreeMap that rewrites every style, TileJSON, sprite and glyph URL back through the family’s own domain, so no page load leaks to a third party. Pair it with <link rel="preconnect" href="https://maptiles.opencommons.uk" crossorigin>. Attribution rides in the style JSON and must stay visible — hence attributionControl: { compact: false }.
Marker
new maplibregl.Marker({ color: '#1a5fb4' }) — the brand blue, and the only place the map uses colour. Drop the marker where the coordinate is a centroid rather than an address: openproperties.uk centres without a pin because a postcode centroid covers a dozen buildings and a pin would claim a precision it hasn’t got.
Zoom
14 for a registered address (opencharities.uk, opencompanies.uk), 15 where the surrounding streets are the point (openproperties.uk, openpostcodes.uk), 5.5 centred on 54.0, -2.5 for a whole-UK view.
Sizing
280×240 beside a facts list, dropping to full width below 640px; 100%×320px (220px on mobile) when the map is the section rather than an aside. Always border-radius: 4px — 6px where it spans the column — a 1px --color-border, and overflow: hidden. Attribution text is knocked down to 10px inside the card.
Resize
new ResizeObserver(function () { map.resize(); }).observe(el). MapLibre needs a measurable container to initialise into, so a map inside anything that starts collapsed must be sized before new maplibregl.Map() runs.
Overlays
Geometry is drawn in the brand blue at two strengths: fill-opacity: 0.15 and a 2px line. openpostcodes.uk fetches its boundary and nearby points as one GeoJSON request after load — never inlined into the page — then fitBoundses to the boundary alone with 32px padding, since a nearby airport miles away would otherwise shrink the postcode to a speck.
Full-bleed pages
A whole-register map is the page: body:has(#map) becomes a 100dvh flex column and main drops its max-width and padding. The container takes role="application" with an aria-label, and a role="status" overlay says “Loading charities…” until the data lands, then removes itself.
Accessibility
An inline map is decoration over an address that is already written out, so it takes an aria-label naming the place — “Map of the area around postcode EX1 1AA” — and nothing that traps a keyboard. A full-page map has no server-rendered equivalent and is honestly JavaScript-only; the same data is always reachable as a list or a bulk download.
No JavaScript
The container collapses to zero height and the page reads as though the map were never specified — the address text simply takes the full width. Nothing is hidden behind the map.

Points at register scale cluster rather than pile up. The scale is one blue getting darker as the count rises, sized to match, always ringed in white so clusters stay separable against the tiles:

Live example — cluster scale

A step expression on point_count: #5ba3e8 r16 below 100, #1a5fb4 r24 below 1,000, #0d3d6b r34 above. Counts are point_count_abbreviated in white 12px bold; a single record is a 5px brand-blue dot.

The source is a GeoJSON layer with cluster: true, clusterMaxZoom: 13, clusterRadius: 40, built client-side from a compact JSON array of positional rows — [lat, lng, name, country, number], not objects, because at register scale the key names are most of the payload. Clicking a cluster eases to its getClusterExpansionZoom; clicking a point opens a popup holding one underlined link to the record, built with setDOMContent rather than an HTML string. The cursor turns to a pointer on both. Only opencharities.uk ships a clustered map today.

Grey #f5f5f5 band of 13px muted text. The full pattern for a new site: a column of site links, licence attribution lines where register data is shown, the network credit “👋 Jason Cartwright”, and the analytics credit “Cookieless analytics by fivebar”, which every site carries. Today the sites carry different subsets — the full pattern on openinterests.uk and openlegislation.uk, links and the credit on the hub and opencharities.uk, licence lines on opencompanies.uk, plain nav links on openpostcodes.uk, links and a licence line but no credit on openproperties.uk.

Accessibility

The base every property ships:

  • Skip link as the first element in <body>, off-screen at top: -4rem until focused, targeting <main id="main-content" tabindex="-1">. (Try pressing Tab on this page.)
  • Focus ring: :focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px } on links, buttons, inputs, summaries and tabindexed elements — switched to white inside the blue header. Keyboard-only; mouse clicks don’t flash rings.
  • Reduced motion: @media (prefers-reduced-motion: reduce) zeroes all transition and animation durations and scroll behaviour.
  • Semantic landmarks: one h1 per page, header/main/footer/nav/aside/address, nav elements carry aria-labels (“Breadcrumb”, “Pagination”, “Search type”, “Page sections”), search forms use role="search" with labelled inputs, tables use scope="col", active tabs use aria-current="page", sorted columns use aria-sort.
  • .visually-hidden utility for screen-reader-only text.
  • No-JS parity: filtering, sorting, pagination and search are plain GET forms and links; anything scripted has a server-rendered fallback. One known gap: openpostcodes.uk’s code-sample tabs are unreachable without JavaScript.
  • Language: lang="en" or lang="en-gb" on <html>; en-GB spelling in copy.

Adoption is uneven: opencharities.uk, openinterests.uk and openproperties.uk ship the full base — skip link, focus ring, reduced-motion guard, tabindex="-1" on main, .visually-hidden and scope="col"; opencompanies.uk is missing only tabindex="-1" on main and scope="col"; openpostcodes.uk has the focus ring and fully ARIA’d tab widget but no skip link or reduced-motion guard.

Shared assets

The hub, opencommons.uk, hosts everything shared at /shared/, and is “the single source of truth for the sister-site links + styling”.

The shared stylesheet

/shared/opencommons.css is the one place the family's colour tokens, type scale and font live. Every site loads it before its own stylesheet, so local rules still win:

<link rel="preload" href="https://opencommons.uk/shared/fonts/InterVariable.woff2?v=2"
      as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="//opencommons.uk/shared/opencommons.css">
<link rel="stylesheet" href="/static/css/<site>.css">

There is no rel="preconnect" to the hub in the contract: the font preload is discovered in the same head parse and opens that connection itself, so a preconnect beside it has nothing to get ahead of. If the preload is ever dropped, the preconnect earns its place again — they go together.

It carries the @font-face rules for Inter Variable (roman and italic, woff2, font-display: swap), the --color-* tokens, the --text-* scale and the base html/body type. It also owns the page gutter, --spacing, with its mobile value, and the page width, --max-width. Sites define only what is genuinely theirs, such as site-specific semantic colours.

The font URLs appear only inside @font-face, written relative to the stylesheet (url("fonts/InterVariable.woff2?v=2")), so they resolve against opencommons.uk whichever site loads them. Every page also carries a matching rel="preload" for the roman face, so the font is fetched in parallel with the stylesheet instead of waiting on it — this is the one place the font path is duplicated, and the preload href must match the @font-face URL exactly, version query included, or the browser fetches the font twice. The ?v=2 is what makes an immutable asset correctable: without it a bad response (as happened once with a malformed CORS header) stays pinned in clients for a year. Only the roman face is preloaded; italic is rare enough that preloading its 388KB on every page would cost more than it saves. /shared/fonts/* is served with Access-Control-Allow-Origin: * (mandatory: fonts are always fetched in CORS mode) and a one-year immutable cache; the stylesheet itself caches for an hour.

Deployment order matters: the hub must ship this file before the sister sites start asking for it, because they no longer define the colour tokens locally.

The network bar

Markup lives at https://opencommons.uk/shared/bar (served extensionless as text/html via a _headers rule); its styles are part of /shared/opencommons.css, which every site already loads, so the markup carries no stylesheet link of its own. Sites include it server-side — never as a client-side embed:

# The include contract (Django context processor or Worker equivalent)
GET https://opencommons.uk/shared/bar    # 3-second timeout
cache the HTML for 3600s                 # one hour
on failure: cache "" for only 60s        # bar reappears quickly after an outage
inject at the top of <body> — after the skip link, above the site header

The bar’s rules read var(--max-width) and var(--spacing), both from this same stylesheet, so the bar lines up with every site’s header at every width.

Shared libraries

Heavy libraries are hosted once at the hub and loaded protocol-relative, deferred, paired with a <link rel="preconnect">: //opencommons.uk/shared/echarts.js, //opencommons.uk/shared/maplibre-gl.js and maplibre-gl.css. Link them with the library’s version as a query string — echarts.js?v=5.6.0, maplibre-gl.js?v=4.7.1, maplibre-gl.css?v=4.7.1 — because the hub’s _headers lets browsers keep them for a year (immutable). Replacing one of these files means bumping its ?v= on every site that links it. Each site’s small glue script no-ops if the shared library failed to load. Tiny libraries are vendored locally instead — the rule of thumb: share the megabytes, vendor the kilobytes. The family’s own components are the exception: /shared/preview.js, the entity preview, is a few kilobytes but lives at the hub so every site’s card behaves the same, and it caches for an hour like the stylesheet, so a fix reaches every site without a release.

Page loads

Every site ships the same three progressive enhancements. Browsers that don’t know them ignore them.

  • Speculation rules. A <script type="speculationrules"> block prefetches a same-site link when the pointer rests on it ("eagerness": "moderate") and prerenders it when the click starts ("conservative"), so the next page is usually ready before it is asked for. It skips data formats (.json, .md, .csv …) and links marked download, target="_blank", rel="nofollow" or data-no-prefetch. Sites with a hand-written hover-prefetch script keep it only for browsers without speculation rules (HTMLScriptElement.supports('speculationrules')). fivebar already waits for a prerendered page to be shown before counting it. The hub, whose pages are static files plus one Worker, keeps the same rules in /speculationrules.json and sends them with every page as a Speculation-Rules: "/speculationrules.json" header, with its CSS in /hub.css and scripts in their own files.
  • Page transitions. @view-transition { navigation: auto; } in the shared stylesheet cross-fades between pages of the same site. It sits inside prefers-reduced-motion: no-preference.
  • Text scale. <meta name="text-scale" content="scale"> lets the phone’s own text-size setting scale 1rem. It only works because every size is in rem/em and nothing sets a font size on html or :root; keep it that way.

Subdomains for bulk and media

Large or generated files live on Cloudflare R2 behind purpose-named subdomains, keeping the apex fast: files.opencharities.uk, files.opencompanies.uk (bulk exports), screenshots.opencharities.uk, membersphotos.openinterests.uk.

Cross-site integration

  • APIs cite sister sites’ canonical URLs: a charity’s JSON includes company_number_url pointing at opencompanies.uk/company/{n}.
  • UIs consume sister APIs directly: a link to another site’s record can carry an entity preview, a hover card filled from that record’s .json by /shared/preview.js. Hovering a company number on opencharities.uk shows the company from opencompanies.uk/company/{n}.json; opencompanies.uk does the same for the charities and donors it links to, openinterests.uk for companies and postcodes, openproperties.uk for postcodes and opencontracts.uk for companies and charities.
  • Outbound links to charity websites append ?ref=opencharities.uk.

Analytics

fivebar is the only third-party script anywhere in the network — privacy-friendly, no cookies.

URL design

Rules

  1. One canonical URL per resource. The HTML page for people and the API for machines are the same path. No /api tree, no /v1. Once published, routes are a stable contract.
  2. Official identifiers first. Where the upstream register issues a public ID, that is the URL key: charity numbers under a country prefix (/ew/1188192, /sc/SC000001, /ni/…), Companies House numbers (/company/00445790), MNIS parliamentary IDs (/member/4462), the postcode itself (/EX11%201RE). Internal integer PKs are used only where no public key exists (/person/123, /address/456, /donor/391, /group/789).
  3. Singular for entities, plural for listings. /company/…, /member/…, /donor/… vs /companies, /members, /donations, /interests.
  4. Lowercase paths, hyphenated slugs, no trailing slashes. Routes are defined without trailing slashes (opencharities.uk pins APPEND_SLASH = False; the Django admins are the exception, and openinterests.uk’s old /search/ now redirects to /search). Name-based slugs are lowercase-hyphenated (/t/john-smith).
  5. Forgiving in, canonical out. IDs are accepted case-insensitively and in any common spelling (postcodes with or without spaces, hyphens, any case; /sc/000001), then normalised — opencharities.uk 302-redirects to the canonical form (/sc/000001 → /sc/SC000001); opencompanies.uk and openpostcodes.uk serve the normalised record in place, echoing the canonical form in the payload. Resolved duplicate entities 302 to their canonical page (openinterests.uk recipients). On opencompanies.uk, a search query that is a company number redirects straight to the entity.
  6. Formats by extension on the canonical path. .json for any entity; .md for an LLM-friendly Markdown rendition; .csv, .pdf, .zip where a tabular or document form makes sense. Never by Accept header. HTML pages advertise their formats with <link rel="alternate"> tags and visible “Data” pills (see Components for current coverage).
  7. Every level of a path is a page. Where a URL has a hierarchy, each prefix of it resolves: trimming the last segment lands the reader somewhere useful rather than on a 404. openproperties.uk is built on this — outcode, street, property, unit and sale are five real pages on one path — and opencharities.uk’s document URLs do the same.
  8. All view state in the query string. Shared vocabulary: q (query), page (pagination), sort or ordering (whitelisted values; ordering takes a - prefix for descending), plus named filters (status, country, house, sic, income_min…). Invalid enum values are silently dropped, not errored.
  9. Crawlable by design. Hand-rolled or framework sitemaps paginated at 50,000 URLs per file, day-cached at register scale (opencompanies.uk keyset-paginates its 5.9M-row set); robots.txt names the sitemap and disallows unbounded surfaces such as /search (opencompanies.uk does; opencharities.uk and openproperties.uk currently allow everything). openproperties.uk splits its sitemap by postcode district — one file per outcode behind a custom index — so a district can be regenerated without rewriting the set; schema.org JSON-LD where a matching type exists (charity and company pages; openinterests.uk’s member, donor and recipient pages, but not private individuals who appear only as donors). openpostcodes.uk — a point-lookup API — ships neither sitemap nor robots.txt.

Canonical URL patterns by site

SiteEntity URLsListing / searchFormats
opencharities.uk /ew/1188192 · /sc/SC044246 · /ni/100012
/t/john-smith (trustee)
/ew/1188192/files/2024-03-31-accounts.html
/search?q=…&country=EW&status=active&sort=income_desc&page=2
/search/trustees · /search/documents · /search/websites
.json .md .csv .pdf .zip
/data/charities.csv · /map/data.json
openinterests.uk /member/4462 (MNIS ID; /mp/4462 legacy alias)
/person/123 · /donor/391 · /recipient/45
/members?house=lords&ordering=-total_interest_value
/donors · /donations · /interests · /search?q=…&type=people
.json .md on entity URLs; /search.json and /members.json (the other listings are HTML-only)
opencompanies.uk /company/00445790 (+ /officers, /psc, /accounts/2024-03-31)
/person/123 · /address/456 · /sic/62020 · /group/789
/search?q=…&status=active&sic=62020&district=EC1V
/search/officers · /search/addresses · /companies
.json on entity URLs (listings HTML-only), .md on companies
/company/{n}/network.json?depth=2&limit=250
openpostcodes.uk /EX11%201RE — the postcode at the root, any case or spacing (/ex111re, /EC1A-1BB) /?q=EX11+1RE (no-JS form → 302) JSON only — the entity URL is the API; docs at /, attribution at /sources
openproperties.uk An address hierarchy, every level a real page: /dh6 → /dh6/north-street → /dh6/north-street/4 (→ /…/4/flat-2 for a unit)
/dh6/north-street/4/{guid} — one sale, nested under its property
/postcode/{token} is a retired shape kept as a permanent redirect
/search?q=…&sort=-date&page=2 (address, postcode, sales, date, price) .json at every level of the hierarchy, sales included
opencontracts.uk /contract/{slug} — one procurement: its title, slugged, ending with the tail of its OCDS id
/buyer/{slug} · /supplier/{slug} — one organisation, by the role it plays
/notice/{notice id} — a Find a Tender notice number, a permanent redirect to its procurement (/notices/{notice id} legacy alias)
/contracts · /buyers · /suppliers · /open (tenders open for bids)
/search?q=…&page=2
.json .md on entity URLs; listings are HTML-only, apart from /search.json

API design

Access

No keys, no registration, no rate limits. Every endpoint is a plain HTTP GET on a canonical URL. Load is managed with guard rails, not gates:

  • Embedded lists are capped, not paginated: ~500 rows on detail payloads, up to 5,000 on dedicated sub-resources (/officers.json), 1,000 group members, 200 companies per address. (One known gap: openinterests.uk’s embedded interests list is currently uncapped.)
  • A 15-second PostgreSQL statement timeout per request, surfaced as a friendly “too broad” message (opencharities.uk, opencompanies.uk).
  • Result counting capped at 1,000 (“1,000+ results”) on the two register-scale sites.
  • Layered caching — up to three layers on openpostcodes.uk (edge cache, per-colo cache, D1 read replicas) with tag-based purge.

Response shape

GET https://opencompanies.uk/company/00445790.json

{
  "company_number": "00445790",
  "name": "EXAMPLE HOLDINGS LIMITED",
  "url": "https://opencompanies.uk/company/00445790",
  "status": "active",
  "incorporated_on": "1948-08-25",
  "registered_address": { "id": 456, "url": "…/address/456", "line1": "…", "postcode": "…" },
  "officers": [ { "name": "…", "person_url": "…/person/123", "role": "director",
                  "appointed_on": "2019-03-14", "source": "companies_house",
                  "retrieved_at": "2026-07-01T04:12:00Z" } ],
  "provenance": { "source": "companies_house", "retrieved_at": "…" },
  "licence": "Open Government Licence v3.0",
  "licence_url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
  "attribution": "Contains public sector information licensed under the
                  Open Government Licence v3.0. Source: Companies House."
}

Field values above are illustrative; the shape and conventions are the spec.

Envelope
None. A bare JSON object (or array where the resource is a list) — no data/meta wrapper.
Naming
snake_case keys throughout.
Formatting
Pretty-printed with indent=2 — “readability over a few bytes” (openinterests.uk, opencompanies.uk and openproperties.uk today; compact elsewhere).
Dates
ISO 8601 strings ("2024-03-31", "…T04:12:00Z").
Money
Never floats. Decimal amounts as strings ("1000.00"); registers that only record whole pounds serialise integers (opencharities.uk; openproperties.uk, since Price Paid Data records no pence).
Nulls
Explicit null, present in the payload; empty strings normalised to null (opencompanies.uk currently passes some empty strings through).
Self-links
url self-links on entities — absolute with a json_url twin on openinterests.uk, absolute on openproperties.uk, root-relative on opencompanies.uk today; openpostcodes.uk carries none (the request URL is the identity). Prefer absolute url + json_url on new surfaces. Nested references are small objects with name plus an id and/or url.
Provenance
The target: rows carry source, source_url and retrieved_at, and detail payloads carry the licence/licence_url/attribution keys. openproperties.uk is the closest to the target, putting licence, licence_url, attribution and a nested provenance object on every detail payload from one shared builder; openinterests.uk ships full row provenance; opencompanies.uk ships the attribution keys (rows carry source, some retrieved_at); opencharities.uk carries register_url only; openpostcodes.uk attributes out-of-band at /sources.

Errors

The convention: JSON URLs return JSON errors with useful context and the right status code —

404  { "error": "Postcode not found", "postcode": "EX1 1AA" }
404  { "error": "Not found" }
400  { "error": "Invalid postcode format", "input": "…" }
400  { "error": "invalid parameters" }

openpostcodes.uk, openinterests.uk and openproperties.uk do this today, as do opencompanies.uk’s network endpoints; the remaining Django sites still serve HTML 404s on some .json URLs — a known gap for new surfaces to avoid. Invalid enum parameters on HTML pages are silently dropped; timeouts degrade to in-page messages. Nothing user-triggerable should return a raw 500.

Headers

CORS
Access-Control-Allow-Origin: * on JSON responses — open data, no cookies, no auth. Sent by opencompanies.uk, openinterests.uk, openpostcodes.uk and openproperties.uk today; required on new surfaces, pending on opencharities.uk.
Content types
application/json; charset=utf-8; text/markdown; charset=utf-8 for .md; text/csv (streamed for bulk); application/xml for sitemaps.
Caching
Cache-Control: public with max-age matched to volatility. openproperties.uk: a flat 1h on every 200 JSON response, set in one place beside the serializer. opencharities.uk: 2h on entity pages and JSON, 24h on bulk CSV and sitemaps, mtime-based ?v= cache-busting. openpostcodes.uk: 1h + stale-while-revalidate=86400 + stale-if-error=86400 on lookups, 10 min on errors, year-long immutable ?v=-versioned statics. opencompanies.uk currently caches only its sitemaps (24h); openinterests.uk: 4h in the browser and 1h at the edge on pages and JSON.
Diagnostics
openpostcodes.uk exposes x-cache: HIT|MISS and the serving D1 replica region on lookups.

Versioning

There is none, deliberately. URLs and field names are the stable contract; evolution is additive (new fields, new endpoints). Internal cache versions (e.g. a CACHE_VERSION constant bumped on quarterly data reimports) invalidate caches without touching API URLs — the same constant doubles as the ?v= cache-buster on static assets.

Bulk data

Anything bigger than a record ships as files, not paginated API crawls: a streamed /data/charities.csv (~190k rows), and weekly gzipped exports on files.opencompanies.uk (companies.csv.gz, ownership-edges.csv.gz, psc.jsonl.gz, officers.jsonl.gz).

Documentation

Docs live where people already are: opencharities.uk documents its formats at /data; openinterests.uk explains “Using the JSON” at /about; openpostcodes.uk’s homepage is the API docs, with request samples in nine languages and a full field-reference table generated from a FIELDS constant maintained alongside the response code. openproperties.uk has no docs page: it carries a <link rel="alternate"> on all four levels of its hierarchy but no visible “Data” pills, so a reader has to view source to find the JSON. That is the gap to close there. Every entity page otherwise self-documents through its “Data” pills and <link rel="alternate"> tags. The Markdown renditions exist explicitly because they are “handy for feeding to an LLM”.

Data & writing

  • Sentence case for headings, buttons and labels. Plain English, en-GB spelling. Verb-led taglines.
  • Register names arrive in ALL CAPS and are title-cased for display only, using a curated acronym list (NHS, PLC, RNLI, YMCA…). Stored and API values stay exactly as filed.
  • Money: pound sign with thousands commas (£184,873); whole pounds by default (openinterests.uk shows pence when non-integral); a plain hyphen for unknown values, never “£0” for unknown (a genuinely filed zero may render £0); headline totals humanised where precision would be noise (openinterests.uk: “£53.21 billion”). Always .num right-aligned tabular-nums in tables.
  • Dates: ISO 8601 in data and URLs; human-readable in prose.
  • Honesty about limits: capped counts (“1,000+ results”), caveat tooltips on unreliable stats, amber OCR disclaimers, hub addresses summarised as “N companies registered at this address — likely a registration agent” rather than listed.
  • Attribution: per-row “↗” source links; source notes under section headings; licence lines in footers, on the pattern “Contains public sector information [from the Electoral Commission] licensed under the Open Government Licence v3.0.” and “Contains Parliamentary information licensed under the Open Parliament Licence v3.0.”
  • Empty states: a muted in-context sentence (“No members match.”), never a blank space.

New properties

A checklist for launching a new OpenCommons site — or an app that joins the family:

  1. Name it Open + PluralThing at open{thing}.uk; write a verb-led one-line tagline.
  2. Wordmark: Open<span>Thing</span> on the #1a5fb4 band; suffix span at opacity 0.7, weight 600.
  3. Favicon: 32×32 rounded square (rx="6") in #1a5fb4 with one white glyph.
  4. Copy the core token block verbatim into :root. Light theme, system fonts, underlined links.
  5. Include the network bar server-side (3s timeout, 1h cache, 60s negative cache, top of <body> after the skip link), and let it read --max-width and the shared --spacing.
  6. Put entities at canonical URLs keyed by official identifiers; add .json from day one; follow the response-shape rules (snake_case, no envelope, money as strings, provenance and attribution in-band).
  7. No keys, no rate limits — use caps, statement timeouts and caching instead. Send Access-Control-Allow-Origin: * on JSON.
  8. Server-render everything; add JS only as enhancement, deferred and dependency-free; share the megabytes from /shared/, vendor the kilobytes.
  9. Add the page-load lines to the <head>: speculation rules and the text-scale meta.
  10. Ship the accessibility base: skip link, focus-visible ring, reduced-motion guard, landmarks and ARIA labelling, no-JS parity.
  11. Sitemaps (50k URLs per file), robots.txt, JSON-LD where schema.org has a matching type.
  12. fivebar for analytics — and nothing else third-party.
  13. Register the site: add it to the hub landing page, the network bar, and cross-link it from sister sites’ data where the registers connect. Give its search a search.json and add it to the hub search’s config.
  14. Native apps: consume the .json surface, reuse the token palette and typography scale, and carry the attribution lines wherever register data is shown.