Skip to main content
Brand and assets
Build
Monitor and contribute
/
Front-end platform
  • Overview
  • Technical architecture
  • Core framework
  • Application
  • global-shell
  • modular-arch
  • Product shells
  • Modules & apps
  • Module directory
  • Apps
  • Bundles
  • Bundle explorer
  • Guides
  • Install Murray
  • Universal components
  • Build a universal component
  • Responsive styles
  • RTL support
  • Translations & i18n
  • When to use Form
  • Positioning elements
  • Add a new icon
  • Utilities
  • Overview
  • Layouts
  • global-shell

global-shell

global-shell provides GlobalApp — the root component of a Core web application. It renders the web provider stack, registers the core modules (auth, user, feature flags, auth screens), lets its children register theirs, and derives the React Router browser router from the registered module set.

Source: frontend/packages/core/global-shell/

GlobalApp​

The root orchestrator, configured through props (GlobalAppConfig). See the dedicated Application page for full documentation.

How it renders:

  • Provider stack: Helmet, tracking, Murray, API SDKs, plus the app's LegacyCountryAdapter extras.
  • Router: built once, when the modules are registered; lazy module loading is not supported.
  • Route guards: logged-in routes sit behind PrivateRoute and a capabilities gate fed by useCapabilitiesHook, locale routes (/:lang) and the 404 are added around them.

LegacyCountryAdapter​

Escape hatch for country apps still carrying concerns that don't fit the standard shell: a custom page tracker, a contact-us provider, extra providers, a legacy useApi() endpoint factory, or the route objects of a legacy router still being migrated to modules. Defaults to a noop adapter (defaultLegacyCountryAdapter).

import { type LegacyCountryAdapter, defaultLegacyCountryAdapter } from "@alaneu/global-shell";

Shells​

Product shells are module factories defined in their own packages: they collapse a persona's modules and configuration into one standard Module the app passes to GlobalApp. See Product shells.

Edit this page
Previous
Application
Next
modular-arch
  • GlobalApp
  • LegacyCountryAdapter
  • Shells