UI Monorepo Strategy
One repository for many front ends, and the build graph that makes it viable.
4 to work through
-
intermediate Multiple choice
Ten applications consume one design system and upgrades keep stalling because each app schedules them separately. Which release and consumption model keeps the total upgrade cost bounded as applications are added?
2 min answer -
intermediate
Ten frontend teams share a design system. Monorepo or separate repositories?
1 min answer -
advanced
Eleven frontend repositories consume a design system published to a private registry. The median application is four minor versions behind and a token change takes seven weeks to reach every application. The team wants one monorepo. Give the sequence under live weekly releases, where state can diverge, the point of no return, and how long it really takes.
3 min answer -
advanced Multiple choice
Many frontend applications share components, tooling and types. Monorepo or separate repositories?
1 min answer
2 terms in this topic
Build Graph Scoping
Determining which packages a change actually affects, so a monorepo builds and tests a subset rather than everything on every commit.
practiceUI Monorepo Strategy
Whether frontend code lives in one repository or many — a trade between atomic change and independent release.
Neighbouring topics
Frontend & Experience Architecture
General material on architecting the surface the user actually touches.
Rendering Strategies
Client, server, static and incremental rendering, and what each costs on first paint.
Edge Rendering
Running the render close to the user, and the personalisation and cache trade it implies.
Hydration Cost
The gap between visible and interactive, and the JavaScript that closes it.
Micro-Frontends
Independent deployment of UI slices, and the shared runtime that undermines it.
Module Federation
Loading code from another build at runtime, with versioning and failure to think about.
Design Systems
Components as a versioned internal product, with adoption and deprecation like any API.
Component Contracts
Props, slots and events as an interface, and the breaking change hidden in a style.
Client State Architecture
Server state, UI state and derived state, and why conflating them causes most bugs.
Client Caching & Data Layer
Stale-while-revalidate, invalidation and optimistic updates on the client.
BFF for Experience
One backend per experience, shaped by the screen rather than by the domain.
API Shapes for UI
REST, GraphQL and RPC judged by over-fetching, round trips and client coupling.
Web Performance Budgets
A number a build can fail against, rather than a performance sprint once a year.
Core Web Vitals
LCP, INP and CLS — what they measure, and the architecture that moves them.
Accessibility Architecture
Semantics, focus management and announcements designed in rather than audited in.
Internationalisation
Locale, direction, pluralisation and dates as structural concerns, not string tables.
Client Feature Flags
Flag evaluation on a device you do not control, and the flicker and staleness it brings.
Real User Monitoring
Field data from real devices and networks, against the synthetic run that looked fine.
Frontend Security
CSP, XSS, CSRF, token storage, and the trust boundary that ends at the browser.