Architecture
Source: docs/architecture/index.md
Architecture
Korporus is built on three key technologies:
- Module Federation 2.0 — Runtime loading of independently-built JavaScript bundles
- Web Components — The boundary contract between the shell and apps
- The Shell — An OS-like host that discovers, loads, and renders federated apps
How It Works
- The shell starts and fetches app manifests from a known set of URLs
- Each manifest describes an app: its name, icon, and the Web Component tag names for its three slots (titlebar, main, settings)
- When a user opens an app, the shell uses the Module Federation runtime to dynamically import the app's
remoteEntry.js - The remote entry's
bootstrapmodule registers the app's Web Components as custom elements - The shell creates instances of those custom elements and mounts them in the appropriate layout slots
Sections
- Module Federation — How MF2 works in Korporus
- Web Components — The slot contract
- Shell — Shell app internals
- Manifests — App manifest schema and discovery