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
LegacyCountryAdapterextras. - Router: built once, when the modules are registered; lazy module loading is not supported.
- Route guards: logged-in routes sit behind
PrivateRouteand a capabilities gate fed byuseCapabilitiesHook, 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.