@radicaltools/mcp 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +41 -23
  2. package/dist/{chunk-OGN3UW2D.js → chunk-2SZDTOYJ.js} +727 -89
  3. package/dist/{elkLayout-S62RLGTO.js → elkLayout-VYJDCCIT.js} +1 -1
  4. package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
  5. package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
  6. package/dist/hub-catalogue/concern/concern-api-evolution.radical +1174 -0
  7. package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
  8. package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
  9. package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
  10. package/dist/hub-catalogue/concern/concern-architecture-style.radical +1268 -0
  11. package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
  12. package/dist/hub-catalogue/concern/concern-authentication.radical +895 -0
  13. package/dist/hub-catalogue/concern/concern-authorization.radical +1686 -0
  14. package/dist/hub-catalogue/concern/concern-availability.radical +1028 -0
  15. package/dist/hub-catalogue/concern/concern-backend-stack.radical +1037 -0
  16. package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1560 -0
  17. package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
  18. package/dist/hub-catalogue/concern/concern-capacity.radical +915 -0
  19. package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
  20. package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
  21. package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
  22. package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
  23. package/dist/hub-catalogue/concern/concern-communication-style.radical +1508 -0
  24. package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
  25. package/dist/hub-catalogue/concern/concern-data-consistency.radical +1112 -0
  26. package/dist/hub-catalogue/concern/concern-data-store.radical +1282 -0
  27. package/dist/hub-catalogue/concern/concern-decomposition.radical +1318 -0
  28. package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
  29. package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
  30. package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
  31. package/dist/hub-catalogue/concern/concern-deployment.radical +1203 -0
  32. package/dist/hub-catalogue/concern/concern-encryption.radical +1318 -0
  33. package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
  34. package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
  35. package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1647 -0
  36. package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
  37. package/dist/hub-catalogue/concern/concern-infrastructure.radical +2183 -0
  38. package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1116 -0
  39. package/dist/hub-catalogue/concern/concern-messaging.radical +973 -0
  40. package/dist/hub-catalogue/concern/concern-module-boundaries.radical +867 -0
  41. package/dist/hub-catalogue/concern/concern-observability.radical +997 -0
  42. package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
  43. package/dist/hub-catalogue/concern/concern-personal-data.radical +1949 -0
  44. package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
  45. package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1445 -0
  46. package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
  47. package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
  48. package/dist/hub-catalogue/concern/concern-secrets.radical +1284 -0
  49. package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
  50. package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
  51. package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
  52. package/dist/hub-catalogue/concern/concern-supply-chain.radical +1386 -0
  53. package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
  54. package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
  55. package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1440 -0
  56. package/dist/hub-catalogue/concern/concern-test-strategy.radical +1212 -0
  57. package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
  58. package/dist/index.js +10321 -3964
  59. package/package.json +1 -1
  60. package/dist/hub-catalogue/adr/adr-api-versioning.radical +0 -53
  61. package/dist/hub-catalogue/adr/adr-auth-strategy.radical +0 -53
  62. package/dist/hub-catalogue/adr/adr-caching-strategy.radical +0 -59
  63. package/dist/hub-catalogue/adr/adr-data-consistency-model.radical +0 -40
  64. package/dist/hub-catalogue/adr/adr-data-store.radical +0 -47
  65. package/dist/hub-catalogue/adr/adr-deployment-strategy.radical +0 -53
  66. package/dist/hub-catalogue/adr/adr-event-schema-evolution.radical +0 -53
  67. package/dist/hub-catalogue/adr/adr-integration-style.radical +0 -50
  68. package/dist/hub-catalogue/adr/adr-ledger-reconciliation-strategy.radical +0 -38
  69. package/dist/hub-catalogue/adr/adr-llm-provider-strategy.radical +0 -40
  70. package/dist/hub-catalogue/adr/adr-marketplace-payments-model.radical +0 -39
  71. package/dist/hub-catalogue/adr/adr-multi-region.radical +0 -60
  72. package/dist/hub-catalogue/adr/adr-multi-tenancy-strategy.radical +0 -41
  73. package/dist/hub-catalogue/adr/adr-observability.radical +0 -59
  74. package/dist/hub-catalogue/adr/adr-realtime-transport.radical +0 -38
  75. package/dist/hub-catalogue/adr/adr-tech-stack.radical +0 -45
  76. package/dist/hub-catalogue/adr/adr-zero-trust-network.radical +0 -40
  77. package/dist/hub-catalogue/blueprint/bp-ai-assistant-platform.radical +0 -1641
  78. package/dist/hub-catalogue/blueprint/bp-analytical-data-platform.radical +0 -1428
  79. package/dist/hub-catalogue/blueprint/bp-ecommerce-platform.radical +0 -1989
  80. package/dist/hub-catalogue/blueprint/bp-fintech-ledger-platform.radical +0 -1701
  81. package/dist/hub-catalogue/blueprint/bp-marketplace-platform.radical +0 -1792
  82. package/dist/hub-catalogue/blueprint/bp-realtime-collaboration.radical +0 -1421
  83. package/dist/hub-catalogue/blueprint/bp-saas-b2b-platform.radical +0 -1713
  84. package/dist/hub-catalogue/fitness-function/ff-accessibility-scan.radical +0 -34
  85. package/dist/hub-catalogue/fitness-function/ff-ai-eval-gate.radical +0 -52
  86. package/dist/hub-catalogue/fitness-function/ff-api-contract.radical +0 -36
  87. package/dist/hub-catalogue/fitness-function/ff-capacity-load-test.radical +0 -67
  88. package/dist/hub-catalogue/fitness-function/ff-carbon-footprint-guard.radical +0 -62
  89. package/dist/hub-catalogue/fitness-function/ff-change-failure-rate.radical +0 -45
  90. package/dist/hub-catalogue/fitness-function/ff-chaos-resilience-test.radical +0 -53
  91. package/dist/hub-catalogue/fitness-function/ff-cost-efficiency-guard.radical +0 -64
  92. package/dist/hub-catalogue/fitness-function/ff-coupling-guard.radical +0 -45
  93. package/dist/hub-catalogue/fitness-function/ff-data-integrity-check.radical +0 -51
  94. package/dist/hub-catalogue/fitness-function/ff-data-residency.radical +0 -43
  95. package/dist/hub-catalogue/fitness-function/ff-dependency-rules.radical +0 -37
  96. package/dist/hub-catalogue/fitness-function/ff-deploy-frequency.radical +0 -46
  97. package/dist/hub-catalogue/fitness-function/ff-dr-drill-success.radical +0 -52
  98. package/dist/hub-catalogue/fitness-function/ff-duplication-guard.radical +0 -53
  99. package/dist/hub-catalogue/fitness-function/ff-error-budget.radical +0 -59
  100. package/dist/hub-catalogue/fitness-function/ff-fail-safe-verification.radical +0 -34
  101. package/dist/hub-catalogue/fitness-function/ff-infra-drift.radical +0 -34
  102. package/dist/hub-catalogue/fitness-function/ff-latency-slo.radical +0 -59
  103. package/dist/hub-catalogue/fitness-function/ff-lead-time.radical +0 -44
  104. package/dist/hub-catalogue/fitness-function/ff-ledger-balance-integrity.radical +0 -45
  105. package/dist/hub-catalogue/fitness-function/ff-license-compliance.radical +0 -43
  106. package/dist/hub-catalogue/fitness-function/ff-mttr.radical +0 -45
  107. package/dist/hub-catalogue/fitness-function/ff-noisy-neighbor-guard.radical +0 -66
  108. package/dist/hub-catalogue/fitness-function/ff-sast-scan.radical +0 -35
  109. package/dist/hub-catalogue/fitness-function/ff-scale-out-verification.radical +0 -66
  110. package/dist/hub-catalogue/fitness-function/ff-security-scan.radical +0 -45
  111. package/dist/hub-catalogue/fitness-function/ff-startup-shutdown-check.radical +0 -66
  112. package/dist/hub-catalogue/fitness-function/ff-sync-convergence-test.radical +0 -45
  113. package/dist/hub-catalogue/fitness-function/ff-test-coverage.radical +0 -43
  114. package/dist/hub-catalogue/fitness-function/ff-web-vitals.radical +0 -57
  115. package/dist/hub-catalogue/pattern/pattern-anti-corruption-layer.radical +0 -88
  116. package/dist/hub-catalogue/pattern/pattern-api-gateway.radical +0 -168
  117. package/dist/hub-catalogue/pattern/pattern-bff.radical +0 -179
  118. package/dist/hub-catalogue/pattern/pattern-bulkhead.radical +0 -114
  119. package/dist/hub-catalogue/pattern/pattern-circuit-breaker.radical +0 -219
  120. package/dist/hub-catalogue/pattern/pattern-cqrs.radical +0 -195
  121. package/dist/hub-catalogue/pattern/pattern-crdt-sync.radical +0 -200
  122. package/dist/hub-catalogue/pattern/pattern-event-driven.radical +0 -210
  123. package/dist/hub-catalogue/pattern/pattern-event-sourced-ledger.radical +0 -211
  124. package/dist/hub-catalogue/pattern/pattern-hexagonal.radical +0 -196
  125. package/dist/hub-catalogue/pattern/pattern-microservices.radical +0 -262
  126. package/dist/hub-catalogue/pattern/pattern-rag-pipeline.radical +0 -213
  127. package/dist/hub-catalogue/pattern/pattern-rate-limiter.radical +0 -114
  128. package/dist/hub-catalogue/pattern/pattern-saga.radical +0 -208
  129. package/dist/hub-catalogue/pattern/pattern-sidecar.radical +0 -123
  130. package/dist/hub-catalogue/pattern/pattern-strangler-fig.radical +0 -227
  131. package/dist/hub-catalogue/pattern/pattern-transactional-outbox.radical +0 -209
  132. package/dist/hub-catalogue/requirement/req-accessibility.radical +0 -48
  133. package/dist/hub-catalogue/requirement/req-ai-autonomous-resolution.radical +0 -51
  134. package/dist/hub-catalogue/requirement/req-ai-groundedness.radical +0 -45
  135. package/dist/hub-catalogue/requirement/req-ai-human-handoff.radical +0 -46
  136. package/dist/hub-catalogue/requirement/req-alerting.radical +0 -52
  137. package/dist/hub-catalogue/requirement/req-api-response-time.radical +0 -51
  138. package/dist/hub-catalogue/requirement/req-api-standard.radical +0 -45
  139. package/dist/hub-catalogue/requirement/req-audit-logging.radical +0 -43
  140. package/dist/hub-catalogue/requirement/req-auth-response-time.radical +0 -45
  141. package/dist/hub-catalogue/requirement/req-auth.radical +0 -43
  142. package/dist/hub-catalogue/requirement/req-autoscaling.radical +0 -62
  143. package/dist/hub-catalogue/requirement/req-availability.radical +0 -50
  144. package/dist/hub-catalogue/requirement/req-backward-compatibility.radical +0 -46
  145. package/dist/hub-catalogue/requirement/req-batch-job-completion.radical +0 -50
  146. package/dist/hub-catalogue/requirement/req-carbon-efficiency.radical +0 -64
  147. package/dist/hub-catalogue/requirement/req-centralised-logging.radical +0 -45
  148. package/dist/hub-catalogue/requirement/req-ci-pipeline-time.radical +0 -43
  149. package/dist/hub-catalogue/requirement/req-code-complexity.radical +0 -43
  150. package/dist/hub-catalogue/requirement/req-config-propagation.radical +0 -45
  151. package/dist/hub-catalogue/requirement/req-data-integrity.radical +0 -35
  152. package/dist/hub-catalogue/requirement/req-data-retention.radical +0 -44
  153. package/dist/hub-catalogue/requirement/req-db-query-response.radical +0 -44
  154. package/dist/hub-catalogue/requirement/req-disaster-recovery.radical +0 -59
  155. package/dist/hub-catalogue/requirement/req-distributed-tracing.radical +0 -45
  156. package/dist/hub-catalogue/requirement/req-encryption.radical +0 -49
  157. package/dist/hub-catalogue/requirement/req-error-rate.radical +0 -45
  158. package/dist/hub-catalogue/requirement/req-error-recovery.radical +0 -34
  159. package/dist/hub-catalogue/requirement/req-event-schema-compatibility.radical +0 -37
  160. package/dist/hub-catalogue/requirement/req-fail-safe-default.radical +0 -55
  161. package/dist/hub-catalogue/requirement/req-fast-startup-graceful-shutdown.radical +0 -69
  162. package/dist/hub-catalogue/requirement/req-gdpr-erasure.radical +0 -44
  163. package/dist/hub-catalogue/requirement/req-graceful-degradation.radical +0 -39
  164. package/dist/hub-catalogue/requirement/req-health-checks.radical +0 -43
  165. package/dist/hub-catalogue/requirement/req-iac.radical +0 -36
  166. package/dist/hub-catalogue/requirement/req-idempotency.radical +0 -47
  167. package/dist/hub-catalogue/requirement/req-input-validation.radical +0 -37
  168. package/dist/hub-catalogue/requirement/req-least-privilege.radical +0 -47
  169. package/dist/hub-catalogue/requirement/req-ledger-immutability.radical +0 -38
  170. package/dist/hub-catalogue/requirement/req-mfa.radical +0 -36
  171. package/dist/hub-catalogue/requirement/req-ml-extraction-accuracy.radical +0 -42
  172. package/dist/hub-catalogue/requirement/req-onboarding-time.radical +0 -42
  173. package/dist/hub-catalogue/requirement/req-page-load-time.radical +0 -59
  174. package/dist/hub-catalogue/requirement/req-payout-latency.radical +0 -46
  175. package/dist/hub-catalogue/requirement/req-presence-latency.radical +0 -46
  176. package/dist/hub-catalogue/requirement/req-rate-limiting.radical +0 -45
  177. package/dist/hub-catalogue/requirement/req-report-generation.radical +0 -44
  178. package/dist/hub-catalogue/requirement/req-resource-efficiency.radical +0 -64
  179. package/dist/hub-catalogue/requirement/req-resource-headroom.radical +0 -53
  180. package/dist/hub-catalogue/requirement/req-resource-isolation.radical +0 -37
  181. package/dist/hub-catalogue/requirement/req-search-response-time.radical +0 -44
  182. package/dist/hub-catalogue/requirement/req-secrets-management.radical +0 -45
  183. package/dist/hub-catalogue/requirement/req-task-success-rate.radical +0 -42
  184. package/dist/hub-catalogue/requirement/req-test-coverage.radical +0 -42
  185. package/dist/hub-catalogue/requirement/req-throughput.radical +0 -55
  186. package/dist/hub-catalogue/requirement/req-vulnerability-scanning.radical +0 -52
  187. package/dist/hub-catalogue/requirement/req-zero-downtime-deploy.radical +0 -39
