Frontend Reference
Architectural reference for BookWorm's multi-zone web platform, rendering and caching boundaries, authentication, client state, design governance, and observability.
BookWorm’s frontend is a multi-zone web platform composed of three independent web applications—Storefront, Commerce, and Backoffice—served behind a single reverse-proxy API Gateway origin. Each surface is organized into domain-aligned vertical feature slices backed by layered shared foundations that enforce one-way dependencies, strict server-versus-client rendering boundaries, centralized authentication handoffs, and measurable accessibility and performance standards.
Frontend Application Topology
The view below illustrates how customers and staff reach each web surface through the API Gateway, where identity boundaries sit, and how frontend surfaces connect to backend capability APIs.
Reference Directory
Workspace & Dependency Tiers
Four-tier dependency model separating application surfaces, domain capabilities, shared foundations, and tooling presets.
Applications & Zone Routing
Surface boundaries across Storefront, Commerce, and Backoffice, gateway precedence, and indexing scope.
Data Flow & Gateway Integration
Typed transport contracts, retry semantics, optimistic concurrency, and real-time streaming channels.
Quality Gates & Verification
Static boundary enforcement, isolated component testing, end-to-end journey validation, and build gates.
Design System & UI Governance
Shared accessible primitives, design tokens, responsive standards, and localization readiness.
Multi-Zone Composition
Why customer discovery and authenticated checkout are split behind one origin and how cross-zone links work.
Client State & Feature Slices
Separation of server cache from ephemeral UI state, thin route entrypoints, and error boundaries.
Accessibility & Inclusive UX
WCAG 2.1 Level AA target, four-layer defense model, and paced screen-reader announcements.
Customer Surface Onboarding
Architectural decision flow for placing, protecting, and verifying new customer-facing routes.
Rendering & Caching Strategy
Server versus client rendering boundaries, streaming SSR, static optimization, and cache invalidation.
| Topic | Scope | Primary Audience | Key Architectural Goal |
|---|---|---|---|
| Workspace & Dependency TiersCustom DocWorkspace & Dependency TiersFour-tier dependency model separating application surfaces, domain capabilities, shared foundations, and tooling presets...Ownercatalog-experience-teamOpen doc | All web surfaces and shared layers | Frontend architects, tech leads | Enforce one-way dependencies and zero circular coupling |
| Applications & Zone RoutingCustom DocApplications & Zone RoutingSurface boundaries across Storefront, Commerce, and Backoffice, reverse-proxy gateway precedence, and search indexing sc...Ownercatalog-experience-teamOpen doc | Storefront, Commerce, Backoffice | Architects, frontend engineers | Maintain clear surface ownership and deterministic gateway routing |
| Data Flow & Gateway IntegrationCustom DocData Flow & Gateway IntegrationTyped transport contracts, retry and idempotency rules, optimistic concurrency with ETags, and real-time streaming chann...Ownercatalog-experience-teamOpen doc | Gateway transport and real-time channels | Frontend and API engineers | Standardize resilient requests, optimistic concurrency, and streaming |
| Quality Gates & VerificationCustom DocQuality Gates & VerificationStatic boundary enforcement, isolated component testing, end-to-end journey validation, and production build gates acros...Ownercatalog-experience-teamOpen doc | Pre-merge and CI verification | Frontend engineers, QA leads | Catch boundary, accessibility, and journey regressions before release |
| Design System & UI GovernanceCustom DocDesign System & UI GovernanceShared accessible UI primitives, design tokens, responsive standards, and internationalization readiness across all fron...Ownercatalog-experience-teamOpen doc | Shared UI system and theming | Frontend engineers, designers | Govern reusable accessible primitives, tokens, and responsive rules |
| Multi-Zone CompositionCustom DocMulti-Zone CompositionWhy BookWorm splits customer discovery and authenticated checkout into two zones behind one gateway origin, and how cros...Ownercatalog-experience-teamOpen doc | Customer zone split | Solutions and frontend architects | Isolate public catalog caching from private checkout workflows |
| Client State & Feature SlicesCustom DocClient State & Feature SlicesSeparation of server cache from ephemeral UI state, thin route entrypoints, vertical feature slices, and client error bo...Ownercatalog-experience-teamOpen doc | Client state and feature slices | Frontend tech leads, engineers | Keep server state and ephemeral UI state strictly separated |
| Accessibility & Inclusive UXCustom DocAccessibility & Inclusive UXWCAG 2.1 Level AA target, four-layer accessibility defense, streaming AI chat announcements, and barrier reporting gover...Ownercatalog-experience-teamOpen doc | WCAG 2.1 Level AA defense | Frontend engineers, UX leads | Combine static, automated, keyboard, and live-region safeguards |
| Customer Surface OnboardingCustom DocCustomer Surface OnboardingArchitectural decision flow for placing, registering, protecting, and verifying new customer-facing routes across Storef...Ownercatalog-experience-teamOpen doc | New customer capabilities | Frontend engineers | Route, protect, and validate new customer pages without prefix collisions |
| Rendering & Caching StrategyCustom DocRendering & Caching StrategyServer versus client rendering boundaries, streaming SSR, component caching profiles, cache invalidation, and gateway in...Ownercatalog-experience-teamOpen doc | Server/client rendering and caching | Frontend architects, engineers | Maximize edge/server cacheability for public pages and freshness for private flows |
| Authentication & Session BoundariesCustom DocAuthentication & Session BoundariesIdentity provider handoff, origin-scoped session cookies, edge route protection, and role-based UI gating across custome...Ownercatalog-experience-teamOpen doc | Identity, sessions, and UI gating | Security, solutions, frontend architects | Enforce consistent session ownership and defense-in-depth authorization |
| Performance & ObservabilityCustom DocPerformance & ObservabilityCore Web Vitals targets, bundle discipline, OpenTelemetry distributed tracing, and graceful degradation across all front...Ownercatalog-experience-teamOpen doc | Web Vitals, telemetry, resilience | Frontend architects, SREs | Sustain fast perceived load times, end-to-end traces, and graceful degradation |