@su-sws/synthetic-web-team 0.1.0

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 (82) hide show
  1. package/AGENTS.md +149 -0
  2. package/README.md +321 -0
  3. package/package.json +58 -0
  4. package/packages/cli/bin/sws.mjs +722 -0
  5. package/packages/cli/src/axe.mjs +164 -0
  6. package/packages/cli/src/browser.mjs +192 -0
  7. package/packages/cli/src/checks.mjs +1254 -0
  8. package/packages/cli/src/github.mjs +131 -0
  9. package/packages/cli/src/history.mjs +137 -0
  10. package/packages/cli/src/perf.mjs +245 -0
  11. package/packages/cli/src/preflight.mjs +185 -0
  12. package/packages/cli/src/report.mjs +315 -0
  13. package/packages/cli/src/states.mjs +556 -0
  14. package/packages/wizard/bin/wizard.mjs +767 -0
  15. package/packages/wizard/src/detect.mjs +135 -0
  16. package/packages/wizard/src/emit.mjs +553 -0
  17. package/skills/role-accessibility-lead/SKILL.md +183 -0
  18. package/skills/role-api-architect/SKILL.md +65 -0
  19. package/skills/role-backend-developer/SKILL.md +66 -0
  20. package/skills/role-compliance-officer/SKILL.md +73 -0
  21. package/skills/role-content-designer/SKILL.md +145 -0
  22. package/skills/role-devops/SKILL.md +200 -0
  23. package/skills/role-discoverability/SKILL.md +164 -0
  24. package/skills/role-frontend-developer/SKILL.md +167 -0
  25. package/skills/role-fullstack-developer/SKILL.md +56 -0
  26. package/skills/role-identity-engineer/SKILL.md +77 -0
  27. package/skills/role-information-architect/SKILL.md +136 -0
  28. package/skills/role-infrastructure-architect/SKILL.md +60 -0
  29. package/skills/role-qa-engineer/SKILL.md +81 -0
  30. package/skills/role-security-operations/SKILL.md +56 -0
  31. package/skills/role-software-architect/SKILL.md +75 -0
  32. package/skills/role-staff-technical-architect/SKILL.md +73 -0
  33. package/skills/role-strategist/SKILL.md +122 -0
  34. package/skills/role-user-researcher/SKILL.md +66 -0
  35. package/skills/role-ux-designer/SKILL.md +159 -0
  36. package/skills/sws-compliance-check/SKILL.md +153 -0
  37. package/skills/sws-decanter/SKILL.md +191 -0
  38. package/skills/sws-deploy/SKILL.md +162 -0
  39. package/skills/sws-diverge/SKILL.md +131 -0
  40. package/skills/sws-github/SKILL.md +171 -0
  41. package/skills/sws-install/SKILL.md +97 -0
  42. package/skills/sws-netlify/SKILL.md +110 -0
  43. package/skills/sws-onboard/SKILL.md +85 -0
  44. package/skills/sws-preflight/SKILL.md +87 -0
  45. package/skills/sws-prior-art/SKILL.md +137 -0
  46. package/skills/sws-vercel/SKILL.md +117 -0
  47. package/standards/fragments/global-footer.yml +137 -0
  48. package/standards/fragments/identity-bar.yml +180 -0
  49. package/standards/hosting/capabilities.yml +215 -0
  50. package/standards/hosting/github-pages.yml +306 -0
  51. package/standards/hosting/netlify.yml +234 -0
  52. package/standards/hosting/vercel.yml +284 -0
  53. package/standards/patterns/components.md +162 -0
  54. package/standards/patterns/content.md +130 -0
  55. package/standards/patterns/decanter.md +352 -0
  56. package/standards/patterns/discoverability.md +121 -0
  57. package/standards/patterns/forms.md +116 -0
  58. package/standards/patterns/ia.md +126 -0
  59. package/standards/patterns/motion.md +267 -0
  60. package/standards/patterns/sws-conventions.md +225 -0
  61. package/standards/policy/accessibility.md +241 -0
  62. package/standards/policy/brand.md +213 -0
  63. package/standards/policy/escalation.md +53 -0
  64. package/standards/policy/identity.md +96 -0
  65. package/standards/policy/minsec.md +119 -0
  66. package/standards/policy/minweb.md +87 -0
  67. package/standards/policy/privacy.md +114 -0
  68. package/standards/policy/procurement.md +79 -0
  69. package/standards/prior-art/README.md +205 -0
  70. package/standards/prior-art/catalog.yml +409 -0
  71. package/standards/prior-art/patterns/INDEX.md +53 -0
  72. package/standards/prior-art/repos.yml +734 -0
  73. package/standards/recipes/astro-ssr/RECIPE.md +274 -0
  74. package/standards/recipes/astro-ssr/acceptance.yml +168 -0
  75. package/standards/recipes/astro-static/RECIPE.md +468 -0
  76. package/standards/recipes/astro-static/acceptance.yml +800 -0
  77. package/standards/recipes/next-ssr/RECIPE.md +407 -0
  78. package/standards/recipes/next-ssr/acceptance.yml +187 -0
  79. package/standards/scope.md +111 -0
  80. package/standards/stack/performance-budget.yml +95 -0
  81. package/standards/stack/reference-versions.yml +168 -0
  82. package/standards/stack/requirements.yml +154 -0
