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.
- 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/apinamespace, no version prefix and no API keys — a plain HTTP GET is the whole contract. - 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.
- 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. - 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.
- Provenance is part of the product. Every record links back to its source register; the goal is provenance in-band —
source_urlandretrieved_aton 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. - 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.
- 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.
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-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
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:
| Use | Spec |
|---|---|
| Body | var(--font-sans) — "Inter Variable", ui-sans-serif, system-ui, sans-serif; base 15px; line-height: 1.5; letter-spacing: -0.01em; colour #313131 |
| Font rendering | font-feature-settings: "cv02", "cv03", "cv04", "calt" (Inter's disambiguated 4/6/9), font-optical-sizing: auto, greyscale antialiasing |
| Root size | html 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 h1 | 1.75rem, one per page |
Section heading h2 | 1.25rem with a 1px --color-border bottom rule and 0.25rem padding |
Wordmark .site-title | 1.25rem weight 700 (1.1rem ≤640px); suffix span opacity 0.7, weight 600 |
| Small text | var(--text-sm) — 13px. One step below body, used for labels, footers, dt, th, table bodies, pagination, breadcrumbs and code panels |
| Extra small | var(--text-xs) — 12px, for badges, demo labels and popup chrome. Tag pills remain at 0.78rem |
| Code | var(--font-mono) at 0.9em on a #f5f7fa chip; Inter's feature settings and tracking are reset to normal |
| Numbers | font-variant-numeric: tabular-nums, right-aligned in tables via a .num class |
| Links | Always 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 withmargin: 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 about72ch).- Gutter unit
--spacing: 1.5remused for page padding; multiples viacalc()for footers and bottoms. It is set once, in/shared/opencommons.css, and no site defines it.- Mobile rule
- At
max-width: 640pxthe 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 withvar(--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 areposition: sticky; top: 1.5rem. - Header band
- Solid
#1a5fb4,min-height: 4rem, wordmark left, optional compact search right. - Radii
6pxfor panels and cards;4–6pxon 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);999pxfor pills and badges;2pxon 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.
Header
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
| Company | Status | Incorporated | Net assets |
|---|---|---|---|
| Example Holdings Ltd | Active | 2019-03-14 | £184,873 |
| Sample Trading Ltd | Dissolved | 2004-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
| Item | 28 Feb 2026 | 28 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 are9remon desktop and size to their content on phones. - Amounts
.numon 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 ath 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 indented1remand 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-previewto the link and load/shared/preview.json 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 makesAccess-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 withOpenCommonsPreview.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.
280pxwide,6pxradius,--color-borderedge, a soft0 4px 16px rgba(0,0,0,.15)shadow, text at--text-sm. Names come as the register’s own JSON gives them, or itsdisplay_namewhere 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
150msafter the pointer rests on the link, so passing over it does nothing, and closes100msafter the pointer leaves. It opens on keyboard focus too (:focus-visible), is linked to the link witharia-describedbywhile 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
Live example
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).
Format pills (“Data” links)
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.75rempadding,999pxradius,1px --color-border,--color-linktext at--text-sm, undecorated.0.5remgap between pills; the list wraps. Hover fills--color-accent-bgand pulls the border to--color-linkover0.15s.- Icon
- An
::beforebox,16pxsquare with a-0.2remleft margin, paintedbackground-color: currentColorand clipped bymask: no-repeat center / contain. The glyph is a stroke-only24×24feather-style outline atstroke-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/*.svgand reference them by URL; openpostcodes.uk, having no static directory, wraps the same path data intodata:image/svg+xmlmask 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
boundaryfield 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.
Breadcrumb
Live example
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
BreadcrumbListitem 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
| Year | Turnover | Net assets |
|---|---|---|
| 2024 | £7.4m | £3.0m |
| 2023 | £6.1m | £2.3m |
| 2022 | £5.6m | — |
| 2021 | £4.2m | £1.1m |
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 withif (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,240pxtall (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 fromdata-period-endon the row, values fromtd[data-value]. An emptydata-valuebecomesnull, never0— 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
.0dropped —£820k,£1.2m,£6.1m,£2.4bn. Tooltips give the full grouped figure viatoLocaleString('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
2pxwith circle symbols; a2pxsurface-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 at0.12–0.25alpha. Bars are context behind the lines:0.55opacity,4pxtop radius,28pxmaximum width, on their own right-hand axis. - Chrome
- Gridlines
#e8e8e8, every axis and legend label--color-muted(#666) at12px, legend along the bottom — dropped entirely for a single series, which the heading above has already named. Tooltips aretrigger: 'axis'. - Motion
- Animation is cut to
300mscubicOutand switched off underprefers-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.
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.jswithmaplibre-gl.cssbeside it. Glue opens withif (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 — henceattributionControl: { 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
14for a registered address (opencharities.uk, opencompanies.uk),15where the surrounding streets are the point (openproperties.uk, openpostcodes.uk),5.5centred on54.0, -2.5for a whole-UK view.- Sizing
280×240beside a facts list, dropping to full width below640px;100%×320px(220pxon mobile) when the map is the section rather than an aside. Alwaysborder-radius: 4px—6pxwhere it spans the column — a1px --color-border, andoverflow: hidden. Attribution text is knocked down to10pxinside 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 beforenew maplibregl.Map()runs.- Overlays
- Geometry is drawn in the brand blue at two strengths:
fill-opacity: 0.15and a2pxline. openpostcodes.uk fetches its boundary and nearby points as one GeoJSON request after load — never inlined into the page — thenfitBoundses to the boundary alone with32pxpadding, 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 a100dvhflex column andmaindrops its max-width and padding. The container takesrole="application"with anaria-label, and arole="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-labelnaming 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
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.
Footer
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 attop: -4remuntil 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
h1per page,header/main/footer/nav/aside/address,navelements carryaria-labels (“Breadcrumb”, “Pagination”, “Search type”, “Page sections”), search forms userole="search"with labelled inputs, tables usescope="col", active tabs usearia-current="page", sorted columns usearia-sort. .visually-hiddenutility 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"orlang="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.
URL design
Rules
- One canonical URL per resource. The HTML page for people and the API for machines are the same path. No
/apitree, no/v1. Once published, routes are a stable contract. - 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). - Singular for entities, plural for listings.
/company/…,/member/…,/donor/…vs/companies,/members,/donations,/interests. - 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). - 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. - Formats by extension on the canonical path.
.jsonfor any entity;.mdfor an LLM-friendly Markdown rendition;.csv,.pdf,.zipwhere a tabular or document form makes sense. Never byAcceptheader. HTML pages advertise their formats with<link rel="alternate">tags and visible “Data” pills (see Components for current coverage). - 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.
- All view state in the query string. Shared vocabulary:
q(query),page(pagination),sortorordering(whitelisted values;orderingtakes a-prefix for descending), plus named filters (status,country,house,sic,income_min…). Invalid enum values are silently dropped, not errored. - 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.txtnames 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
| Site | Entity URLs | Listing / search | Formats |
|---|---|---|---|
| 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/metawrapper. - Naming
snake_casekeys 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
urlself-links on entities — absolute with ajson_urltwin on openinterests.uk, absolute on openproperties.uk, root-relative on opencompanies.uk today; openpostcodes.uk carries none (the request URL is the identity). Prefer absoluteurl+json_urlon new surfaces. Nested references are small objects withnameplus an id and/orurl.- Provenance
- The target: rows carry
source,source_urlandretrieved_at, and detail payloads carry thelicence/licence_url/attributionkeys. openproperties.uk is the closest to the target, puttinglicence,licence_url,attributionand a nestedprovenanceobject on every detail payload from one shared builder; openinterests.uk ships full row provenance; opencompanies.uk ships the attribution keys (rows carrysource, someretrieved_at); opencharities.uk carriesregister_urlonly; 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-8for.md;text/csv(streamed for bulk);application/xmlfor sitemaps.- Caching
Cache-Control: publicwithmax-agematched 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=86400on 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|MISSand 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”.
Hub search
opencommons.uk/search?q=… searches every register at once. It is a small Cloudflare Worker in front of the hub’s static files (it runs first only for /search; a path that matches no file also reaches it, and it hands that straight back to the static files for their 404), and it does no searching of its own: it asks each site’s own search, in parallel, and lays the answers out together. So each site needs one thing from this page — a search.json.
The search.json contract
GET /search.json?q=… plus whatever parameters the site’s HTML /search takes. It is the same view and the same query function as the HTML page, rendered as JSON, so the two can never disagree, and it inherits the page’s statement timeout, count cap, paging and caching. openlegislation.uk ships it today; the other register sites have it built, each adding the keys its HTML row shows (the hub’s README lists what it reads from each).
{
"query": "plymouth",
"filters": { … }, // optional: the filters as applied
"count": 184, // the total as the HTML page counts it
"count_capped": false, // true when counting stopped at 1,000
"page": 1,
"next": "https://openlegislation.uk/search.json?q=plymouth&page=2",
"error": null, // or the page’s “too broad” message
"results": [
{ "url": "https://openlegislation.uk/plymouth-corporation-act-1971",
"title": "Plymouth Corporation Act 1971", "citation": "1971 c. 21", … }
],
"licence": "Open Government Licence v3.0",
"licence_url": "…",
"attribution": "…"
}
- Results
- What the HTML row shows, as plain data: an absolute
urlto the record’s page,nameortitle, then ids, status, ISO dates, money as integer pounds, postcode. - Empty query
200withcount: 0andresults: []— never a 500 or a redirect loop.- One record
- Where the HTML search jumps straight to a record (a citation on openlegislation.uk, a company number on opencompanies.uk), the JSON redirects to that record’s
.json. The hub follows it and shows the record first. - Discovery
- The HTML search page carries
<link rel="alternate" type="application/json">to the matchingsearch.json.
The fan-out
A name goes to the seven search.json endpoints together; openpostcodes.uk’s matches the councils, constituencies, counties, wards and neighbourhoods postcodes sit in, since a postcode has no town or village name of its own (a postcode area, district or sector asks for that page instead). The page shows the top three from each, grouped by register in a fixed order — Companies, Charities, Legislation, Interests, Properties, Contracts, Postcodes — except that a register whose top result is the name exactly moves to the front. Each group heads with the site’s count, written the family way (“1,000+” when capped), and an “All on site →” link to the full results there; a jump-to rail in the stats-panel style lists every register with its count, and turns into a row of pills on a phone. The registers with nothing share one muted line instead of empty groups; a register that couldn’t be reached gets a line of its own.
People have their own tab, /search/people?q=…: a plain link beside “Registers”, shown for any query with letters and no digits, so the people searches only run when someone opens it. It asks for company officers (opencompanies.uk/search/officers.json, every word of the name in any order), charity trustees (opencharities.uk/search/trustees.json, most charities first) and openinterests.uk’s MPs, peers and donors (type=people). Each register’s people are a group of their own, never merged, because a name alone can’t say two records are one person; each row shows what that register knows to tell people apart, such as a birth month and year. A trustee row is a spelling, not a person (the registers have no trustee ids), so it reads “2 charities list a trustee by this name”, never “Trustee of 2 charities”. Officers’ “SURNAME, Forenames” is shown as a person writes it. openinterests.uk ranks people by similarity, so the hub keeps only those whose name has every word of the query. On the Registers tab, a query shaped like a name (two to five words) gets a “Looking for a person?” pointer to the tab, and the registers with no match share one line: “No match in Legislation, Properties or Postcodes.”
Some queries are recognised first. A full postcode gets a page of its own — the postcode from openpostcodes.uk, then a card per register: sales at the postcode, the MP for its constituency, companies registered there, charities within ¼ mile, each linking to that list on the site. A company number or charity number fetches the record and shows it first, above the name results; SC0nnnnn is tried as both a Scottish charity and a Scottish company.
Every site gets 2 seconds and the whole search 4.5. A site that is slow, missing an endpoint, challenging bots or erroring gets “Couldn’t reach site just now — search on site →” and the page renders regardless. Upstream data is untrusted: every value is escaped, and only links on the seven family domains survive. Answers are cached at the edge for an hour, keyed on the query, so a repeated search costs the sites nothing; result pages are noindex. The footer of the results lists each source’s attribution for the results shown, taken from its JSON.
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.numright-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:
- Name it Open + PluralThing at
open{thing}.uk; write a verb-led one-line tagline. - Wordmark:
Open<span>Thing</span>on the#1a5fb4band; suffix span at opacity 0.7, weight 600. - Favicon: 32×32 rounded square (
rx="6") in#1a5fb4with one white glyph. - Copy the core token block verbatim into
:root. Light theme, system fonts, underlined links. - 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-widthand the shared--spacing. - Put entities at canonical URLs keyed by official identifiers; add
.jsonfrom day one; follow the response-shape rules (snake_case, no envelope, money as strings, provenance and attribution in-band). - No keys, no rate limits — use caps, statement timeouts and caching instead. Send
Access-Control-Allow-Origin: *on JSON. - Server-render everything; add JS only as enhancement,
deferred and dependency-free; share the megabytes from/shared/, vendor the kilobytes. - Add the page-load lines to the
<head>: speculation rules and the text-scale meta. - Ship the accessibility base: skip link, focus-visible ring, reduced-motion guard, landmarks and ARIA labelling, no-JS parity.
- Sitemaps (50k URLs per file),
robots.txt, JSON-LD where schema.org has a matching type. - fivebar for analytics — and nothing else third-party.
- 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.jsonand add it to the hub search’s config. - Native apps: consume the
.jsonsurface, reuse the token palette and typography scale, and carry the attribution lines wherever register data is shown.