Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Frontend Reference

Architectural reference for BookWorm's multi-zone web platform, rendering and caching boundaries, authentication, client state, design governance, and observability.

Frontend Reference

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.

Authentication & Session Boundaries

Identity provider handoff, origin-scoped session cookies, route protection, and role-based UI gating.

Performance & Observability

Core Web Vitals budgets, bundle discipline, OpenTelemetry tracing, and graceful degradation.

TopicScopePrimary AudienceKey Architectural Goal
Workspace & Dependency TiersCustom DocWorkspace & Dependency TiersFour-tier dependency model separating application surfaces, domain capabilities, shared foundations, and tooling presets...Ownercatalog-experience-teamOpen docAll web surfaces and shared layersFrontend architects, tech leadsEnforce 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 docStorefront, Commerce, BackofficeArchitects, frontend engineersMaintain 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 docGateway transport and real-time channelsFrontend and API engineersStandardize 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 docPre-merge and CI verificationFrontend engineers, QA leadsCatch 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 docShared UI system and themingFrontend engineers, designersGovern 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 docCustomer zone splitSolutions and frontend architectsIsolate 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 docClient state and feature slicesFrontend tech leads, engineersKeep 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 docWCAG 2.1 Level AA defenseFrontend engineers, UX leadsCombine 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 docNew customer capabilitiesFrontend engineersRoute, 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 docServer/client rendering and cachingFrontend architects, engineersMaximize 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 docIdentity, sessions, and UI gatingSecurity, solutions, frontend architectsEnforce 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 docWeb Vitals, telemetry, resilienceFrontend architects, SREsSustain fast perceived load times, end-to-end traces, and graceful degradation