@@ -0,0 +1,1647 @@
1
+ {
2
+ "hub": {
3
+ "id": "concern-frontend-stack",
4
+ "category": "concern",
5
+ "name": "Frontend stack",
6
+ "description": "The UI framework and rendering model of a web front end, its design system, the browsers it supports, its performance budget (Core Web Vitals, JavaScript size) and its accessibility level.",
7
+ "tags": [
8
+ "technology",
9
+ "frontend",
10
+ "web",
11
+ "framework",
12
+ "core web vitals",
13
+ "accessibility",
14
+ "design system",
15
+ "browser support"
16
+ ],
17
+ "requiredMetamodel": "c4-ddd-governance-builtin",
18
+ "concern": {
19
+ "id": "frontend-stack",
20
+ "trigger": "LIST NODES WHERE type = \"webapp\" AND external != true",
21
+ "why": "these are web front ends, so what they are built with, how they render, how fast and accessible they must be, and which browsers they support has to be decided.",
22
+ "group": "technology"
23
+ },
24
+ "sources": [
25
+ {
26
+ "title": "web.dev: Web Vitals (LCP, INP, CLS and their thresholds)",
27
+ "url": "https://web.dev/articles/vitals"
28
+ },
29
+ {
30
+ "title": "web.dev: Performance budgets 101",
31
+ "url": "https://web.dev/articles/performance-budgets-101"
32
+ },
33
+ {
34
+ "title": "web.dev: Rendering on the web",
35
+ "url": "https://web.dev/articles/rendering-on-the-web"
36
+ },
37
+ {
38
+ "title": "web.dev: Time to First Byte (TTFB)",
39
+ "url": "https://web.dev/articles/ttfb"
40
+ },
41
+ {
42
+ "title": "web.dev: Prevent unnecessary network requests with the HTTP Cache",
43
+ "url": "https://web.dev/articles/http-cache"
44
+ },
45
+ {
46
+ "title": "W3C: Web Content Accessibility Guidelines (WCAG) 2.2",
47
+ "url": "https://www.w3.org/TR/WCAG22/"
48
+ },
49
+ {
50
+ "title": "ETSI EN 301 549: Accessibility requirements for ICT products and services",
51
+ "url": "https://www.etsi.org/deliver/etsi_en/301500_301599/301549/03.02.01_60/en_301549v030201p.pdf"
52
+ },
53
+ {
54
+ "title": "W3C Design Tokens Community Group: Design Tokens Format Module",
55
+ "url": "https://tr.designtokens.org/format/"
56
+ },
57
+ {
58
+ "title": "Tailwind CSS documentation: theme variables",
59
+ "url": "https://tailwindcss.com/docs/theme"
60
+ },
61
+ {
62
+ "title": "Browserslist",
63
+ "url": "https://github.com/browserslist/browserslist"
64
+ },
65
+ {
66
+ "title": "endoflife.date: framework support lifecycles",
67
+ "url": "https://endoflife.date/"
68
+ },
69
+ {
70
+ "title": "Lighthouse CI",
71
+ "url": "https://github.com/GoogleChrome/lighthouse-ci"
72
+ },
73
+ {
74
+ "title": "axe-core",
75
+ "url": "https://github.com/dequelabs/axe-core"
76
+ },
77
+ {
78
+ "title": "Thoughtworks Technology Radar",
79
+ "url": "https://www.thoughtworks.com/radar"
80
+ }
81
+ ],
82
+ "templateParams": [
83
+ {
84
+ "key": "FRAMEWORK",
85
+ "title": "Framework",
86
+ "label": "What is the front end built with?",
87
+ "hint": "The framework brings its ecosystem, its way of rendering and the people who can work on it. Changing it later means rewriting the front end.",
88
+ "defaultValue": "react",
89
+ "options": [
90
+ {
91
+ "value": "react",
92
+ "label": "React (Next.js or Vite)",
93
+ "description": "The largest ecosystem and hiring pool; Next.js for server rendering and static pages, Vite for a plain single-page app. Pick it when the team knows React, or you need the widest choice of components and libraries."
94
+ },
95
+ {
96
+ "value": "angular",
97
+ "label": "Angular",
98
+ "description": "One opinionated framework with routing, forms, HTTP and testing included, and a published support schedule per major. Pick it for large business applications built by several teams that value one way of doing things, or where the team already knows it."
99
+ },
100
+ {
101
+ "value": "vue",
102
+ "label": "Vue (Nuxt or Vite)",
103
+ "description": "Approachable, with single-file components; Nuxt for server rendering and static pages. Pick it when the team knows Vue, or it is adopted gradually into existing server-rendered pages."
104
+ },
105
+ {
106
+ "value": "svelte",
107
+ "label": "Svelte (SvelteKit)",
108
+ "description": "Compiles to small JavaScript, with SvelteKit for routing and every rendering mode. Pick it when bundle size and simplicity weigh most and a smaller ecosystem is acceptable."
109
+ },
110
+ {
111
+ "value": "htmx",
112
+ "label": "server-rendered HTML with htmx",
113
+ "description": "The back end renders HTML from templates; htmx swaps parts of the page, and Alpine.js holds small client state. Pick it for forms-and-tables applications when the team is back-end heavy and rich client-side interaction is rare. The rendering question does not apply: every page is rendered on the server (answer SSR)."
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "key": "RENDERING",
119
+ "title": "Rendering",
120
+ "label": "Where are pages rendered?",
121
+ "hint": "Rendering decides what the first response holds: an empty shell, the content, or a file built in advance. It sets first-load speed, search visibility and what the server must do. Only when the framework is not htmx, which renders every page on the server: answer SSR there.",
122
+ "defaultValue": "ssr",
123
+ "options": [
124
+ {
125
+ "value": "spa",
126
+ "label": "in the browser (single-page app)",
127
+ "description": "The server sends a shell and the browser renders everything. Pick it for applications behind sign-in, used for long sessions, where search engines do not matter and later navigation must be instant. Not with htmx."
128
+ },
129
+ {
130
+ "value": "ssr",
131
+ "label": "on the server for each request (SSR)",
132
+ "description": "Each request gets HTML with its content, then the page becomes interactive. Pick it for public pages with personalised or fast-changing content where search and first load matter, and always with htmx."
133
+ },
134
+ {
135
+ "value": "static",
136
+ "label": "at build time (static generation)",
137
+ "description": "Pages are built in advance and served from a CDN, rebuilt when content changes. Pick it for content that is the same for everyone and changes at most a few times an hour (marketing, documentation, catalogues). Not with htmx."
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "key": "DESIGN",
143
+ "title": "Design system",
144
+ "label": "What are the screens built from?",
145
+ "hint": "A design system keeps screens consistent and accessible; the question is whether you build it, adopt one, or compose one from utilities.",
146
+ "defaultValue": "library",
147
+ "options": [
148
+ {
149
+ "value": "own",
150
+ "label": "our own design system",
151
+ "description": "Our components and design tokens, built on accessible headless primitives (Radix or React Aria for React, Angular CDK, Reka UI for Vue, Bits UI for Svelte; template partials with htmx), documented in Storybook. Pick it when the brand must be distinct and several applications share it, and a team can own it."
152
+ },
153
+ {
154
+ "value": "library",
155
+ "label": "an established component library",
156
+ "description": "An off-the-shelf library themed to the brand: MUI, Angular Material, Vuetify, PrimeNG, Fluent UI, Skeleton; with htmx a CSS library such as Bootstrap or Pico. Pick it for business applications where speed matters more than a distinct look."
157
+ },
158
+ {
159
+ "value": "utility",
160
+ "label": "utility CSS with copied components",
161
+ "description": "Tailwind CSS with the design tokens in its theme, and components copied into the codebase (shadcn/ui and similar). Pick it when you want full control of the markup without maintaining a separate library."
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "key": "BROWSERS",
167
+ "title": "Browser support",
168
+ "label": "Which browsers must work?",
169
+ "hint": "The browser list decides which language features and CSS ship untranspiled, which polyfills load, and which browsers the tests run in.",
170
+ "defaultValue": "defaults",
171
+ "options": [
172
+ {
173
+ "value": "modern",
174
+ "label": "the last two versions of Chrome, Edge, Firefox and Safari",
175
+ "description": "Only current evergreen browsers; older ones get a notice naming the supported browsers. Pick it for internal tools and applications whose users have managed, up-to-date devices."
176
+ },
177
+ {
178
+ "value": "defaults",
179
+ "label": "browserslist defaults (over 0.5% use, last 2 versions, Firefox ESR)",
180
+ "description": "The broad default most public sites use. Pick it for public sites and applications with a general audience."
181
+ },
182
+ {
183
+ "value": "extended",
184
+ "label": "an extended list, including older phones (iOS 15 and later)",
185
+ "description": "Over 0.2% use, last 3 versions, Firefox ESR, iOS Safari 15 and later, with release candidates tried on real old phones. Pick it when analytics show many users on older phones (emerging markets, public services that must reach everyone)."
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "key": "LCP_MS",
191
+ "label": "Largest Contentful Paint at the 75th percentile (ms)?",
192
+ "defaultValue": "2500",
193
+ "type": "number"
194
+ },
195
+ {
196
+ "key": "INP_MS",
197
+ "label": "Interaction to Next Paint at the 75th percentile (ms)?",
198
+ "defaultValue": "200",
199
+ "type": "number"
200
+ },
201
+ {
202
+ "key": "CLS",
203
+ "label": "Cumulative Layout Shift at the 75th percentile?",
204
+ "defaultValue": "0.1",
205
+ "type": "number"
206
+ },
207
+ {
208
+ "key": "JS_KB",
209
+ "label": "At most how much JavaScript may a route load before it is interactive (KB, compressed)?",
210
+ "defaultValue": "200",
211
+ "type": "number"
212
+ },
213
+ {
214
+ "key": "EOL_DAYS",
215
+ "label": "How many days before end of support must a framework major be replaced?",
216
+ "defaultValue": "180",
217
+ "type": "number"
218
+ }
219
+ ]
220
+ },
221
+ "nodes": [
222
+ {
223
+ "id": "need",
224
+ "type": "need",
225
+ "label": "A fast, accessible front end",
226
+ "x": 0,
227
+ "y": 0,
228
+ "kind": "brief",
229
+ "source": "Hub concern pack: Frontend stack",
230
+ "description": "People use this front end on their own devices, browsers and networks, some with disabilities and assistive technology. It has to load and respond quickly on an ordinary phone, work in the browsers its users have, be usable by everyone, look and behave consistently, and be built on a framework the team knows and that keeps receiving fixes. The choices and the numbers it is held to must be written down and checked, not rediscovered after users complain. The checks assume one front end per repository with its package.json at the root, a versions.txt listing the endoflife.date products and cycles in use, server templates (htmx) under templates/ or src/, and a RUM table rum_events(name, value, page_group, received_at) fed by the page."
231
+ },
232
+ {
233
+ "id": "req-one-framework",
234
+ "type": "requirement",
235
+ "label": "Built on the chosen framework",
236
+ "x": 260,
237
+ "y": 0,
238
+ "ears_type": "ubiquitous",
239
+ "action": "build the front end with {{FRAMEWORK}}, adding another UI framework only after a new decision record supersedes this one",
240
+ "rationale": "Two UI frameworks in one front end double the JavaScript users download and the skills the team needs (Thoughtworks Technology Radar)."
241
+ },
242
+ {
243
+ "id": "req-vitals",
244
+ "type": "requirement",
245
+ "label": "Core Web Vitals met",
246
+ "x": 260,
247
+ "y": 130,
248
+ "ears_type": "ubiquitous",
249
+ "action": "meet, at the 75th percentile of real page loads over 28 days per page group, a Largest Contentful Paint within {{LCP_MS}} ms, an Interaction to Next Paint within {{INP_MS}} ms and a Cumulative Layout Shift of at most {{CLS}}",
250
+ "rationale": "These are the thresholds for a \"good\" experience, measured at the 75th percentile of field data over 28 days (web.dev, Web Vitals: LCP 2.5 s, INP 200 ms, CLS 0.1); they also feed search ranking."
251
+ },
252
+ {
253
+ "id": "req-bundle",
254
+ "type": "requirement",
255
+ "label": "JavaScript within budget",
256
+ "x": 260,
257
+ "y": 260,
258
+ "ears_type": "ubiquitous",
259
+ "action": "keep the JavaScript a route loads before it is interactive within {{JS_KB}} KB compressed, loading the rest on demand",
260
+ "rationale": "JavaScript is the costliest byte on a phone: it is downloaded, parsed and run on the main thread, which is what INP measures (web.dev, Performance budgets 101)."
261
+ },
262
+ {
263
+ "id": "req-a11y",
264
+ "type": "requirement",
265
+ "label": "Accessible to WCAG 2.2 AA",
266
+ "x": 260,
267
+ "y": 390,
268
+ "ears_type": "ubiquitous",
269
+ "action": "conform to WCAG 2.2 level AA on every page, with 0 serious or critical automated accessibility violations, every function operable by keyboard alone, and a manual audit with a screen reader before each major release",
270
+ "rationale": "WCAG 2.2 AA is the level EN 301 549, the European Accessibility Act and most public-sector rules require; automated checks find only part of the failures, hence the keyboard journey and the manual audit (W3C WCAG 2.2; EN 301 549)."
271
+ },
272
+ {
273
+ "id": "req-supported",
274
+ "type": "requirement",
275
+ "label": "Supported framework versions",
276
+ "x": 260,
277
+ "y": 520,
278
+ "ears_type": "ubiquitous",
279
+ "action": "run only framework and build-tool majors under support, moving off each at least {{EOL_DAYS}} days before its end of support",
280
+ "rationale": "Front-end frameworks support a major for a limited time (Angular 18 months, Node.js-based tooling with its runtime); after that, security fixes stop (endoflife.date).",
281
+ "hubWhen": {
282
+ "FRAMEWORK": [
283
+ "react",
284
+ "angular",
285
+ "vue",
286
+ "svelte"
287
+ ]
288
+ }
289
+ },
290
+ {
291
+ "id": "req-spa-cache",
292
+ "type": "requirement",
293
+ "label": "App shell cached right",
294
+ "x": 260,
295
+ "y": 650,
296
+ "ears_type": "event-driven",
297
+ "trigger": "a new version of the single-page app is deployed",
298
+ "action": "serve its content-hashed assets with a one-year immutable cache and its HTML with no-cache, so that every user gets the new version on their next navigation and 0 users load a mix of versions",
299
+ "rationale": "A single-page app is a shell plus assets; wrong caching either serves stale code for days or downloads everything on every visit (web.dev, HTTP Cache).",
300
+ "hubWhen": {
301
+ "RENDERING": [
302
+ "spa"
303
+ ],
304
+ "FRAMEWORK": [
305
+ "react",
306
+ "angular",
307
+ "vue",
308
+ "svelte"
309
+ ]
310
+ }
311
+ },
312
+ {
313
+ "id": "req-ssr",
314
+ "type": "requirement",
315
+ "label": "Content in the first response",
316
+ "x": 260,
317
+ "y": 780,
318
+ "ears_type": "event-driven",
319
+ "trigger": "a page is requested",
320
+ "action": "answer with HTML that already holds the page's main content, with a Time to First Byte within 800 ms at the 75th percentile at the peak load decided in the Capacity and scaling pack",
321
+ "rationale": "Server rendering pays off only if the server answers quickly; 800 ms is web.dev's \"good\" Time to First Byte, which leaves room for LCP within budget (web.dev, TTFB).",
322
+ "hubWhen": {
323
+ "RENDERING": [
324
+ "ssr"
325
+ ]
326
+ }
327
+ },
328
+ {
329
+ "id": "req-static",
330
+ "type": "requirement",
331
+ "label": "Pages built in advance",
332
+ "x": 260,
333
+ "y": 910,
334
+ "ears_type": "event-driven",
335
+ "trigger": "content is published or changed",
336
+ "action": "rebuild the affected pages and serve them from the CDN within 15 minutes, with 100% of pages served as pre-built files from the CDN cache",
337
+ "rationale": "Static pages are the fastest and cheapest to serve; the publishing delay is the price, and it must be bounded (web.dev, Rendering on the web).",
338
+ "hubWhen": {
339
+ "RENDERING": [
340
+ "static"
341
+ ],
342
+ "FRAMEWORK": [
343
+ "react",
344
+ "angular",
345
+ "vue",
346
+ "svelte"
347
+ ]
348
+ }
349
+ },
350
+ {
351
+ "id": "req-design-own",
352
+ "type": "requirement",
353
+ "label": "Screens use our design system",
354
+ "x": 260,
355
+ "y": 1040,
356
+ "ears_type": "ubiquitous",
357
+ "action": "build every screen from the design system's components and tokens, document each component with its states in Storybook, and use 0 hard-coded colours, font sizes or spacing outside the tokens",
358
+ "rationale": "A design system pays off only when used everywhere; tokens make a brand or contrast change one edit instead of a search (W3C Design Tokens Format Module).",
359
+ "hubWhen": {
360
+ "DESIGN": [
361
+ "own"
362
+ ]
363
+ }
364
+ },
365
+ {
366
+ "id": "req-design-library",
367
+ "type": "requirement",
368
+ "label": "Library used through its theme",
369
+ "x": 260,
370
+ "y": 1170,
371
+ "ears_type": "ubiquitous",
372
+ "action": "style the component library only through its theme and public props, with 0 overrides of its internal class names, so that it can be upgraded to each new major within 6 months",
373
+ "rationale": "Overrides of a library's internals break on its next major and pin the front end to an old version (the library's own theming guides).",
374
+ "hubWhen": {
375
+ "DESIGN": [
376
+ "library"
377
+ ]
378
+ }
379
+ },
380
+ {
381
+ "id": "req-design-utility",
382
+ "type": "requirement",
383
+ "label": "Utilities use the tokens",
384
+ "x": 260,
385
+ "y": 1300,
386
+ "ears_type": "ubiquitous",
387
+ "action": "take colours, spacing and type sizes only from the tokens in the Tailwind theme, with 0 arbitrary values in class names",
388
+ "rationale": "Arbitrary values bypass the theme and turn the design system back into one-off styles (Tailwind CSS documentation, theme variables).",
389
+ "hubWhen": {
390
+ "DESIGN": [
391
+ "utility"
392
+ ]
393
+ }
394
+ },
395
+ {
396
+ "id": "req-browsers",
397
+ "type": "requirement",
398
+ "label": "Supported browsers work",
399
+ "x": 260,
400
+ "y": 1430,
401
+ "ears_type": "ubiquitous",
402
+ "action": "work in every browser of {{BROWSERS}}, with the main journeys tested in Chromium, Firefox and WebKit on every pull request and 0 unsupported language or web features shipped without a polyfill",
403
+ "rationale": "An explicit browser list lets the build ship only the transpilation and polyfills needed, and the lint catch a feature the list does not have (Browserslist)."
404
+ },
405
+ {
406
+ "id": "req-unsupported",
407
+ "type": "requirement",
408
+ "label": "Old browsers told",
409
+ "x": 260,
410
+ "y": 1560,
411
+ "ears_type": "unwanted-behaviour",
412
+ "unwanted_condition": "the front end is opened in a browser outside the supported list",
413
+ "action": "show a notice naming the supported browsers instead of a broken page",
414
+ "rationale": "A short browser list is acceptable only if users outside it learn why the page fails (Browserslist).",
415
+ "hubWhen": {
416
+ "BROWSERS": [
417
+ "modern"
418
+ ]
419
+ }
420
+ },
421
+ {
422
+ "id": "req-old-devices",
423
+ "type": "requirement",
424
+ "label": "Tested on older phones",
425
+ "x": 260,
426
+ "y": 1690,
427
+ "ears_type": "event-driven",
428
+ "trigger": "a release candidate is built",
429
+ "action": "run the main journeys on real devices with the oldest supported iOS Safari and a low-end Android phone, and meet the Core Web Vitals budget on the Android phone",
430
+ "rationale": "Emulated browsers miss the CPU and memory limits of old phones, where an extended audience feels the budget most (web.dev, Web Vitals).",
431
+ "unchecked": "It runs on real phones, which no pipeline tool here drives: the release engineer runs the main journeys on the device bench (the oldest supported iPhone and a low-end Android phone) before each release candidate is promoted, and records LCP from the phone's DevTools in the release notes.",
432
+ "hubWhen": {
433
+ "BROWSERS": [
434
+ "extended"
435
+ ]
436
+ }
437
+ },
438
+ {
439
+ "id": "sc-one-framework",
440
+ "type": "scenario",
441
+ "label": "Second framework refused",
442
+ "x": 520,
443
+ "y": 0,
444
+ "given": "the front end's package.json files",
445
+ "when": "a change adds another UI framework's package",
446
+ "then": "the framework check fails until a decision record allows it"
447
+ },
448
+ {
449
+ "id": "sc-vitals",
450
+ "type": "scenario",
451
+ "label": "Field vitals within budget",
452
+ "x": 520,
453
+ "y": 130,
454
+ "given": "28 days of real-user measurements per page group",
455
+ "when": "the 75th percentiles are computed",
456
+ "then": "LCP is within {{LCP_MS}} ms, INP within {{INP_MS}} ms and CLS at most {{CLS}} for every page group"
457
+ },
458
+ {
459
+ "id": "sc-bundle",
460
+ "type": "scenario",
461
+ "label": "Bundle over budget refused",
462
+ "x": 520,
463
+ "y": 260,
464
+ "given": "a pull request that adds a large library to a route",
465
+ "when": "Lighthouse CI runs against the preview",
466
+ "then": "it fails when the route's script transfer size passes {{JS_KB}} KB"
467
+ },
468
+ {
469
+ "id": "sc-a11y",
470
+ "type": "scenario",
471
+ "label": "Page passes accessibility checks",
472
+ "x": 520,
473
+ "y": 390,
474
+ "given": "each page of the main journeys",
475
+ "when": "the automated checks run and the main journey is completed with the keyboard only",
476
+ "then": "0 serious or critical violations are reported and the journey completes"
477
+ },
478
+ {
479
+ "id": "sc-supported",
480
+ "type": "scenario",
481
+ "label": "End of support ahead",
482
+ "x": 520,
483
+ "y": 520,
484
+ "given": "a framework major whose end of support is less than {{EOL_DAYS}} days away",
485
+ "when": "the version check runs",
486
+ "then": "it fails naming the version and its end-of-support date",
487
+ "hubWhen": {
488
+ "FRAMEWORK": [
489
+ "react",
490
+ "angular",
491
+ "vue",
492
+ "svelte"
493
+ ]
494
+ }
495
+ },
496
+ {
497
+ "id": "sc-spa-cache",
498
+ "type": "scenario",
499
+ "label": "New version reaches users",
500
+ "x": 520,
501
+ "y": 650,
502
+ "given": "a user with the previous version cached",
503
+ "when": "a new version is deployed and the user navigates",
504
+ "then": "the new HTML loads, its hashed assets are fetched once, and the unchanged ones come from the cache",
505
+ "hubWhen": {
506
+ "RENDERING": [
507
+ "spa"
508
+ ],
509
+ "FRAMEWORK": [
510
+ "react",
511
+ "angular",
512
+ "vue",
513
+ "svelte"
514
+ ]
515
+ }
516
+ },
517
+ {
518
+ "id": "sc-ssr",
519
+ "type": "scenario",
520
+ "label": "Content without JavaScript",
521
+ "x": 520,
522
+ "y": 780,
523
+ "given": "a public page",
524
+ "when": "it is requested at the peak rate with JavaScript disabled",
525
+ "then": "its main content is in the HTML, and the 75th-percentile TTFB is within 800 ms",
526
+ "hubWhen": {
527
+ "RENDERING": [
528
+ "ssr"
529
+ ]
530
+ }
531
+ },
532
+ {
533
+ "id": "sc-static",
534
+ "type": "scenario",
535
+ "label": "Change live within 15 minutes",
536
+ "x": 520,
537
+ "y": 910,
538
+ "given": "a published page",
539
+ "when": "its content is changed",
540
+ "then": "the publish run completes within 15 minutes and the CDN serves the rebuilt page from its cache",
541
+ "hubWhen": {
542
+ "RENDERING": [
543
+ "static"
544
+ ],
545
+ "FRAMEWORK": [
546
+ "react",
547
+ "angular",
548
+ "vue",
549
+ "svelte"
550
+ ]
551
+ }
552
+ },
553
+ {
554
+ "id": "sc-design-own",
555
+ "type": "scenario",
556
+ "label": "Hard-coded colour refused",
557
+ "x": 520,
558
+ "y": 1040,
559
+ "given": "a stylesheet change",
560
+ "when": "it sets a colour as a hex value instead of a token",
561
+ "then": "the style lint fails",
562
+ "hubWhen": {
563
+ "DESIGN": [
564
+ "own"
565
+ ]
566
+ }
567
+ },
568
+ {
569
+ "id": "sc-design-library",
570
+ "type": "scenario",
571
+ "label": "Internal override refused",
572
+ "x": 520,
573
+ "y": 1170,
574
+ "given": "a stylesheet change",
575
+ "when": "it targets one of the library's internal class names",
576
+ "then": "the style lint fails",
577
+ "hubWhen": {
578
+ "DESIGN": [
579
+ "library"
580
+ ]
581
+ }
582
+ },
583
+ {
584
+ "id": "sc-design-utility",
585
+ "type": "scenario",
586
+ "label": "Arbitrary value refused",
587
+ "x": 520,
588
+ "y": 1300,
589
+ "given": "a component or template change",
590
+ "when": "it uses a class with an arbitrary value such as a hex colour in brackets",
591
+ "then": "the lint fails",
592
+ "hubWhen": {
593
+ "DESIGN": [
594
+ "utility"
595
+ ]
596
+ }
597
+ },
598
+ {
599
+ "id": "sc-browsers",
600
+ "type": "scenario",
601
+ "label": "Unsupported feature caught",
602
+ "x": 520,
603
+ "y": 1430,
604
+ "given": "the browser list",
605
+ "when": "a change uses a web feature a listed browser lacks",
606
+ "then": "the compatibility lint fails unless a polyfill is configured"
607
+ },
608
+ {
609
+ "id": "sc-unsupported",
610
+ "type": "scenario",
611
+ "label": "Notice in old browser",
612
+ "x": 520,
613
+ "y": 1560,
614
+ "given": "a browser lacking a feature every supported browser has",
615
+ "when": "the front end is opened",
616
+ "then": "the notice names the supported browsers",
617
+ "hubWhen": {
618
+ "BROWSERS": [
619
+ "modern"
620
+ ]
621
+ }
622
+ },
623
+ {
624
+ "id": "sc-old-devices",
625
+ "type": "scenario",
626
+ "label": "Journeys pass on old phones",
627
+ "x": 520,
628
+ "y": 1690,
629
+ "given": "a release candidate",
630
+ "when": "the main journeys run on the oldest supported iPhone and a low-end Android phone",
631
+ "then": "all pass, and LCP on the Android phone is within {{LCP_MS}} ms",
632
+ "hubWhen": {
633
+ "BROWSERS": [
634
+ "extended"
635
+ ]
636
+ }
637
+ },
638
+ {
639
+ "id": "adr-react",
640
+ "type": "adr",
641
+ "label": "Built with React",
642
+ "x": 780,
643
+ "y": 0,
644
+ "concern": "frontend-stack",
645
+ "status": "accepted",
646
+ "date": "",
647
+ "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; the browsers to support decide which features and polyfills ship; and accessibility is a legal duty in many markets (European Accessibility Act, ADA, Section 508), cheap when built in and expensive when retrofitted.",
648
+ "decision": "The front end is built with React in TypeScript (strict). Rendering: {{RENDERING}}: Next.js (App Router, server components) for server rendering and static generation, Vite with React Router for a single-page app. Data fetching with TanStack Query; forms with React Hook Form. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. Budget: LCP {{LCP_MS}} ms, INP {{INP_MS}} ms, CLS {{CLS}} at the 75th percentile of real page loads, {{JS_KB}} KB of JavaScript per route; WCAG 2.2 AA. Dependency updates: as decided in the Dependency hygiene pack. Choosing Next.js or React Router (framework mode): Next.js for the widest ecosystem and hosting on Vercel or Node; React Router when you want web-standard loaders and fewer conventions. Versions tracked through endoflife.date (react, nextjs), each major replaced at least {{EOL_DAYS}} days before its end of support.",
649
+ "consequences": "• The largest ecosystem of components and libraries, and the largest hiring pool.\n• React itself is only the view: routing, data, forms and state are choices to make and keep current.\n• Server components cut the JavaScript sent, but add a server and a new mental model.\n• Next.js majors arrive roughly yearly and change conventions; upgrades are planned work.",
650
+ "alternatives": "1. Angular: everything included and one way of doing it, heavier.\n2. Vue with Nuxt: similar capabilities, gentler learning curve, smaller ecosystem.\n3. Svelte with SvelteKit: smaller bundles, smaller ecosystem.",
651
+ "hubWhen": {
652
+ "FRAMEWORK": [
653
+ "react"
654
+ ]
655
+ }
656
+ },
657
+ {
658
+ "id": "adr-angular",
659
+ "type": "adr",
660
+ "label": "Built with Angular",
661
+ "x": 780,
662
+ "y": 130,
663
+ "concern": "frontend-stack",
664
+ "status": "accepted",
665
+ "date": "",
666
+ "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; the browsers to support decide which features and polyfills ship; and accessibility is a legal duty in many markets (European Accessibility Act, ADA, Section 508), cheap when built in and expensive when retrofitted.",
667
+ "decision": "The front end is built with Angular in TypeScript (strict), with standalone components, signals and the Angular CLI (esbuild). Rendering: {{RENDERING}}: Angular SSR with hydration for server rendering, prerendering for static pages, the default build for a single-page app. Design system: {{DESIGN}} (Angular Material and the CDK when adopting a library). Browsers: {{BROWSERS}}. Budget: LCP {{LCP_MS}} ms, INP {{INP_MS}} ms, CLS {{CLS}} at the 75th percentile of real page loads, {{JS_KB}} KB of JavaScript per route; WCAG 2.2 AA. Dependency updates: as decided in the Dependency hygiene pack. The JavaScript budget is also set in angular.json budgets. Each major is supported for 18 months (6 active, 12 LTS), so the front end moves one major at a time with ng update, at least {{EOL_DAYS}} days before the end of support tracked on endoflife.date (angular).",
668
+ "consequences": "• Routing, forms, HTTP, testing and i18n come with the framework: one way of doing things across teams.\n• Larger initial bundles than Svelte or Vue unless routes are lazy-loaded and deferrable views used.\n• A predictable release and support schedule makes the version policy easy to plan.\n• A steeper learning curve (dependency injection, RxJS) for people new to it.",
669
+ "alternatives": "1. React with Next.js: larger ecosystem, more choices to make.\n2. Vue with Nuxt: lighter, less prescriptive.\n3. Server-rendered HTML with htmx: far less JavaScript for forms-and-tables applications.",
670
+ "hubWhen": {
671
+ "FRAMEWORK": [
672
+ "angular"
673
+ ]
674
+ }
675
+ },
676
+ {
677
+ "id": "adr-vue",
678
+ "type": "adr",
679
+ "label": "Built with Vue",
680
+ "x": 780,
681
+ "y": 260,
682
+ "concern": "frontend-stack",
683
+ "status": "accepted",
684
+ "date": "",
685
+ "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; the browsers to support decide which features and polyfills ship; and accessibility is a legal duty in many markets (European Accessibility Act, ADA, Section 508), cheap when built in and expensive when retrofitted.",
686
+ "decision": "The front end is built with Vue 3 in TypeScript, using the Composition API and single-file components. Rendering: {{RENDERING}}: Nuxt for server rendering and static generation, Vite with Vue Router for a single-page app. State in Pinia. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. Budget: LCP {{LCP_MS}} ms, INP {{INP_MS}} ms, CLS {{CLS}} at the 75th percentile of real page loads, {{JS_KB}} KB of JavaScript per route; WCAG 2.2 AA. Dependency updates: as decided in the Dependency hygiene pack. Versions tracked through endoflife.date (vue, nuxt), each major replaced at least {{EOL_DAYS}} days before its end of support.",
687
+ "consequences": "• Gentle learning curve and good performance out of the box.\n• Can be adopted gradually inside existing server-rendered pages.\n• A smaller ecosystem and hiring pool than React.\n• Nuxt majors bring migration work; plan them like framework upgrades.",
688
+ "alternatives": "1. React with Next.js: the largest ecosystem.\n2. Svelte with SvelteKit: smaller bundles.\n3. Angular: more included, more prescriptive.",
689
+ "hubWhen": {
690
+ "FRAMEWORK": [
691
+ "vue"
692
+ ]
693
+ }
694
+ },
695
+ {
696
+ "id": "adr-svelte",
697
+ "type": "adr",
698
+ "label": "Built with Svelte",
699
+ "x": 780,
700
+ "y": 390,
701
+ "concern": "frontend-stack",
702
+ "status": "accepted",
703
+ "date": "",
704
+ "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; the browsers to support decide which features and polyfills ship; and accessibility is a legal duty in many markets (European Accessibility Act, ADA, Section 508), cheap when built in and expensive when retrofitted.",
705
+ "decision": "The front end is built with Svelte 5 (runes) in TypeScript and SvelteKit, whose adapters cover every rendering mode. Rendering: {{RENDERING}}: adapter-node or a platform adapter for server rendering, adapter-static for static pages and single-page apps. Design system: {{DESIGN}}. Browsers: {{BROWSERS}}. Budget: LCP {{LCP_MS}} ms, INP {{INP_MS}} ms, CLS {{CLS}} at the 75th percentile of real page loads, {{JS_KB}} KB of JavaScript per route; WCAG 2.2 AA. Dependency updates: as decided in the Dependency hygiene pack. Versions tracked through endoflife.date (svelte), each major replaced at least {{EOL_DAYS}} days before its end of support.",
706
+ "consequences": "• Compiled components ship little JavaScript, which makes the budget easy to keep.\n• Simple syntax, quick to learn.\n• A smaller ecosystem: fewer ready-made components and integrations, more built in-house.\n• A smaller hiring pool than React, Angular or Vue.",
707
+ "alternatives": "1. React with Next.js: the largest ecosystem, more JavaScript.\n2. Vue with Nuxt: similar simplicity, larger ecosystem.\n3. Server-rendered HTML with htmx: even less JavaScript, less interactivity.",
708
+ "hubWhen": {
709
+ "FRAMEWORK": [
710
+ "svelte"
711
+ ]
712
+ }
713
+ },
714
+ {
715
+ "id": "adr-htmx",
716
+ "type": "adr",
717
+ "label": "Server-rendered HTML with htmx",
718
+ "x": 780,
719
+ "y": 520,
720
+ "concern": "frontend-stack",
721
+ "status": "accepted",
722
+ "date": "",
723
+ "context": "This element is a web front end that people use in their own browsers, on their own devices and networks. The forces: every kilobyte of JavaScript is downloaded, parsed and run on the user's phone, and mid-range phones on mobile networks are where most budgets break; search engines and first visits reward content in the first HTML response, while app-like screens favour rendering in the browser; a framework brings its ecosystem, hiring pool and release cadence, and its majors reach end of support on published dates; a shared design system keeps screens consistent and accessible, but costs effort to build and keep; the browsers to support decide which features and polyfills ship; and accessibility is a legal duty in many markets (European Accessibility Act, ADA, Section 508), cheap when built in and expensive when retrofitted.",
724
+ "decision": "The front end is HTML rendered by the back end from templates (Thymeleaf, Razor, Jinja, templ or the back end's own), with htmx swapping parts of the page and Alpine.js for small client-side state; no client-side framework or build step beyond CSS. Rendering: every page on the server, with partial updates over HTTP; the rendering question does not apply. Design system: {{DESIGN}}, delivered as template partials. Browsers: {{BROWSERS}}. Budget: LCP {{LCP_MS}} ms, INP {{INP_MS}} ms, CLS {{CLS}} at the 75th percentile of real page loads, {{JS_KB}} KB of JavaScript per route; WCAG 2.2 AA. Dependency updates: as decided in the Dependency hygiene pack. htmx and Alpine.js are pinned dependencies updated like any other; the runtime and framework that render the pages, and their support lifecycle, are decided in the Backend stack pack. Choose it while interactions are forms, tables, filters and dialogs; supersede it when screens need rich client state (offline, drag-and-drop editors, real-time collaboration).",
725
+ "consequences": "• Very little JavaScript, no client-side state to keep in sync, one codebase and one team for front and back end.\n• Fast first loads; every interaction is a request, so latency to the server sets how responsive it feels.\n• Rich client-side interaction is awkward and grows into hand-written JavaScript.\n• Fewer ready-made components; the design system is built as template partials.",
726
+ "alternatives": "1. A single-page app framework (React, Angular, Vue, Svelte): rich interaction, much more JavaScript and a second codebase.\n2. Hotwire (Turbo and Stimulus) or Phoenix LiveView: the same idea tied to Rails or Elixir.\n3. Plain server-rendered pages without htmx: simplest, full reloads.",
727
+ "hubWhen": {
728
+ "FRAMEWORK": [
729
+ "htmx"
730
+ ]
731
+ }
732
+ },
733
+ {
734
+ "id": "ff-one-framework-react",
735
+ "type": "fitness-fn",
736
+ "label": "Only React",
737
+ "x": 1040,
738
+ "y": 0,
739
+ "characteristic": "maintainability",
740
+ "scope": "atomic",
741
+ "cadence": "triggered",
742
+ "trigger": "pull-request",
743
+ "invocation": "automated",
744
+ "description": "A job in every build reads the dependencies and devDependencies of every package.json in the repository and fails when one names another UI framework's package; a second framework then arrives only with the decision record that allows it and a change to this check. Runs on Linux (git, jq, GNU xargs and grep).\n\nThreshold: 0 package.json files in the repository declare @angular/core, vue, nuxt, svelte, @sveltejs/kit\n\nTool: git with jq and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# fails when a package.json anywhere in the repository declares another UI framework\nset -euo pipefail\nother=$(git ls-files -- '*package.json' | xargs -r jq -r '((.dependencies // {}) + (.devDependencies // {})) | keys[]' \\\n | grep -xE '@angular\\/core|vue|nuxt|svelte|@sveltejs\\/kit' || true)\n[ -z \"$other\" ] || { echo \"::error::another UI framework is declared: $(tr '\\n' ' ' <<<\"$other\")(ADR Built with React)\"; exit 1; }\n```",
745
+ "hubWhen": {
746
+ "FRAMEWORK": [
747
+ "react"
748
+ ]
749
+ }
750
+ },
751
+ {
752
+ "id": "ff-one-framework-angular",
753
+ "type": "fitness-fn",
754
+ "label": "Only Angular",
755
+ "x": 1040,
756
+ "y": 130,
757
+ "characteristic": "maintainability",
758
+ "scope": "atomic",
759
+ "cadence": "triggered",
760
+ "trigger": "pull-request",
761
+ "invocation": "automated",
762
+ "description": "A job in every build reads the dependencies and devDependencies of every package.json in the repository and fails when one names another UI framework's package; a second framework then arrives only with the decision record that allows it and a change to this check. Runs on Linux (git, jq, GNU xargs and grep).\n\nThreshold: 0 package.json files in the repository declare react, react-dom, next, vue, nuxt, svelte, @sveltejs/kit\n\nTool: git with jq and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# fails when a package.json anywhere in the repository declares another UI framework\nset -euo pipefail\nother=$(git ls-files -- '*package.json' | xargs -r jq -r '((.dependencies // {}) + (.devDependencies // {})) | keys[]' \\\n | grep -xE 'react|react-dom|next|vue|nuxt|svelte|@sveltejs\\/kit' || true)\n[ -z \"$other\" ] || { echo \"::error::another UI framework is declared: $(tr '\\n' ' ' <<<\"$other\")(ADR Built with Angular)\"; exit 1; }\n```",
763
+ "hubWhen": {
764
+ "FRAMEWORK": [
765
+ "angular"
766
+ ]
767
+ }
768
+ },
769
+ {
770
+ "id": "ff-one-framework-vue",
771
+ "type": "fitness-fn",
772
+ "label": "Only Vue",
773
+ "x": 1040,
774
+ "y": 260,
775
+ "characteristic": "maintainability",
776
+ "scope": "atomic",
777
+ "cadence": "triggered",
778
+ "trigger": "pull-request",
779
+ "invocation": "automated",
780
+ "description": "A job in every build reads the dependencies and devDependencies of every package.json in the repository and fails when one names another UI framework's package; a second framework then arrives only with the decision record that allows it and a change to this check. Runs on Linux (git, jq, GNU xargs and grep).\n\nThreshold: 0 package.json files in the repository declare react, react-dom, next, @angular/core, svelte, @sveltejs/kit\n\nTool: git with jq and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# fails when a package.json anywhere in the repository declares another UI framework\nset -euo pipefail\nother=$(git ls-files -- '*package.json' | xargs -r jq -r '((.dependencies // {}) + (.devDependencies // {})) | keys[]' \\\n | grep -xE 'react|react-dom|next|@angular\\/core|svelte|@sveltejs\\/kit' || true)\n[ -z \"$other\" ] || { echo \"::error::another UI framework is declared: $(tr '\\n' ' ' <<<\"$other\")(ADR Built with Vue)\"; exit 1; }\n```",
781
+ "hubWhen": {
782
+ "FRAMEWORK": [
783
+ "vue"
784
+ ]
785
+ }
786
+ },
787
+ {
788
+ "id": "ff-one-framework-svelte",
789
+ "type": "fitness-fn",
790
+ "label": "Only Svelte",
791
+ "x": 1040,
792
+ "y": 390,
793
+ "characteristic": "maintainability",
794
+ "scope": "atomic",
795
+ "cadence": "triggered",
796
+ "trigger": "pull-request",
797
+ "invocation": "automated",
798
+ "description": "A job in every build reads the dependencies and devDependencies of every package.json in the repository and fails when one names another UI framework's package; a second framework then arrives only with the decision record that allows it and a change to this check. Runs on Linux (git, jq, GNU xargs and grep).\n\nThreshold: 0 package.json files in the repository declare react, react-dom, next, @angular/core, vue, nuxt\n\nTool: git with jq and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# fails when a package.json anywhere in the repository declares another UI framework\nset -euo pipefail\nother=$(git ls-files -- '*package.json' | xargs -r jq -r '((.dependencies // {}) + (.devDependencies // {})) | keys[]' \\\n | grep -xE 'react|react-dom|next|@angular\\/core|vue|nuxt' || true)\n[ -z \"$other\" ] || { echo \"::error::another UI framework is declared: $(tr '\\n' ' ' <<<\"$other\")(ADR Built with Svelte)\"; exit 1; }\n```",
799
+ "hubWhen": {
800
+ "FRAMEWORK": [
801
+ "svelte"
802
+ ]
803
+ }
804
+ },
805
+ {
806
+ "id": "ff-one-framework-htmx",
807
+ "type": "fitness-fn",
808
+ "label": "Only htmx",
809
+ "x": 1040,
810
+ "y": 520,
811
+ "characteristic": "maintainability",
812
+ "scope": "atomic",
813
+ "cadence": "triggered",
814
+ "trigger": "pull-request",
815
+ "invocation": "automated",
816
+ "description": "A job in every build reads the dependencies and devDependencies of every package.json in the repository and fails when one names another UI framework's package; a second framework then arrives only with the decision record that allows it and a change to this check. Runs on Linux (git, jq, GNU xargs and grep).\n\nThreshold: 0 package.json files in the repository declare react, react-dom, next, @angular/core, vue, nuxt, svelte, @sveltejs/kit\n\nTool: git with jq and grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# fails when a package.json anywhere in the repository declares another UI framework\nset -euo pipefail\nother=$(git ls-files -- '*package.json' | xargs -r jq -r '((.dependencies // {}) + (.devDependencies // {})) | keys[]' \\\n | grep -xE 'react|react-dom|next|@angular\\/core|vue|nuxt|svelte|@sveltejs\\/kit' || true)\n[ -z \"$other\" ] || { echo \"::error::another UI framework is declared: $(tr '\\n' ' ' <<<\"$other\")(ADR Built with htmx)\"; exit 1; }\n```",
817
+ "hubWhen": {
818
+ "FRAMEWORK": [
819
+ "htmx"
820
+ ]
821
+ }
822
+ },
823
+ {
824
+ "id": "ff-lighthouse",
825
+ "type": "fitness-fn",
826
+ "label": "Lab budget holds",
827
+ "x": 1040,
828
+ "y": 650,
829
+ "characteristic": "performance-efficiency",
830
+ "scope": "atomic",
831
+ "cadence": "triggered",
832
+ "trigger": "pull-request",
833
+ "invocation": "automated",
834
+ "description": "Lighthouse CI starts the preview build, runs three times per main page on its mobile profile and asserts the budget; the median run counts. The script size is the transfer size of every script the page loads, whatever the framework's output paths. INP needs real interactions, so it is checked in the field (see Field vitals). Pages behind sign-in need a puppeteerScript that signs in before the runs.\n\nThreshold: On every pull request, for each main page: script transfer size at most {{JS_KB}} KB, LCP within {{LCP_MS}} ms, CLS at most {{CLS}}, Total Blocking Time within 200 ms (the lab stand-in for INP), accessibility score at least 0.95\n\nTool: Lighthouse CI\n\n```js\n// lighthouserc.cjs\nmodule.exports = {\n ci: {\n collect: {\n startServerCommand: 'npm run preview',\n url: ['http://localhost:4173/', 'http://localhost:4173/search'],\n numberOfRuns: 3,\n // puppeteerScript: './lighthouse-login.cjs', // signs in first, for pages behind sign-in\n },\n assert: {\n assertions: {\n 'resource-summary:script:size': ['error', { maxNumericValue: {{JS_KB}} * 1024, aggregationMethod: 'median' }],\n 'largest-contentful-paint': ['error', { maxNumericValue: {{LCP_MS}}, aggregationMethod: 'median' }],\n 'cumulative-layout-shift': ['error', { maxNumericValue: {{CLS}}, aggregationMethod: 'median' }],\n 'total-blocking-time': ['error', { maxNumericValue: 200, aggregationMethod: 'median' }],\n 'categories:accessibility': ['error', { minScore: 0.95 }],\n },\n },\n upload: { target: 'temporary-public-storage' },\n },\n}\n```"
835
+ },
836
+ {
837
+ "id": "ff-field-vitals",
838
+ "type": "fitness-fn",
839
+ "label": "Field vitals within budget",
840
+ "x": 1040,
841
+ "y": 780,
842
+ "characteristic": "performance-efficiency",
843
+ "scope": "holistic",
844
+ "cadence": "triggered",
845
+ "trigger": "nightly",
846
+ "invocation": "automated",
847
+ "description": "The page reports LCP, INP and CLS from real users with the web-vitals library (navigator.sendBeacon to /rum, which stores name, value and page group in rum_events). A daily job runs the query below, which computes the 75th percentile per metric and page group over the last 28 days and returns every row over budget; any row fails the job and alerts the team.\n\nThreshold: 75th percentile over 28 days per page group: LCP within {{LCP_MS}} ms, INP within {{INP_MS}} ms, CLS at most {{CLS}}; the daily query returns 0 rows\n\nTool: web-vitals (Google Chrome) in the page; a scheduled SQL query over the RUM table (PostgreSQL syntax)\n\n```sql\n-- rum_events(name text, value numeric, page_group text, received_at timestamptz); run daily, alert on any row\nWITH p75 AS (\n SELECT name, page_group, percentile_cont(0.75) WITHIN GROUP (ORDER BY value) AS p75\n FROM rum_events\n WHERE received_at > now() - interval '28 days'\n GROUP BY name, page_group\n)\nSELECT name, page_group, p75\nFROM p75\nWHERE (name = 'LCP' AND p75 > {{LCP_MS}})\n OR (name = 'INP' AND p75 > {{INP_MS}})\n OR (name = 'CLS' AND p75 > {{CLS}})\nORDER BY name, page_group;\n```"
848
+ },
849
+ {
850
+ "id": "ff-axe",
851
+ "type": "fitness-fn",
852
+ "label": "No accessibility violations",
853
+ "x": 1040,
854
+ "y": 910,
855
+ "characteristic": "interaction-capability",
856
+ "scope": "atomic",
857
+ "cadence": "triggered",
858
+ "trigger": "pull-request",
859
+ "invocation": "automated",
860
+ "description": "A Playwright test opens each page of the main journeys, including open dialogs and error states, and runs axe-core with the WCAG A and AA tags; any serious or critical violation fails it.\n\nThreshold: 0 serious or critical axe violations against the WCAG 2.0 and 2.1 A and AA rules and the 2.2 AA rules on every page of the main journeys\n\nTool: axe-core with Playwright (@axe-core/playwright)\n\n```ts\nimport AxeBuilder from '@axe-core/playwright'\nimport { expect, test } from '@playwright/test'\n\nfor (const path of ['/', '/search', '/checkout']) {\n test(`${path} meets WCAG 2.2 AA`, async ({ page }) => {\n await page.goto(path)\n const { violations } = await new AxeBuilder({ page })\n .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'])\n .analyze()\n expect(violations.filter((v) => v.impact === 'serious' || v.impact === 'critical')).toEqual([])\n })\n}\n```"
861
+ },
862
+ {
863
+ "id": "ff-keyboard",
864
+ "type": "fitness-fn",
865
+ "label": "Main journey by keyboard",
866
+ "x": 1040,
867
+ "y": 1040,
868
+ "characteristic": "interaction-capability",
869
+ "scope": "atomic",
870
+ "cadence": "triggered",
871
+ "trigger": "pull-request",
872
+ "invocation": "automated",
873
+ "description": "A Playwright test walks the main journey without the mouse: it tabs to each control by its accessible name, activates it with Enter or Space, and asserts the focused element is visible after every move; a control that cannot be reached within 200 tabs fails the test.\n\nThreshold: The main journey completes with Tab, Shift+Tab, Enter, Space and the arrow keys only, and focus is visible at every step\n\nTool: Playwright\n\n```ts\nimport { expect, test, type Page } from '@playwright/test'\n\nasync function tabTo(page: Page, name: string): Promise<void> {\n for (let i = 0; i < 200; i++) {\n const focused = page.locator(':focus')\n if ((await focused.count()) && (await focused.textContent())?.includes(name)) { await expect(focused).toBeVisible(); return }\n await page.keyboard.press('Tab')\n }\n throw new Error(`${name} cannot be reached with Tab`)\n}\n\ntest('checkout completes with the keyboard alone', async ({ page }) => {\n await page.goto('/')\n for (const step of ['Search', 'Add to basket', 'Checkout', 'Place order']) {\n await tabTo(page, step)\n await page.keyboard.press('Enter')\n }\n await expect(page.getByRole('heading', { name: 'Order placed' })).toBeVisible()\n})\n```"
874
+ },
875
+ {
876
+ "id": "ff-compat",
877
+ "type": "fitness-fn",
878
+ "label": "Features match browser list",
879
+ "x": 1040,
880
+ "y": 1170,
881
+ "characteristic": "compatibility",
882
+ "scope": "atomic",
883
+ "cadence": "triggered",
884
+ "trigger": "pull-request",
885
+ "invocation": "automated",
886
+ "description": "The browser list lives in package.json and drives the build's transpilation; eslint-plugin-compat fails on a web API one of the listed browsers lacks. Playwright runs the journeys in Chromium, Firefox and WebKit.\n\nThreshold: 0 uses of web features missing from a browser on the list without a configured polyfill\n\nTool: browserslist with eslint-plugin-compat\n\n```js\n// package.json: \"browserslist\" holds the query of the policy, e.g.\n// modern: [\"last 2 Chrome versions\", \"last 2 Edge versions\", \"last 2 Firefox versions\", \"last 2 Safari major versions\"]\n// defaults: [\"defaults\"]\n// extended: [\"> 0.2%\", \"last 3 versions\", \"Firefox ESR\", \"iOS >= 15\", \"not dead\"]\n// eslint.config.mjs\nimport compat from 'eslint-plugin-compat'\nexport default [\n compat.configs['flat/recommended'],\n { settings: { polyfills: ['fetch', 'Promise'] } }, // what the build polyfills\n]\n```"
887
+ },
888
+ {
889
+ "id": "ff-eol",
890
+ "type": "fitness-fn",
891
+ "label": "Framework still supported",
892
+ "x": 1040,
893
+ "y": 1300,
894
+ "characteristic": "maintainability",
895
+ "scope": "atomic",
896
+ "cadence": "triggered",
897
+ "trigger": "nightly",
898
+ "invocation": "automated",
899
+ "description": "A scheduled job and every build look up each product and cycle listed in versions.txt on endoflife.date (angular, nextjs, nuxt, vue, svelte, nodejs for the build) and fail when end of support is less than {{EOL_DAYS}} days away; versions.txt changes in the same pull request as package.json. The same script serves the Backend stack pack. Runs on Linux (GNU date).\n\nThreshold: 0 framework or build-tool majors within {{EOL_DAYS}} days of their end of support\n\nTool: endoflife.date API (curl and jq)\n\n```bash\n#!/usr/bin/env bash\n# versions.txt: \"<endoflife.date product> <cycle>\", e.g. \"angular 20\", \"nodejs 24\"\nset -euo pipefail\nLIMIT=$(( $(date +%s) + {{EOL_DAYS}} * 86400 ))\nfail=0\nwhile read -r product cycle; do\n eol=$(curl -fsS \"https://endoflife.date/api/${product}/${cycle}.json\" | jq -r '.eol')\n [ \"$eol\" = \"false\" ] && continue\n if [ \"$eol\" = \"true\" ] || [ \"$(date -d \"$eol\" +%s)\" -lt \"$LIMIT\" ]; then\n echo \"::error::$product $cycle reaches end of support on $eol\"; fail=1\n fi\ndone < versions.txt\nexit $fail\n```",
900
+ "hubWhen": {
901
+ "FRAMEWORK": [
902
+ "react",
903
+ "angular",
904
+ "vue",
905
+ "svelte"
906
+ ]
907
+ }
908
+ },
909
+ {
910
+ "id": "ff-cache-headers",
911
+ "type": "fitness-fn",
912
+ "label": "Cache headers right",
913
+ "x": 1040,
914
+ "y": 1430,
915
+ "characteristic": "performance-efficiency",
916
+ "scope": "atomic",
917
+ "cadence": "triggered",
918
+ "trigger": "deploy",
919
+ "invocation": "automated",
920
+ "description": "After each deploy a check fetches the HTML, takes every script src and stylesheet href from it (absolute, root-relative or relative, whatever the framework emits) and verifies the Cache-Control header of each; a page that references no script or stylesheet fails too, so an empty loop cannot pass.\n\nThreshold: 100% of the scripts and stylesheets the HTML references are served with max-age=31536000, immutable; the HTML with no-cache\n\nTool: curl (post-deploy check)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nhtml=$(curl -fsSI \"$BASE_URL/\" | tr -d '\\r' | grep -i '^cache-control' || true)\ngrep -qi 'no-cache' <<<\"$html\" || { echo \"index.html: ${html:-no cache-control}\"; exit 1; }\nassets=$(curl -fsS \"$BASE_URL/\" | grep -oE '(src|href)=\"[^\"]+\\.(js|css)(\\?[^\"]*)?\"' | sed -E 's/^[a-z]+=\"//; s/\"$//')\n[ -n \"$assets\" ] || { echo \"no script or stylesheet referenced by $BASE_URL/\"; exit 1; }\nfor asset in $assets; do\n case \"$asset\" in http*) url=$asset ;; /*) url=\"$BASE_URL$asset\" ;; *) url=\"$BASE_URL/$asset\" ;; esac\n cc=$(curl -fsSI \"$url\" | tr -d '\\r' | grep -i '^cache-control' || true)\n grep -qi 'max-age=31536000' <<<\"$cc\" && grep -qi 'immutable' <<<\"$cc\" || { echo \"$url: ${cc:-no cache-control}\"; exit 1; }\ndone\n```",
921
+ "hubWhen": {
922
+ "RENDERING": [
923
+ "spa"
924
+ ],
925
+ "FRAMEWORK": [
926
+ "react",
927
+ "angular",
928
+ "vue",
929
+ "svelte"
930
+ ]
931
+ }
932
+ },
933
+ {
934
+ "id": "ff-ttfb",
935
+ "type": "fitness-fn",
936
+ "label": "Server answers quickly",
937
+ "x": 1040,
938
+ "y": 1560,
939
+ "characteristic": "performance-efficiency",
940
+ "scope": "holistic",
941
+ "cadence": "triggered",
942
+ "trigger": "release",
943
+ "invocation": "automated",
944
+ "description": "A k6 test requests the main server-rendered pages at the peak rate (PEAK_RPS from the Capacity and scaling pack's decision, passed in the environment) and checks the time to first byte (http_req_waiting) and that the HTML holds the main content.\n\nThreshold: Time to First Byte within 800 ms at the 75th percentile at the peak rate decided in the Capacity and scaling pack, with the main content in the HTML\n\nTool: Grafana k6\n\n```js\nimport http from 'k6/http'\nimport { check } from 'k6'\n\nexport const options = {\n scenarios: {\n peak: { executor: 'constant-arrival-rate', rate: Number(__ENV.PEAK_RPS), timeUnit: '1s', duration: '5m', preAllocatedVUs: 50, maxVUs: Number(__ENV.PEAK_RPS) },\n },\n thresholds: { http_req_waiting: ['p(75)<800'], http_req_failed: ['rate<0.01'] },\n}\n\nexport default function () {\n const res = http.get(`${__ENV.BASE_URL}/products`)\n check(res, { 'content rendered on the server': (r) => r.body.includes('data-testid=\"product-list\"') })\n}\n```",
945
+ "hubWhen": {
946
+ "RENDERING": [
947
+ "ssr"
948
+ ]
949
+ }
950
+ },
951
+ {
952
+ "id": "ff-static-served",
953
+ "type": "fitness-fn",
954
+ "label": "Pages served from the edge",
955
+ "x": 1040,
956
+ "y": 1690,
957
+ "characteristic": "performance-efficiency",
958
+ "scope": "atomic",
959
+ "cadence": "triggered",
960
+ "trigger": "deploy",
961
+ "invocation": "automated",
962
+ "description": "After each publish a check requests every page in the sitemap twice and reads the CDN's cache header of the second response (x-cache for CloudFront, cf-cache-status for Cloudflare, x-vercel-cache for Vercel, cache-status for others); a page not served from the cache fails. It then reads the duration of the last successful publish workflow run. Runs on Linux (GNU date).\n\nThreshold: 100% of the pages in the sitemap answer from the CDN cache on the second request; the last publish run took at most 15 minutes from trigger to completion\n\nTool: curl with the GitHub CLI (post-deploy check)\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail\nfail=0\nfor url in $(curl -fsS \"$BASE_URL/sitemap.xml\" | grep -oE '<loc>[^<]+</loc>' | sed -E 's#</?loc>##g'); do\n curl -fsS -o /dev/null \"$url\" # warms the edge\n hit=$(curl -fsSI \"$url\" | tr -d '\\r' | grep -iE '^(x-cache|cf-cache-status|x-vercel-cache|cache-status):' || true)\n grep -qi 'hit' <<<\"$hit\" || { echo \"$url: not served from the CDN cache (${hit:-no cache header})\"; fail=1; }\ndone\nrun=$(gh run list --workflow publish.yml --status success --limit 1 --json createdAt,updatedAt -q '.[0]')\ntook=$(( $(date -d \"$(jq -r .updatedAt <<<\"$run\")\" +%s) - $(date -d \"$(jq -r .createdAt <<<\"$run\")\" +%s) ))\n[ \"$took\" -le 900 ] || { echo \"last publish took $((took / 60)) min (15 allowed)\"; fail=1; }\nexit $fail\n```",
963
+ "hubWhen": {
964
+ "RENDERING": [
965
+ "static"
966
+ ],
967
+ "FRAMEWORK": [
968
+ "react",
969
+ "angular",
970
+ "vue",
971
+ "svelte"
972
+ ]
973
+ }
974
+ },
975
+ {
976
+ "id": "ff-tokens",
977
+ "type": "fitness-fn",
978
+ "label": "Only design tokens",
979
+ "x": 1040,
980
+ "y": 1820,
981
+ "characteristic": "maintainability",
982
+ "scope": "atomic",
983
+ "cadence": "triggered",
984
+ "trigger": "pull-request",
985
+ "invocation": "automated",
986
+ "description": "Stylelint requires design-token variables for colour, font size and spacing properties; the token files themselves are exempt.\n\nThreshold: 0 hard-coded colours, font sizes or spacing in stylesheets outside the token files\n\nTool: Stylelint (stylelint-declaration-strict-value)\n\n```json\n{\n \"plugins\": [\"stylelint-declaration-strict-value\"],\n \"rules\": {\n \"color-no-hex\": true,\n \"scale-unlimited/declaration-strict-value\": [\n [\"/color$/\", \"font-size\", \"/^(margin|padding|gap)/\"],\n { \"ignoreValues\": [\"inherit\", \"transparent\", \"currentColor\", \"0\", \"auto\"] }\n ]\n },\n \"ignoreFiles\": [\"src/tokens/**\"]\n}\n```",
987
+ "hubWhen": {
988
+ "DESIGN": [
989
+ "own"
990
+ ]
991
+ }
992
+ },
993
+ {
994
+ "id": "ff-no-overrides",
995
+ "type": "fitness-fn",
996
+ "label": "No library internals styled",
997
+ "x": 1040,
998
+ "y": 1950,
999
+ "characteristic": "maintainability",
1000
+ "scope": "atomic",
1001
+ "cadence": "triggered",
1002
+ "trigger": "pull-request",
1003
+ "invocation": "automated",
1004
+ "description": "Stylelint refuses selectors with the library's internal class prefixes, so styling goes through the theme. Adjust the patterns to the library used (MUI: .Mui, Angular Material: .mat-mdc / .mdc-, PrimeNG: .p-, Bootstrap with htmx: its component classes stay, only its internal state classes are listed).\n\nThreshold: 0 selectors targeting the component library's internal class names\n\nTool: Stylelint (selector-disallowed-list)\n\n```json\n{\n \"rules\": {\n \"selector-disallowed-list\": [\n [\"/\\\\.Mui[A-Z]/\", \"/\\\\.mat-mdc-/\", \"/\\\\.mdc-/\", \"/::ng-deep/\"],\n { \"message\": \"Style the component library through its theme (ADR Frontend stack)\" }\n ]\n }\n}\n```",
1005
+ "hubWhen": {
1006
+ "DESIGN": [
1007
+ "library"
1008
+ ]
1009
+ }
1010
+ },
1011
+ {
1012
+ "id": "ff-tailwind",
1013
+ "type": "fitness-fn",
1014
+ "label": "No arbitrary utility values",
1015
+ "x": 1040,
1016
+ "y": 2080,
1017
+ "characteristic": "maintainability",
1018
+ "scope": "atomic",
1019
+ "cadence": "triggered",
1020
+ "trigger": "pull-request",
1021
+ "invocation": "automated",
1022
+ "description": "The Tailwind ESLint plugin refuses arbitrary values in class names of JS, TS, JSX, Vue and Svelte files, so colours, spacing and type sizes come from the theme's tokens. Pin the plugin to the Tailwind major: eslint-plugin-tailwindcss 4.x for Tailwind CSS 4 (what shadcn/ui targets), 3.x for Tailwind CSS 3.\n\nThreshold: 0 arbitrary values (such as bg-[#1da1f2]) in class names of components\n\nTool: ESLint (eslint-plugin-tailwindcss)\n\n```js\n// eslint.config.mjs\nimport tailwind from 'eslint-plugin-tailwindcss'\nexport default [\n ...tailwind.configs['flat/recommended'],\n { rules: { 'tailwindcss/no-arbitrary-value': 'error', 'tailwindcss/no-custom-classname': 'warn' } },\n]\n```",
1023
+ "hubWhen": {
1024
+ "DESIGN": [
1025
+ "utility"
1026
+ ],
1027
+ "FRAMEWORK": [
1028
+ "react",
1029
+ "angular",
1030
+ "vue",
1031
+ "svelte"
1032
+ ]
1033
+ }
1034
+ },
1035
+ {
1036
+ "id": "ff-tailwind-templates",
1037
+ "type": "fitness-fn",
1038
+ "label": "No arbitrary utility values in templates",
1039
+ "x": 1040,
1040
+ "y": 2210,
1041
+ "characteristic": "maintainability",
1042
+ "scope": "atomic",
1043
+ "cadence": "triggered",
1044
+ "trigger": "pull-request",
1045
+ "invocation": "automated",
1046
+ "description": "ESLint never sees server templates, so a grep over the template files fails the build on a utility class with a bracketed arbitrary value; colours, spacing and type sizes come from the theme's tokens. Runs on Linux (GNU grep).\n\nThreshold: 0 arbitrary values (such as bg-[#1da1f2]) in class attributes of server templates\n\nTool: grep (CI job)\n\n```bash\n#!/usr/bin/env bash\n# fails on an arbitrary value (bg-[#1da1f2], w-[13px]) in a class attribute of a server template\nset -euo pipefail\nhits=$(grep -rnE 'class=\"[^\"]*[a-z0-9:-]+-\\[[^]]+\\]' \\\n --include='*.html' --include='*.jinja' --include='*.j2' --include='*.cshtml' --include='*.templ' templates/ src/ 2>/dev/null || true)\n[ -z \"$hits\" ] || { echo \"$hits\"; echo \"arbitrary utility values: take colours, spacing and sizes from the theme (ADR Frontend stack)\"; exit 1; }\n```",
1047
+ "hubWhen": {
1048
+ "DESIGN": [
1049
+ "utility"
1050
+ ],
1051
+ "FRAMEWORK": [
1052
+ "htmx"
1053
+ ]
1054
+ }
1055
+ },
1056
+ {
1057
+ "id": "ff-browser-notice",
1058
+ "type": "fitness-fn",
1059
+ "label": "Old browsers get the notice",
1060
+ "x": 1040,
1061
+ "y": 2340,
1062
+ "characteristic": "compatibility",
1063
+ "scope": "atomic",
1064
+ "cadence": "triggered",
1065
+ "trigger": "pull-request",
1066
+ "invocation": "automated",
1067
+ "description": "The page runs a small feature detection before the application (a plain script, so it runs in old browsers too) and renders the notice with the supported browsers when a feature every browser on the list has is missing. A unit test checks the detection both ways, so a change to the browser list is paired with a change to the detection.\n\nThreshold: The support detection returns false for a browser lacking a feature every listed browser has and true for a current one; the notice renders on false\n\nTool: Vitest\n\n```ts\nimport { describe, expect, it } from 'vitest'\nimport { isSupported, SUPPORTED } from '../src/browserSupport'\n// src/browserSupport.ts, loaded before the application as a plain script:\n// export const SUPPORTED = 'the last two versions of Chrome, Edge, Firefox and Safari'\n// export const isSupported = (w: Window) => typeof w.structuredClone === 'function' && typeof Array.prototype.at === 'function'\n\ndescribe('outdated browser notice', () => {\n it('a browser without a baseline feature is unsupported', () => {\n expect(isSupported({ structuredClone: undefined } as unknown as Window)).toBe(false)\n })\n it('a current browser is supported', () => {\n expect(isSupported(globalThis as unknown as Window)).toBe(true)\n })\n it('the notice names the supported browsers', () => {\n expect(SUPPORTED).toMatch(/Chrome, Edge, Firefox and Safari/)\n })\n})\n```",
1068
+ "hubWhen": {
1069
+ "BROWSERS": [
1070
+ "modern"
1071
+ ]
1072
+ }
1073
+ }
1074
+ ],
1075
+ "relations": [
1076
+ {
1077
+ "id": "req-one-framework--derives--need",
1078
+ "sourceId": "req-one-framework",
1079
+ "targetId": "need",
1080
+ "relationType": "derives"
1081
+ },
1082
+ {
1083
+ "id": "req-vitals--derives--need",
1084
+ "sourceId": "req-vitals",
1085
+ "targetId": "need",
1086
+ "relationType": "derives"
1087
+ },
1088
+ {
1089
+ "id": "req-bundle--derives--need",
1090
+ "sourceId": "req-bundle",
1091
+ "targetId": "need",
1092
+ "relationType": "derives"
1093
+ },
1094
+ {
1095
+ "id": "req-a11y--derives--need",
1096
+ "sourceId": "req-a11y",
1097
+ "targetId": "need",
1098
+ "relationType": "derives"
1099
+ },
1100
+ {
1101
+ "id": "req-supported--derives--need",
1102
+ "sourceId": "req-supported",
1103
+ "targetId": "need",
1104
+ "relationType": "derives"
1105
+ },
1106
+ {
1107
+ "id": "req-spa-cache--derives--need",
1108
+ "sourceId": "req-spa-cache",
1109
+ "targetId": "need",
1110
+ "relationType": "derives"
1111
+ },
1112
+ {
1113
+ "id": "req-ssr--derives--need",
1114
+ "sourceId": "req-ssr",
1115
+ "targetId": "need",
1116
+ "relationType": "derives"
1117
+ },
1118
+ {
1119
+ "id": "req-static--derives--need",
1120
+ "sourceId": "req-static",
1121
+ "targetId": "need",
1122
+ "relationType": "derives"
1123
+ },
1124
+ {
1125
+ "id": "req-design-own--derives--need",
1126
+ "sourceId": "req-design-own",
1127
+ "targetId": "need",
1128
+ "relationType": "derives"
1129
+ },
1130
+ {
1131
+ "id": "req-design-library--derives--need",
1132
+ "sourceId": "req-design-library",
1133
+ "targetId": "need",
1134
+ "relationType": "derives"
1135
+ },
1136
+ {
1137
+ "id": "req-design-utility--derives--need",
1138
+ "sourceId": "req-design-utility",
1139
+ "targetId": "need",
1140
+ "relationType": "derives"
1141
+ },
1142
+ {
1143
+ "id": "req-browsers--derives--need",
1144
+ "sourceId": "req-browsers",
1145
+ "targetId": "need",
1146
+ "relationType": "derives"
1147
+ },
1148
+ {
1149
+ "id": "req-unsupported--derives--need",
1150
+ "sourceId": "req-unsupported",
1151
+ "targetId": "need",
1152
+ "relationType": "derives"
1153
+ },
1154
+ {
1155
+ "id": "req-old-devices--derives--need",
1156
+ "sourceId": "req-old-devices",
1157
+ "targetId": "need",
1158
+ "relationType": "derives"
1159
+ },
1160
+ {
1161
+ "id": "sc-one-framework--verifies--req-one-framework",
1162
+ "sourceId": "sc-one-framework",
1163
+ "targetId": "req-one-framework",
1164
+ "relationType": "verifies"
1165
+ },
1166
+ {
1167
+ "id": "sc-vitals--verifies--req-vitals",
1168
+ "sourceId": "sc-vitals",
1169
+ "targetId": "req-vitals",
1170
+ "relationType": "verifies"
1171
+ },
1172
+ {
1173
+ "id": "sc-bundle--verifies--req-bundle",
1174
+ "sourceId": "sc-bundle",
1175
+ "targetId": "req-bundle",
1176
+ "relationType": "verifies"
1177
+ },
1178
+ {
1179
+ "id": "sc-a11y--verifies--req-a11y",
1180
+ "sourceId": "sc-a11y",
1181
+ "targetId": "req-a11y",
1182
+ "relationType": "verifies"
1183
+ },
1184
+ {
1185
+ "id": "sc-supported--verifies--req-supported",
1186
+ "sourceId": "sc-supported",
1187
+ "targetId": "req-supported",
1188
+ "relationType": "verifies"
1189
+ },
1190
+ {
1191
+ "id": "sc-spa-cache--verifies--req-spa-cache",
1192
+ "sourceId": "sc-spa-cache",
1193
+ "targetId": "req-spa-cache",
1194
+ "relationType": "verifies"
1195
+ },
1196
+ {
1197
+ "id": "sc-ssr--verifies--req-ssr",
1198
+ "sourceId": "sc-ssr",
1199
+ "targetId": "req-ssr",
1200
+ "relationType": "verifies"
1201
+ },
1202
+ {
1203
+ "id": "sc-static--verifies--req-static",
1204
+ "sourceId": "sc-static",
1205
+ "targetId": "req-static",
1206
+ "relationType": "verifies"
1207
+ },
1208
+ {
1209
+ "id": "sc-design-own--verifies--req-design-own",
1210
+ "sourceId": "sc-design-own",
1211
+ "targetId": "req-design-own",
1212
+ "relationType": "verifies"
1213
+ },
1214
+ {
1215
+ "id": "sc-design-library--verifies--req-design-library",
1216
+ "sourceId": "sc-design-library",
1217
+ "targetId": "req-design-library",
1218
+ "relationType": "verifies"
1219
+ },
1220
+ {
1221
+ "id": "sc-design-utility--verifies--req-design-utility",
1222
+ "sourceId": "sc-design-utility",
1223
+ "targetId": "req-design-utility",
1224
+ "relationType": "verifies"
1225
+ },
1226
+ {
1227
+ "id": "sc-browsers--verifies--req-browsers",
1228
+ "sourceId": "sc-browsers",
1229
+ "targetId": "req-browsers",
1230
+ "relationType": "verifies"
1231
+ },
1232
+ {
1233
+ "id": "sc-unsupported--verifies--req-unsupported",
1234
+ "sourceId": "sc-unsupported",
1235
+ "targetId": "req-unsupported",
1236
+ "relationType": "verifies"
1237
+ },
1238
+ {
1239
+ "id": "sc-old-devices--verifies--req-old-devices",
1240
+ "sourceId": "sc-old-devices",
1241
+ "targetId": "req-old-devices",
1242
+ "relationType": "verifies"
1243
+ },
1244
+ {
1245
+ "id": "ff-one-framework-react--implements--adr-react",
1246
+ "sourceId": "ff-one-framework-react",
1247
+ "targetId": "adr-react",
1248
+ "relationType": "implements"
1249
+ },
1250
+ {
1251
+ "id": "ff-one-framework-angular--implements--adr-angular",
1252
+ "sourceId": "ff-one-framework-angular",
1253
+ "targetId": "adr-angular",
1254
+ "relationType": "implements"
1255
+ },
1256
+ {
1257
+ "id": "ff-one-framework-vue--implements--adr-vue",
1258
+ "sourceId": "ff-one-framework-vue",
1259
+ "targetId": "adr-vue",
1260
+ "relationType": "implements"
1261
+ },
1262
+ {
1263
+ "id": "ff-one-framework-svelte--implements--adr-svelte",
1264
+ "sourceId": "ff-one-framework-svelte",
1265
+ "targetId": "adr-svelte",
1266
+ "relationType": "implements"
1267
+ },
1268
+ {
1269
+ "id": "ff-one-framework-htmx--implements--adr-htmx",
1270
+ "sourceId": "ff-one-framework-htmx",
1271
+ "targetId": "adr-htmx",
1272
+ "relationType": "implements"
1273
+ },
1274
+ {
1275
+ "id": "ff-lighthouse--implements--adr-react",
1276
+ "sourceId": "ff-lighthouse",
1277
+ "targetId": "adr-react",
1278
+ "relationType": "implements"
1279
+ },
1280
+ {
1281
+ "id": "ff-lighthouse--implements--adr-angular",
1282
+ "sourceId": "ff-lighthouse",
1283
+ "targetId": "adr-angular",
1284
+ "relationType": "implements"
1285
+ },
1286
+ {
1287
+ "id": "ff-lighthouse--implements--adr-vue",
1288
+ "sourceId": "ff-lighthouse",
1289
+ "targetId": "adr-vue",
1290
+ "relationType": "implements"
1291
+ },
1292
+ {
1293
+ "id": "ff-lighthouse--implements--adr-svelte",
1294
+ "sourceId": "ff-lighthouse",
1295
+ "targetId": "adr-svelte",
1296
+ "relationType": "implements"
1297
+ },
1298
+ {
1299
+ "id": "ff-lighthouse--implements--adr-htmx",
1300
+ "sourceId": "ff-lighthouse",
1301
+ "targetId": "adr-htmx",
1302
+ "relationType": "implements"
1303
+ },
1304
+ {
1305
+ "id": "ff-field-vitals--implements--adr-react",
1306
+ "sourceId": "ff-field-vitals",
1307
+ "targetId": "adr-react",
1308
+ "relationType": "implements"
1309
+ },
1310
+ {
1311
+ "id": "ff-field-vitals--implements--adr-angular",
1312
+ "sourceId": "ff-field-vitals",
1313
+ "targetId": "adr-angular",
1314
+ "relationType": "implements"
1315
+ },
1316
+ {
1317
+ "id": "ff-field-vitals--implements--adr-vue",
1318
+ "sourceId": "ff-field-vitals",
1319
+ "targetId": "adr-vue",
1320
+ "relationType": "implements"
1321
+ },
1322
+ {
1323
+ "id": "ff-field-vitals--implements--adr-svelte",
1324
+ "sourceId": "ff-field-vitals",
1325
+ "targetId": "adr-svelte",
1326
+ "relationType": "implements"
1327
+ },
1328
+ {
1329
+ "id": "ff-field-vitals--implements--adr-htmx",
1330
+ "sourceId": "ff-field-vitals",
1331
+ "targetId": "adr-htmx",
1332
+ "relationType": "implements"
1333
+ },
1334
+ {
1335
+ "id": "ff-axe--implements--adr-react",
1336
+ "sourceId": "ff-axe",
1337
+ "targetId": "adr-react",
1338
+ "relationType": "implements"
1339
+ },
1340
+ {
1341
+ "id": "ff-axe--implements--adr-angular",
1342
+ "sourceId": "ff-axe",
1343
+ "targetId": "adr-angular",
1344
+ "relationType": "implements"
1345
+ },
1346
+ {
1347
+ "id": "ff-axe--implements--adr-vue",
1348
+ "sourceId": "ff-axe",
1349
+ "targetId": "adr-vue",
1350
+ "relationType": "implements"
1351
+ },
1352
+ {
1353
+ "id": "ff-axe--implements--adr-svelte",
1354
+ "sourceId": "ff-axe",
1355
+ "targetId": "adr-svelte",
1356
+ "relationType": "implements"
1357
+ },
1358
+ {
1359
+ "id": "ff-axe--implements--adr-htmx",
1360
+ "sourceId": "ff-axe",
1361
+ "targetId": "adr-htmx",
1362
+ "relationType": "implements"
1363
+ },
1364
+ {
1365
+ "id": "ff-keyboard--implements--adr-react",
1366
+ "sourceId": "ff-keyboard",
1367
+ "targetId": "adr-react",
1368
+ "relationType": "implements"
1369
+ },
1370
+ {
1371
+ "id": "ff-keyboard--implements--adr-angular",
1372
+ "sourceId": "ff-keyboard",
1373
+ "targetId": "adr-angular",
1374
+ "relationType": "implements"
1375
+ },
1376
+ {
1377
+ "id": "ff-keyboard--implements--adr-vue",
1378
+ "sourceId": "ff-keyboard",
1379
+ "targetId": "adr-vue",
1380
+ "relationType": "implements"
1381
+ },
1382
+ {
1383
+ "id": "ff-keyboard--implements--adr-svelte",
1384
+ "sourceId": "ff-keyboard",
1385
+ "targetId": "adr-svelte",
1386
+ "relationType": "implements"
1387
+ },
1388
+ {
1389
+ "id": "ff-keyboard--implements--adr-htmx",
1390
+ "sourceId": "ff-keyboard",
1391
+ "targetId": "adr-htmx",
1392
+ "relationType": "implements"
1393
+ },
1394
+ {
1395
+ "id": "ff-compat--implements--adr-react",
1396
+ "sourceId": "ff-compat",
1397
+ "targetId": "adr-react",
1398
+ "relationType": "implements"
1399
+ },
1400
+ {
1401
+ "id": "ff-compat--implements--adr-angular",
1402
+ "sourceId": "ff-compat",
1403
+ "targetId": "adr-angular",
1404
+ "relationType": "implements"
1405
+ },
1406
+ {
1407
+ "id": "ff-compat--implements--adr-vue",
1408
+ "sourceId": "ff-compat",
1409
+ "targetId": "adr-vue",
1410
+ "relationType": "implements"
1411
+ },
1412
+ {
1413
+ "id": "ff-compat--implements--adr-svelte",
1414
+ "sourceId": "ff-compat",
1415
+ "targetId": "adr-svelte",
1416
+ "relationType": "implements"
1417
+ },
1418
+ {
1419
+ "id": "ff-compat--implements--adr-htmx",
1420
+ "sourceId": "ff-compat",
1421
+ "targetId": "adr-htmx",
1422
+ "relationType": "implements"
1423
+ },
1424
+ {
1425
+ "id": "ff-eol--implements--adr-react",
1426
+ "sourceId": "ff-eol",
1427
+ "targetId": "adr-react",
1428
+ "relationType": "implements"
1429
+ },
1430
+ {
1431
+ "id": "ff-eol--implements--adr-angular",
1432
+ "sourceId": "ff-eol",
1433
+ "targetId": "adr-angular",
1434
+ "relationType": "implements"
1435
+ },
1436
+ {
1437
+ "id": "ff-eol--implements--adr-vue",
1438
+ "sourceId": "ff-eol",
1439
+ "targetId": "adr-vue",
1440
+ "relationType": "implements"
1441
+ },
1442
+ {
1443
+ "id": "ff-eol--implements--adr-svelte",
1444
+ "sourceId": "ff-eol",
1445
+ "targetId": "adr-svelte",
1446
+ "relationType": "implements"
1447
+ },
1448
+ {
1449
+ "id": "ff-cache-headers--implements--adr-react",
1450
+ "sourceId": "ff-cache-headers",
1451
+ "targetId": "adr-react",
1452
+ "relationType": "implements"
1453
+ },
1454
+ {
1455
+ "id": "ff-cache-headers--implements--adr-angular",
1456
+ "sourceId": "ff-cache-headers",
1457
+ "targetId": "adr-angular",
1458
+ "relationType": "implements"
1459
+ },
1460
+ {
1461
+ "id": "ff-cache-headers--implements--adr-vue",
1462
+ "sourceId": "ff-cache-headers",
1463
+ "targetId": "adr-vue",
1464
+ "relationType": "implements"
1465
+ },
1466
+ {
1467
+ "id": "ff-cache-headers--implements--adr-svelte",
1468
+ "sourceId": "ff-cache-headers",
1469
+ "targetId": "adr-svelte",
1470
+ "relationType": "implements"
1471
+ },
1472
+ {
1473
+ "id": "ff-ttfb--implements--adr-react",
1474
+ "sourceId": "ff-ttfb",
1475
+ "targetId": "adr-react",
1476
+ "relationType": "implements"
1477
+ },
1478
+ {
1479
+ "id": "ff-ttfb--implements--adr-angular",
1480
+ "sourceId": "ff-ttfb",
1481
+ "targetId": "adr-angular",
1482
+ "relationType": "implements"
1483
+ },
1484
+ {
1485
+ "id": "ff-ttfb--implements--adr-vue",
1486
+ "sourceId": "ff-ttfb",
1487
+ "targetId": "adr-vue",
1488
+ "relationType": "implements"
1489
+ },
1490
+ {
1491
+ "id": "ff-ttfb--implements--adr-svelte",
1492
+ "sourceId": "ff-ttfb",
1493
+ "targetId": "adr-svelte",
1494
+ "relationType": "implements"
1495
+ },
1496
+ {
1497
+ "id": "ff-ttfb--implements--adr-htmx",
1498
+ "sourceId": "ff-ttfb",
1499
+ "targetId": "adr-htmx",
1500
+ "relationType": "implements"
1501
+ },
1502
+ {
1503
+ "id": "ff-static-served--implements--adr-react",
1504
+ "sourceId": "ff-static-served",
1505
+ "targetId": "adr-react",
1506
+ "relationType": "implements"
1507
+ },
1508
+ {
1509
+ "id": "ff-static-served--implements--adr-angular",
1510
+ "sourceId": "ff-static-served",
1511
+ "targetId": "adr-angular",
1512
+ "relationType": "implements"
1513
+ },
1514
+ {
1515
+ "id": "ff-static-served--implements--adr-vue",
1516
+ "sourceId": "ff-static-served",
1517
+ "targetId": "adr-vue",
1518
+ "relationType": "implements"
1519
+ },
1520
+ {
1521
+ "id": "ff-static-served--implements--adr-svelte",
1522
+ "sourceId": "ff-static-served",
1523
+ "targetId": "adr-svelte",
1524
+ "relationType": "implements"
1525
+ },
1526
+ {
1527
+ "id": "ff-tokens--implements--adr-react",
1528
+ "sourceId": "ff-tokens",
1529
+ "targetId": "adr-react",
1530
+ "relationType": "implements"
1531
+ },
1532
+ {
1533
+ "id": "ff-tokens--implements--adr-angular",
1534
+ "sourceId": "ff-tokens",
1535
+ "targetId": "adr-angular",
1536
+ "relationType": "implements"
1537
+ },
1538
+ {
1539
+ "id": "ff-tokens--implements--adr-vue",
1540
+ "sourceId": "ff-tokens",
1541
+ "targetId": "adr-vue",
1542
+ "relationType": "implements"
1543
+ },
1544
+ {
1545
+ "id": "ff-tokens--implements--adr-svelte",
1546
+ "sourceId": "ff-tokens",
1547
+ "targetId": "adr-svelte",
1548
+ "relationType": "implements"
1549
+ },
1550
+ {
1551
+ "id": "ff-tokens--implements--adr-htmx",
1552
+ "sourceId": "ff-tokens",
1553
+ "targetId": "adr-htmx",
1554
+ "relationType": "implements"
1555
+ },
1556
+ {
1557
+ "id": "ff-no-overrides--implements--adr-react",
1558
+ "sourceId": "ff-no-overrides",
1559
+ "targetId": "adr-react",
1560
+ "relationType": "implements"
1561
+ },
1562
+ {
1563
+ "id": "ff-no-overrides--implements--adr-angular",
1564
+ "sourceId": "ff-no-overrides",
1565
+ "targetId": "adr-angular",
1566
+ "relationType": "implements"
1567
+ },
1568
+ {
1569
+ "id": "ff-no-overrides--implements--adr-vue",
1570
+ "sourceId": "ff-no-overrides",
1571
+ "targetId": "adr-vue",
1572
+ "relationType": "implements"
1573
+ },
1574
+ {
1575
+ "id": "ff-no-overrides--implements--adr-svelte",
1576
+ "sourceId": "ff-no-overrides",
1577
+ "targetId": "adr-svelte",
1578
+ "relationType": "implements"
1579
+ },
1580
+ {
1581
+ "id": "ff-no-overrides--implements--adr-htmx",
1582
+ "sourceId": "ff-no-overrides",
1583
+ "targetId": "adr-htmx",
1584
+ "relationType": "implements"
1585
+ },
1586
+ {
1587
+ "id": "ff-tailwind--implements--adr-react",
1588
+ "sourceId": "ff-tailwind",
1589
+ "targetId": "adr-react",
1590
+ "relationType": "implements"
1591
+ },
1592
+ {
1593
+ "id": "ff-tailwind--implements--adr-angular",
1594
+ "sourceId": "ff-tailwind",
1595
+ "targetId": "adr-angular",
1596
+ "relationType": "implements"
1597
+ },
1598
+ {
1599
+ "id": "ff-tailwind--implements--adr-vue",
1600
+ "sourceId": "ff-tailwind",
1601
+ "targetId": "adr-vue",
1602
+ "relationType": "implements"
1603
+ },
1604
+ {
1605
+ "id": "ff-tailwind--implements--adr-svelte",
1606
+ "sourceId": "ff-tailwind",
1607
+ "targetId": "adr-svelte",
1608
+ "relationType": "implements"
1609
+ },
1610
+ {
1611
+ "id": "ff-tailwind-templates--implements--adr-htmx",
1612
+ "sourceId": "ff-tailwind-templates",
1613
+ "targetId": "adr-htmx",
1614
+ "relationType": "implements"
1615
+ },
1616
+ {
1617
+ "id": "ff-browser-notice--implements--adr-react",
1618
+ "sourceId": "ff-browser-notice",
1619
+ "targetId": "adr-react",
1620
+ "relationType": "implements"
1621
+ },
1622
+ {
1623
+ "id": "ff-browser-notice--implements--adr-angular",
1624
+ "sourceId": "ff-browser-notice",
1625
+ "targetId": "adr-angular",
1626
+ "relationType": "implements"
1627
+ },
1628
+ {
1629
+ "id": "ff-browser-notice--implements--adr-vue",
1630
+ "sourceId": "ff-browser-notice",
1631
+ "targetId": "adr-vue",
1632
+ "relationType": "implements"
1633
+ },
1634
+ {
1635
+ "id": "ff-browser-notice--implements--adr-svelte",
1636
+ "sourceId": "ff-browser-notice",
1637
+ "targetId": "adr-svelte",
1638
+ "relationType": "implements"
1639
+ },
1640
+ {
1641
+ "id": "ff-browser-notice--implements--adr-htmx",
1642
+ "sourceId": "ff-browser-notice",
1643
+ "targetId": "adr-htmx",
1644
+ "relationType": "implements"
1645
+ }
1646
+ ]
1647
+ }