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
  • Core framework

Core framework

Alpha

This framework is actively being developed. APIs and naming may change. The canonical terminology is documented in the Front-end north star architecture Notion page.

Under construction

These docs are a work in progress and may be incomplete.

The Core framework provides the building blocks for building modular, multi-country applications at Alan. It enforces dependency inversion and declarative configuration, enabling country expansion without code duplication.

Quickstart​

A minimal country app (like Canada) looks like this:

import type { ComponentType } from "react";

import { customerDashboardShell, rootPath } from "@alan-eu/global-customer-dashboard/module";
import { customerAdminManagementModule } from "@alaneu/customer-admin-management";
import { api } from "@alaneu/global-api/ca";
import { GlobalApp } from "@alaneu/global-shell";

export const createApplication = (): ComponentType => {
// the customer dashboard shell is a module, built from the dashboard modules and the menu
const dashboardModule = customerDashboardShell({
modules: [myDashboardModule, customerAdminManagementModule],
menu: { main: { order: 1, items: ["employees", "admins"] } },
});

const myModules = [someAdhocModule, dashboardModule];

return () => <GlobalApp homePage={`/${rootPath}/my-page`} api={api} modules={myModules} />;
};

How it fits together​

GlobalApp (modules)
│
├── Core features (auth, user, feature-flags)
│
├── Dashboard shell module (customerDashboardShell({ modules, menu }))
│ ├── Dashboard modules
│ │ ├── Screens (routed views)
│ │ ├── Menu items (declared on each module, placed by the menu)
│ │ └── Translations
│ ├── Layouts (CustomerDashboardLayout, FullPageLayout, …)
│ └── Menu (sections in rank order, items by key)
│
└── Standalone features
├── Screens (routed views)
├── Services (singletons with lifecycle)
└── Translations (i18n namespaces)

Key packages​

Temporary package hierarchy

The package hierarchy is likely to change heavily in the coming weeks, this table is only informative to document the current state of affairs.

PackagePurpose
modular-archDefines the foundational types and tools: Module, Screen, Service, WithModules
global-shellProvides the GlobalApp component that orchestrates features into a running web app
global-customer-dashboardA product shell for the admin dashboard, with layouts and menus

Glossary​

TermDefinition
GlobalAppRoot component orchestrating features and shells into a running app. Renders the provider stack and derives the router from the registered modules.
FeatureA declarative set of screens, services and translations contributed to an application. Defined using the Module type from modular-arch.
ShellA module factory that groups related modules for a persona (admins, members, ops). Supplies layouts, menus, and cohesive UX.
Product shellA specific shell (e.g. customerDashboardShell) providing an out-of-the-box UX for a persona.
ScreenA universal view abstraction exposed through an application, mapped to a route.
ServiceA singleton managing logic and state within a feature, with lifecycle hooks.
LayoutA reusable view structure with named insertion points (slots).
PackageA folder with a package.json containing cohesive code — may provide one or more Features.
ConfigurationAssembles product shells and domain features together. Country-specific when needed.
Edit this page
Previous
Overview
Next
Application