@@ -0,0 +1,734 @@
1
+ # SWS source repos: inspected prior art
2
+ #
3
+ # Inspected 2026-08-10 by reading package.json on each repo's default branch,
4
+ # then corrected by SWS review the same day.
5
+ # Unlike live_exemplars in catalog.yml, these have READABLE SOURCE, so `era` is
6
+ # verified rather than assumed.
7
+ #
8
+ # ==============================================================================
9
+ # PRECEDENCE, ALL THREE CLAUSES (full version in README.md):
10
+ #
11
+ # 1. Prior art informs HOW we solved a problem shape. Standards decide WHAT
12
+ # to build with. A repo on Decanter 7 + Tailwind 3 is DATED: do not copy
13
+ # its CSS.
14
+ # 2. Repeated identical choices are a CONVENTION worth adopting. cnbuilder
15
+ # ^3.1.0 pinned across seven repos is knowledge, not drift.
16
+ # 3. But NEITHER tells you WHY a dependency is there, nor WHERE the org is
17
+ # heading. Both require asking a person.
18
+ #
19
+ # Clause 3 is not theoretical. This pass produced four proposed corrections to
20
+ # our standards and THREE WERE WRONG:
21
+ #
22
+ # - sa11y correlates PERFECTLY with Storyblok here (5/5 with, 6/6 without).
23
+ # I read the count and called it a developer a11y convention. It is a
24
+ # CONTENT-AUTHOR tool used in Visual Editor overlays. When a dependency
25
+ # correlates tightly with another, it probably belongs to that domain.
26
+ # - Cypress in 3 repos and Playwright in 0 looked decisive. SWS is moving to
27
+ # Playwright. Lockfiles record executed decisions, never intent.
28
+ # - sws-astro on Astro 6 looked like a constraint to adopt. The real answer
29
+ # was to stop naming versions in recipes at all.
30
+ #
31
+ # Full record, kept deliberately: standards/patterns/sws-conventions.md
32
+ # ==============================================================================
33
+
34
+ version: 1
35
+ inspected: 2026-08-10
36
+ corrected: 2026-09-03
37
+ method: package.json on default branch via GitHub API, then SWS review
38
+
39
+ # 2026-09-03: hosting recorded per family for the first time, and it corrected a
40
+ # standing error. This file previously implied Netlify was the only platform.
41
+ # See the ANSWERED block at the foot of this file, entry H1.
42
+
43
+ # ------------------------------------------------------------------------------
44
+ # WATCH THE DEFAULT BRANCH. It is not `main` for most of these.
45
+ # main -> sws-astro
46
+ # dev -> adapt-stanford-homesite, adapt-online-giving, adapt-directory,
47
+ # ood-giving-campaign, ood-stanford-tour, ccc-bulletin
48
+ # 1.x -> cardinalsites-nextjs, csp-nextjs, sulgryphon-nextjs, summer-nextjs,
49
+ # press-nextjs
50
+ # Any prior-art pointer MUST carry an explicit ref or it silently reads the
51
+ # wrong branch.
52
+ #
53
+ # NOTE ON VERSIONS BELOW: recorded as observed, for era classification only.
54
+ # Recipes do not pin versions. See sws-conventions.md.
55
+ # ------------------------------------------------------------------------------
56
+
57
+ families:
58
+ astro-decanter8:
59
+ what: Astro with Decanter 8 and Tailwind 4. Newest, smallest, closest to astro-static.
60
+ hosting: not established. No deploy config in the repo.
61
+ members:
62
+ - sws-astro
63
+ storyblok-next-netlify:
64
+ what: >
65
+ Next + Storyblok + Netlify. The Office of Development / ADAPT family.
66
+ npm, cnbuilder, netlify-plugin-vault-variables for secrets, and sa11y in
67
+ the Visual Editor overlay for content authors.
68
+ hosting: >
69
+ NETLIFY. The Netlify-specific tooling in this family is the evidence:
70
+ netlify-plugin-vault-variables for secrets, @netlify/plugin-csp-nonce and
71
+ blobs/edge/functions in the homesite and ccc-bulletin.
72
+ members:
73
+ - adapt-stanford-homesite
74
+ - adapt-online-giving
75
+ - adapt-directory
76
+ - ood-giving-campaign
77
+ - ood-stanford-tour
78
+ - ccc-bulletin
79
+ decoupled-drupal:
80
+ what: >
81
+ Next + GraphQL against Drupal. yarn 4, graphql-codegen, Algolia,
82
+ clsx + tailwind-merge, .githooks. Four of five run --webpack; the newest
83
+ member does not.
84
+ hosting: >
85
+ VERCEL. Confirmed by SWS 2026-09-03 and verified in source: vercel.json at
86
+ the root of sulgryphon-nextjs with no netlify.toml, and press-nextjs
87
+ publishes to stanford-university-press.vercel.app. Secrets come from
88
+ node-vault rather than a host build plugin, which is what makes this
89
+ family's secret handling host-portable.
90
+ members:
91
+ - cardinalsites-nextjs
92
+ - csp-nextjs
93
+ - sulgryphon-nextjs
94
+ - summer-nextjs
95
+ - press-nextjs
96
+
97
+ repos:
98
+ # ============================================================ DECANTER 8 ERA
99
+ - name: sws-astro
100
+ url: https://github.com/SU-SWS/sws-astro
101
+ ref: main
102
+ family: astro-decanter8
103
+ era: decanter-8
104
+ rating: exemplary
105
+ stack:
106
+ framework: "astro ^6.4.4"
107
+ decanter: "github:SU-SWS/decanter#v8"
108
+ tailwind: "^4.3.0 via @tailwindcss/vite"
109
+ react: "^19.2.7 via @astrojs/react"
110
+ node: ">=22.12.0"
111
+ other:
112
+ - "@astrojs/sitemap"
113
+ - "@astrojs/check"
114
+ - cnbuilder
115
+ - motion
116
+ - heroicons
117
+ - number-flow
118
+ why_exemplary: >
119
+ SWS's own reference implementation of very nearly the stack the
120
+ astro-static recipe describes. When the recipe and this repo disagree,
121
+ investigate before assuming the recipe is right.
122
+ use_for:
123
+ - THE canonical reference for Astro + Decanter 8 + Tailwind 4 wiring
124
+ - Astro + React island composition
125
+ - eslint config for Astro projects via eslint-plugin-astro
126
+ - "`astro check` as the typecheck step"
127
+ do_not_use_for: []
128
+ notable:
129
+ - Installs Decanter from the v8 GIT BRANCH, not npm. Predates the npm publish.
130
+ - >
131
+ Runs Astro 6 while 7 is current. NOT a constraint to copy: SWS confirmed
132
+ Astro 7 is fine and that recipes should install latest.
133
+ - "Carries overrides.vite ^7.3.2, suggesting a known Vite resolution issue."
134
+ - No test harness of any kind. Not a testing reference.
135
+ priority: highest
136
+
137
+ - name: ccc-bulletin
138
+ url: https://github.com/SU-SWS/ccc-bulletin
139
+ ref: dev
140
+ family: storyblok-next-netlify
141
+ hosting: netlify
142
+ era: decanter-8
143
+ rating: exemplary
144
+ stack:
145
+ framework: "next ^16.2.12"
146
+ decanter: "https://github.com/SU-SWS/decanter.git#v8"
147
+ tailwind: "^4.3.3 via @tailwindcss/postcss"
148
+ cms: "@storyblok/react ^6.1.11"
149
+ node: ">=22.0.0"
150
+ package_manager: "yarn@4.12.0"
151
+ other:
152
+ - cnbuilder
153
+ - tailwind-merge
154
+ - "sa11y ^5.0.9 (author-facing; Visual Editor overlay)"
155
+ - motion
156
+ - MUI 9
157
+ - zod
158
+ - netlify blobs/edge/functions
159
+ - Cypress 15
160
+ - BackstopJS
161
+ why_exemplary: >
162
+ The only Next + Decanter 8 + Tailwind 4 project in the set, and therefore
163
+ THE reference for the next-ssr recipe. Also the most complete testing
164
+ setup after the homesite.
165
+ use_for:
166
+ - Next + Decanter 8 + Tailwind 4 via "@tailwindcss/postcss"
167
+ - Storyblok at a current version, "@storyblok/react 6.x"
168
+ - Visual regression via BackstopJS, the only example in the set
169
+ - >
170
+ sa11y 5.x in the Visual Editor overlay, giving CONTENT AUTHORS
171
+ accessibility feedback while they edit. This is the only control in the
172
+ whole system that addresses content published after launch.
173
+ do_not_use_for: []
174
+ notable:
175
+ - Also installs Decanter from the git v8 branch.
176
+ - Mixes MUI with Decanter. Understand why before copying.
177
+ - yarn 4 despite sitting in the Storyblok family, which usually uses npm.
178
+ priority: highest
179
+
180
+ # ======================================================= DECANTER 7, CURRENT
181
+ - name: adapt-stanford-homesite
182
+ url: https://github.com/SU-SWS/adapt-stanford-homesite
183
+ ref: dev
184
+ family: storyblok-next-netlify
185
+ hosting: netlify
186
+ era: decanter-derived
187
+ lineage: >
188
+ NOT a Decanter consumer. Its own design system, heavily derived from
189
+ Decanter, and currently INFLUENCING Decanter 8. Confirmed by SWS.
190
+ influences: decanter-8
191
+ rating: exemplary
192
+ live: https://www.stanford.edu/
193
+ stack:
194
+ framework: "next ^16.0.0"
195
+ decanter: >
196
+ NOT A DEPENDENCY BY DESIGN. Derived design system. See lineage.
197
+ tailwind: "^4.2.1 via @tailwindcss/postcss"
198
+ cms: "@storyblok/react ^5.4.18"
199
+ node: ">=22.0.0"
200
+ package_manager: npm
201
+ other:
202
+ - "Storybook 10 + addon-a11y + nextjs-vite"
203
+ - Cypress 15
204
+ - Jest 29
205
+ - MSW
206
+ - "sa11y ^4.3.5 (author-facing)"
207
+ - FontAwesome Pro
208
+ - maplibre
209
+ - "@google-cloud/discoveryengine"
210
+ - "@google/genai"
211
+ - "@netlify/plugin-csp-nonce"
212
+ - netlify-plugin-vault-variables
213
+ why_exemplary: >
214
+ This is www.stanford.edu. The most scrutinised Stanford web property and
215
+ by far the most complete engineering setup in the set: Storybook with the
216
+ a11y addon, Cypress e2e and component, Jest, MSW mocking, CSP nonces, and
217
+ Vault-managed secrets.
218
+ use_for:
219
+ - >
220
+ THE reference for testing and QA rigour, at the scale of a flagship
221
+ property. Read it for what thorough looks like, not as a shopping list:
222
+ this project deliberately does NOT adopt a component workshop, since
223
+ most unit sites have a handful of components and one consumer.
224
+ - >
225
+ Global Footer and Identity Bar as shipped on the canonical site. Brand
226
+ furniture is authoritative here regardless of the design system lineage,
227
+ because brand is brand.
228
+ - CSP implementation via "@netlify/plugin-csp-nonce"
229
+ - Secrets via HashiCorp Vault rather than env files
230
+ - AI-adjacent search via Google discoveryengine + genai, relevant to GEO
231
+ - >
232
+ A preview of where Decanter 8 is heading, since patterns here are
233
+ feeding back into it.
234
+ do_not_use_for:
235
+ - >
236
+ FontAwesome Pro. Licence-gated with a preinstall token check, and
237
+ Decanter recommends heroicons. Do not propagate it to unit sites.
238
+ - >
239
+ Decanter conformance. Its tokens and CSS are a PARALLEL VOCABULARY, not
240
+ Decanter's. Copying them into a Decanter 8 project produces something
241
+ that looks approximately right and does not use the design system.
242
+ notable:
243
+ - >
244
+ ANSWERED (SWS, 2026-08-10): no `decanter` dependency is deliberate. This
245
+ is its own design system, heavily derived from Decanter, and it is
246
+ currently influencing Decanter 8. It sits UPSTREAM of the design system,
247
+ not downstream of it.
248
+ - >
249
+ Therefore `era` does not apply in the usual linear sense. See the
250
+ lineage note in README.md: newer is not automatically better, and this
251
+ repo can be simultaneously ahead of Decanter 8 and incompatible with it.
252
+ - Storybook build is conditional on $NETLIFY and published to /storybook.
253
+ priority: highest
254
+
255
+ - name: adapt-online-giving
256
+ url: https://github.com/SU-SWS/adapt-online-giving
257
+ ref: dev
258
+ family: storyblok-next-netlify
259
+ hosting: netlify
260
+ era: decanter-7
261
+ rating: sound
262
+ live: https://give.stanford.edu
263
+ stack:
264
+ framework: "next ^16.2.6"
265
+ decanter: "^7.4.0"
266
+ tailwind: "^3.4.18, with @tailwindcss/postcss ^4.2.1 also present"
267
+ cms: "@storyblok/react ^6.1.6"
268
+ node: ">=24.0.0"
269
+ package_manager: npm
270
+ other:
271
+ - Stripe
272
+ - "adapt-auth-sdk ^2.1.0"
273
+ - "@algolia/client-search"
274
+ - Upstash Redis
275
+ - "TanStack Form + Query"
276
+ - "react-email + Mailgun"
277
+ - "AWS S3/STS"
278
+ - Airtable
279
+ - zod
280
+ - zustand
281
+ - "sa11y ^4.4.1 (author-facing)"
282
+ use_for:
283
+ - Complex transactional form flows, the best form reference in the set
284
+ - TanStack Form for validation-heavy forms
285
+ - Transactional email patterns via react-email
286
+ do_not_use_for:
287
+ - Any Low-risk static site's data handling. See the compliance note.
288
+ notable:
289
+ - >
290
+ COMPLIANCE: Stripe means PCI DSS scope, and adapt-auth-sdk means
291
+ authenticated users. This is High-risk-tier work. Never cite it as a
292
+ template for a Low-risk unit site.
293
+ - Only repo in the set on Node >=24. Everything else is >=22 or >=20.
294
+ - Declares both tailwind 3.4 and "@tailwindcss/postcss" 4.2. Mixed state.
295
+ - >
296
+ OPEN QUESTION: `adapt-auth-sdk` appears to be a private SWS package.
297
+ What does it wrap, and is it the sanctioned path for Stanford auth?
298
+
299
+ - name: adapt-directory
300
+ url: https://github.com/SU-SWS/adapt-directory
301
+ ref: dev
302
+ family: storyblok-next-netlify
303
+ hosting: netlify
304
+ era: decanter-7
305
+ rating: dated
306
+ stack:
307
+ framework: "next ^13.4.19"
308
+ decanter: "^7.1.1"
309
+ tailwind: "^3.3.5"
310
+ cms: none
311
+ node: unspecified
312
+ package_manager: npm
313
+ other:
314
+ - "@coveo/headless ^2.37"
315
+ - "@coveo/cli"
316
+ - "@coveo/push-api-client"
317
+ - MUI 5
318
+ - Redux Toolkit
319
+ - "adapt-auth-sdk ^1.0.20"
320
+ - Upstash ratelimit
321
+ - Cypress 13
322
+ - Jest 29
323
+ - cnbuilder
324
+ use_for:
325
+ - >
326
+ THE Coveo reference. Extensive CLI workflow for org resource pull/push,
327
+ index seeding, key generation, and identity sync. Nothing else in the
328
+ set covers Coveo.
329
+ - >
330
+ Directory and people-search patterns, plus a megaprofile pipeline that
331
+ turns OpenAPI into TS types and enum options.
332
+ - Mock server pattern for local dev against an unavailable API.
333
+ do_not_use_for:
334
+ - >
335
+ Anything current. Next 13, Decanter 7.1, Tailwind 3.3, MUI 5, Redux.
336
+ Read the Coveo scripts and ignore the rest.
337
+ notable:
338
+ - Oldest stack in the set. Rated dated for that reason, not for quality.
339
+ - >
340
+ No Storyblok and no sa11y. This is the datapoint that confirms the
341
+ sa11y/Storyblok correlation and the author-facing reading.
342
+ - Stanford GSB org names are hardcoded in npm scripts.
343
+
344
+ - name: ood-giving-campaign
345
+ url: https://github.com/SU-SWS/ood-giving-campaign
346
+ ref: dev
347
+ family: storyblok-next-netlify
348
+ hosting: netlify
349
+ era: decanter-7
350
+ rating: sound
351
+ live: https://momentum.stanford.edu/
352
+ description_in_repo: Momentum
353
+ stack:
354
+ framework: "next ^14.2.35"
355
+ decanter: "^7.4.0"
356
+ tailwind: "^3.4.17"
357
+ cms: "@storyblok/react ^3.0.15"
358
+ node: ">=22.0.0"
359
+ package_manager: npm
360
+ other:
361
+ - framer-motion
362
+ - "sa11y ^4.1.1 (author-facing)"
363
+ - Typeform embed
364
+ - headlessui
365
+ - heroicons
366
+ use_for:
367
+ - Campaign microsite structure, close in scope to typical astro-static use
368
+ - Storyblok content modelling for a campaign site
369
+ do_not_use_for:
370
+ - CSS setup
371
+ - dependency versions
372
+ notable:
373
+ - >
374
+ Pairs with the momentum.stanford.edu live exemplar. Source plus rendered
375
+ output for the same site is the most useful prior-art pairing available.
376
+ - "@storyblok/react 3.x is several majors behind ccc-bulletin's 6.x."
377
+
378
+ - name: ood-stanford-tour
379
+ url: https://github.com/SU-SWS/ood-stanford-tour
380
+ ref: dev
381
+ family: storyblok-next-netlify
382
+ hosting: netlify
383
+ era: decanter-7
384
+ rating: sound
385
+ live: https://openminds.stanford.edu/
386
+ description_in_repo: Open Minds
387
+ stack:
388
+ framework: "next ^14.2.35"
389
+ decanter: "^7.3.1"
390
+ tailwind: not declared directly
391
+ cms: "@storyblok/react ^3.0.15"
392
+ node: ">=20.0.0"
393
+ package_manager: npm
394
+ other:
395
+ - framer-motion
396
+ - "sa11y ^4.1.1 (author-facing)"
397
+ - Typeform embed
398
+ use_for:
399
+ - >
400
+ Small editorial-leaning program site, near-identical in shape to
401
+ ood-giving-campaign. Comparing the two shows the house pattern.
402
+ do_not_use_for:
403
+ - CSS setup
404
+ - dependency versions
405
+ notable:
406
+ - Lowest Node floor in the set at >=20.
407
+ - Pairs with the openminds.stanford.edu live exemplar.
408
+
409
+ # ================================================== DECOUPLED DRUPAL FAMILY
410
+ - name: cardinalsites-nextjs
411
+ url: https://github.com/SU-SWS/cardinalsites-nextjs
412
+ ref: 1.x
413
+ family: decoupled-drupal
414
+ era: decanter-7
415
+ rating: exemplary
416
+ hosting: vercel
417
+ stack:
418
+ framework: "next 16.2.10, run with --webpack"
419
+ decanter: "^7.4.0"
420
+ tailwind: "^3.4.19"
421
+ cms: "Drupal via graphql-request + graphql-codegen"
422
+ package_manager: "yarn@4.17.1"
423
+ other:
424
+ - "passport-saml ^3.2.4"
425
+ - xml-encryption
426
+ - jose
427
+ - node-vault
428
+ - algoliasearch
429
+ - react-instantsearch
430
+ - react-instantsearch-nextjs
431
+ - "@base-ui/react"
432
+ - plaiceholder
433
+ - sharp
434
+ why_exemplary: >
435
+ The headless Stanford Sites front end, and the only SAML implementation in
436
+ the set. Reference for both decoupled Drupal and Stanford authentication,
437
+ which makes it the key input to the v2 identity work.
438
+ use_for:
439
+ - THE Drupal decoupling reference. GraphQL codegen setup and query patterns
440
+ - THE SAML reference. passport-saml plus xml-encryption plus jose
441
+ - Algolia with Next App Router via react-instantsearch-nextjs
442
+ - Vault-based secret retrieval with node-vault
443
+ do_not_use_for:
444
+ - CSS setup
445
+ - Tailwind 3 patterns
446
+ notable:
447
+ - >
448
+ package.json `name` is `decoupled-cardinalsites`, identical to
449
+ csp-nextjs, which is an intentional sibling instance for a different
450
+ client. See that entry.
451
+ - >
452
+ Runs --webpack, opting out of Turbopack. All four repos in this family
453
+ do. ASKED AND ANSWERED 2026-09-01: point-in-time decision, NOT a forward
454
+ choice. Turbopack is the forward default for Next.js sites. Note the four
455
+ repos are one lineage, so this is one decision copy-forked, not four
456
+ independent votes.
457
+ priority: high
458
+
459
+ - name: csp-nextjs
460
+ url: https://github.com/SU-SWS/csp-nextjs
461
+ ref: 1.x
462
+ family: decoupled-drupal
463
+ era: decanter-7
464
+ rating: sound
465
+ hosting: vercel
466
+ stack:
467
+ framework: "next 16.2.10, run with --webpack"
468
+ decanter: "^7.4.0"
469
+ tailwind: "^3.4.19"
470
+ package_manager: "yarn@4.17.1"
471
+ other:
472
+ - same dependency set as cardinalsites-nextjs
473
+ - "@vercel/speed-insights"
474
+ relationship:
475
+ type: sibling-instance
476
+ of: cardinalsites-nextjs
477
+ why: >
478
+ INTENTIONAL (SWS, 2026-08-10). Two sites for two different clients.
479
+ csp-nextjs was created by copying cardinalsites-nextjs. Not divergence
480
+ to reconcile, and both are citable.
481
+ use_for:
482
+ - Same as cardinalsites-nextjs
483
+ - >
484
+ The clearest example of the copy-fork pattern SWS uses to start a new
485
+ client site from an existing one. See sws-conventions.md.
486
+ do_not_use_for:
487
+ - CSS setup
488
+ - Tailwind 3 patterns
489
+ notable:
490
+ - >
491
+ Same package `name` as cardinalsites-nextjs, same dependency set,
492
+ differing only by "@vercel/speed-insights" and a couple of patch
493
+ versions. This is expected, not a problem.
494
+ - >
495
+ CORRECTED 2026-09-03: that "@vercel/speed-insights" was the ONE visible
496
+ signal that this whole family deploys to Vercel, and the 2026-08-10 pass
497
+ discounted it as copy-fork noise. It was the only true thing in the
498
+ dependency data about hosting. Weak signals that contradict a confident
499
+ inference deserve a question, not a dismissal.
500
+ - >
501
+ Despite the repo name, no CSP-specific dependency is present. CSP work
502
+ in this org appears in adapt-stanford-homesite via
503
+ "@netlify/plugin-csp-nonce" instead. The name likely refers to the
504
+ client, not to Content Security Policy.
505
+
506
+ - name: sulgryphon-nextjs
507
+ url: https://github.com/SU-SWS/sulgryphon-nextjs
508
+ ref: 1.x
509
+ family: decoupled-drupal
510
+ era: decanter-7
511
+ rating: sound
512
+ live: https://library.stanford.edu
513
+ hosting: vercel
514
+ stack:
515
+ framework: "next ^16.0.10, run with --webpack"
516
+ decanter: "^7.4.0"
517
+ tailwind: "^3.4.19"
518
+ cms: "Drupal via next-drupal ^2.0.0 and graphql-request"
519
+ package_manager: "yarn@4.9.2"
520
+ other:
521
+ - react-aria
522
+ - react-stately
523
+ - "@formkit/auto-animate"
524
+ - jsona
525
+ - react-obfuscate-email
526
+ - "@tailwindcss/typography"
527
+ use_for:
528
+ - >
529
+ Accessibility-forward component work. The only repo using react-aria and
530
+ react-stately, which is a meaningful a11y signal.
531
+ - next-drupal as an alternative to hand-rolled GraphQL
532
+ - Email obfuscation, a recurring university requirement
533
+ do_not_use_for:
534
+ - CSS setup
535
+ - Tailwind 3 patterns
536
+ notable:
537
+ - >
538
+ package.json `name` is `basic-starter` and it is MIT licensed while
539
+ everything else is private. Suggests it began as a template.
540
+ - Pairs with the library.stanford.edu live exemplar.
541
+ - >
542
+ react-aria here, "@base-ui/react" in cardinalsites, MUI in ccc-bulletin,
543
+ headlessui in the ADAPT family. There is no house headless library.
544
+
545
+ - name: summer-nextjs
546
+ url: https://github.com/SU-SWS/summer-nextjs
547
+ ref: 1.x
548
+ family: decoupled-drupal
549
+ era: decanter-7
550
+ rating: sound
551
+ hosting: vercel
552
+ stack:
553
+ framework: "next 16.2.12, run with --webpack"
554
+ decanter: "^7.4.0"
555
+ tailwind: "^3.4.19"
556
+ package_manager: "yarn@4.9.2"
557
+ other:
558
+ - algoliasearch
559
+ - react-instantsearch
560
+ - react-instantsearch-router-nextjs
561
+ - react-cookiebot
562
+ - react-zendesk
563
+ - react-toastify
564
+ - react-youtube
565
+ use_for:
566
+ - Algolia with URL-synced routing via react-instantsearch-router-nextjs
567
+ - "Third-party embed patterns: Zendesk and YouTube"
568
+ do_not_use_for:
569
+ - CSS setup
570
+ - Tailwind 3 patterns
571
+ - >
572
+ Cookie consent. DO NOT cite react-cookiebot as a pattern, a precedent,
573
+ or a recommendation. See below.
574
+ notable:
575
+ - >
576
+ ANSWERED (SWS, 2026-08-10): `react-cookiebot` is present because the
577
+ CLIENT REQUIRED IT for this specific site. Stanford centrally licenses
578
+ NO cookie banner service. This is a documented one-off, not a pattern.
579
+ - >
580
+ Guidance when consent management comes up: no banner is required, do not
581
+ hand-roll one, and DO NOT NAME A VENDOR. Route the person to the
582
+ University Privacy Office. See the "route, don't recommend" principle in
583
+ the project plan.
584
+
585
+ - name: press-nextjs
586
+ url: https://github.com/SU-SWS/press-nextjs
587
+ ref: 1.x
588
+ family: decoupled-drupal
589
+ era: decanter-7
590
+ rating: sound
591
+ live: https://stanford-university-press.vercel.app
592
+ hosting: vercel
593
+ stack:
594
+ framework: "next 16.3.3, built with plain `next build`"
595
+ decanter: "^7.5.3"
596
+ tailwind: "^3.4.19"
597
+ cms: "Drupal via graphql-request + graphql-codegen"
598
+ package_manager: "yarn@4.9.2"
599
+ other:
600
+ - "@base-ui/react ^1.7.0"
601
+ - algoliasearch + react-instantsearch-nextjs
602
+ - plaiceholder
603
+ - sharp
604
+ - clsx + tailwind-merge
605
+ - "@formkit/auto-animate"
606
+ - "@next/third-parties"
607
+ - react-slick
608
+ - react-focus-lock
609
+ use_for:
610
+ - >
611
+ The NEWEST member of the decoupled Drupal family, so cite it over its
612
+ siblings for current practice within that lineage.
613
+ - Vercel deployment of a decoupled Drupal front end.
614
+ - "`sup.org` is a MinWeb scope example: Stanford-branded non-stanford.edu."
615
+ do_not_use_for:
616
+ - CSS setup. Decanter 7 and Tailwind 3.
617
+ - >
618
+ Security headers. Like the rest of this family it sets none. That is
619
+ permitted, not exemplary. See the note below.
620
+ notable:
621
+ - >
622
+ DROPS `--webpack`. Its build script is plain `next build`, unlike the
623
+ other four members. Consistent with the SWS answer of 2026-09-01 that
624
+ --webpack was point-in-time and Turbopack is the forward choice, and it
625
+ is the first repo in the set to actually act on it.
626
+ - >
627
+ Was ABSENT from this file until 2026-09-03. It was not found by the
628
+ original inspection pass and had to be named by a person, which is
629
+ clause 3 of the precedence rule in miniature.
630
+ - >
631
+ The deployed homepage is a *.vercel.app URL, not a stanford.edu
632
+ subdomain. Whatever the production domain is, it is not recorded here.
633
+ priority: high
634
+
635
+ # ==============================================================================
636
+ # ANSWERED (SWS, 2026-08-10)
637
+ #
638
+ # A1. www.stanford.edu does not consume Decanter. It is its own design system,
639
+ # heavily derived from Decanter, and it is currently INFLUENCING Decanter 8.
640
+ # Consequence: `era` is not a linear timeline. Some work sits upstream of
641
+ # the design system. See the lineage section in README.md.
642
+ #
643
+ # A2. cardinalsites-nextjs and csp-nextjs are intentional sibling instances,
644
+ # two clients, one copied from the other. Both citable. Also the clearest
645
+ # example of the copy-fork pattern this project is trying to improve on
646
+ # rather than replace. See sws-conventions.md.
647
+ #
648
+ # A3. summer-nextjs uses Cookiebot because the CLIENT required it. Stanford
649
+ # centrally licenses no cookie banner service. Documented one-off, not a
650
+ # pattern. Never name a consent vendor; route to the Privacy Office.
651
+ #
652
+ # ANSWERED BY SWS, 2026-09-01. All four. Kept here with the answers, because the
653
+ # questions are the more reusable artefact: each one is a thing repo inspection
654
+ # could never have established.
655
+ #
656
+ # 1. `adapt-auth-sdk` -- what is it, and is it sanctioned?
657
+ # ANSWER: a SAML auth library for ALUMNI-based websites only.
658
+ # `weblogin-auth-sdk` is the PREFERRED package for everything else: also
659
+ # SAML, integrating with Weblogin, Stanford's primary SSO. So the two repos
660
+ # using adapt-auth-sdk are NOT a general endorsement.
661
+ # -> standards/policy/identity.md
662
+ #
663
+ # 2. All four decoupled-drupal repos pin `--webpack`. Known issue?
664
+ # ANSWER: a point-in-time decision to not adopt Turbopack. NOT a forward
665
+ # choice. Turbopack IS the forward choice for Next.js sites.
666
+ # Note the four repos are ONE lineage, so this was one decision copy-forked,
667
+ # not four independent votes. See the "count lineages, not repos" clause in
668
+ # README.md -- this question is where that clause came from.
669
+ # -> standards/patterns/sws-conventions.md, record of error, row 4
670
+ #
671
+ # 3. Is there an intended house headless component library?
672
+ # ANSWER: no, there is none. Confirmed absence, not an oversight. And this is
673
+ # precisely why this project matters: with no house choice to lean on, its
674
+ # guidance is the control that reaches the a11y and compliance win.
675
+ # -> standards/patterns/components.md
676
+ #
677
+ # 4. Adopt a www.stanford.edu pattern not yet in Decanter 8?
678
+ # ANSWER: yes, go ahead. Decanter 8 is NOT a hard line on design choices.
679
+ # Almost everything in the Stanford ecosystem is a carrot rather than a
680
+ # stick, and the toolchain must be attractive to work with -- anyone who gets
681
+ # blocked simply goes their own way. Only the POLICIES bind, and they govern
682
+ # only a sliver of the aesthetic.
683
+ # -> standards/policy/brand.md, "What is actually binding"
684
+ # ==============================================================================
685
+
686
+ # ==============================================================================
687
+ # ANSWERED BY SWS, 2026-09-03. The hosting question, and the biggest single
688
+ # correction this file has taken.
689
+ #
690
+ # H1. Which hosts do we actually deploy to?
691
+ # ANSWER: TWO, split cleanly by family.
692
+ # - storyblok-next-netlify (ADAPT/OOD) -> NETLIFY
693
+ # - decoupled-drupal (Cardinal Sites) -> VERCEL
694
+ # And press-nextjs, a fifth decoupled-drupal repo, was missing from this
695
+ # file entirely.
696
+ #
697
+ # WHAT WE HAD WRONG. This file and sws-conventions.md both asserted
698
+ # "Netlify is the platform. Vercel appears once, as @vercel/speed-insights."
699
+ # That reading came from counting npm dependencies, and npm dependencies do
700
+ # not record where a repo deploys. The Vercel family leaves almost no trace
701
+ # in package.json BECAUSE it uses node-vault for secrets instead of a host
702
+ # build plugin -- the more portable choice, which is precisely why it is
703
+ # invisible to dependency inspection. The one signal we did see, a stray
704
+ # @vercel/speed-insights, we then discounted as copy-fork noise.
705
+ #
706
+ # Verified in source after the answer, 2026-09-03: sulgryphon-nextjs has
707
+ # vercel.json at its root and no netlify.toml, and press-nextjs publishes to
708
+ # stanford-university-press.vercel.app.
709
+ #
710
+ # WHY IT MATTERS BEYOND THE FACT. "Netlify is the platform" was about to
711
+ # become a recipe naming scheme and a swap-point cost ("you leave the
712
+ # platform every other SWS project uses"). That sentence would have been
713
+ # wrong to roughly half the org, and it is the kind of wrong that makes a
714
+ # team ignore the whole toolchain. Recipes now carry a hosting axis:
715
+ # standards/hosting/.
716
+ # -> standards/hosting/, standards/patterns/sws-conventions.md
717
+ #
718
+ # H2. Do we require a Content-Security-Policy?
719
+ # ANSWER: NO. Nonce-based CSP is a NICE-TO-HAVE, not a requirement.
720
+ # Confirmed against minweb.md, which requires no response headers at all.
721
+ # Security headers SHOULD ship with sensible defaults, but a CSP locked to
722
+ # specific domains is explicitly NOT wanted: it puts a non-technical site
723
+ # owner one embedded video away from a broken page they cannot diagnose.
724
+ #
725
+ # So the decoupled-drupal family setting no security headers is PERMITTED,
726
+ # not a finding. Only the homesite's full header set is exemplary, and
727
+ # exemplary is not the bar.
728
+ # -> standards/hosting/capabilities.yml
729
+ #
730
+ # METHOD NOTE, for the next person doing an inspection pass: package.json tells
731
+ # you what a project INSTALLS. It does not tell you where it deploys, who owns
732
+ # it, or what the production domain is. Three of those four need a person. This
733
+ # is now the second time clause 3 has produced the largest correction in a pass.
734
+ # ==============================================================================