Frontends and BFFs

storefront-web

Storefront Web (React 19 SSR, React Router 7 framework mode on Vite, Node runtime): the e-commerce storefront pages; talks only to storefront-bff.

language TypeScript · default branch develop · not a registered context · GitHub ↗ · engineering study ↗

Architecture fitness

50%2 / 4 checks

storefront-web: fitness functions that apply to this project
FunctionAxesTargetMeasuredResult
Ports-and-adapters layoutatomic · static · triggered · automated>= 95% of source files inside cmd/ or internal/ (Go) or src/ (TypeScript)70% of 60fail
Decision recordsatomic · static · triggered · automated>= 1 architecture decision record7 recordspass
Test investmentatomic · static · triggered · automated>= 0.8 test lines per code line at HEAD0.42 test lines per code linefail
CI greenholistic · dynamic · triggered · automated>= 90% of decided Actions runs green over the last four ISO weeks91% greenpass

Not applicable here: Domain purity, Adapters, Contracts, Events, Arch tests, MCP.

Risks

  • 70% of source files sit inside the standard layout (18 outside) — the hexagonal boundary is eroding at the edges.
  • 0.42 test lines per code line at HEAD, under the 0.8 target — changes are cheaper than the safety net that guards them.

Evidence

Files outside the standard layout

  • .opencode/plugins/harness.ts
  • docs/docusaurus.config.ts
  • docs/sidebars.ts
  • docs/sidebarsAdr.ts
  • docs/src/pages/index.tsx
  • playwright.config.ts
  • react-router.config.ts
  • server/fixtures.ts

…and 10 more.

Test investment

3,312 test lines against 7,937 code lines at HEAD.