Platform · frontend
One shell. Two presentations.
The rumahl OS shell owns OS-level navigation, window behavior and preference state. Apps provide content through explicit contracts; they do not take over the shell.
One address, two presentations
The same HTTPS origin serves the authenticated desktop shell and the login/SSR entry. The gateway preserves the exact origin for session and CSRF checks. The shell can render desktop and launcher modes without changing the platform boundary.
| Route area | Owner |
|---|---|
/ | Shell document and client router |
/app/:appId/* | Installed app host, resolved by the platform |
/settings/* | Shell settings surfaces |
/recovery | Separate recovery environment served by Rust |
/api/v1/* | Platform API, never app-rendered |
Snapshot contracts
Rust is authoritative for the shell snapshot and authorization. The frontend consumes a bounded snapshot; it does not derive permission from a visible control or a local preference.
- Account and session state are explicit.
- App catalog entries are session-filtered and bounded.
- Preferences are versioned and persisted by the platform.
- Live events update the snapshot; a reconnect must re-establish authorization.
Custom front page in the browser
The shell front page is owned by the shell. It is not a user-supplied HTML slot. Customize it through the supported presentation settings: desktop or launcher mode, launcher/shell layout variants, the active RUI theme, wallpaper and account/device preferences. A web app can be a useful front-page experience, but it opens in an app window; it cannot replace the shell or inject arbitrary chrome.
- Use a theme package for visual identity.
- Use shell and launcher variants for structure, not for embedding arbitrary markup.
- Use a storefront source for a custom catalogue front page; see Build a store and Build a custom storefront.
- There is no documented browser new-tab or shell-homepage plugin API. Do not assume one.
App surfaces
An installed app runs in an isolated iframe. The shell owns the frame host, the launch lease and the bridge channel. The app owns only its own document and uses declared bridge methods for information, theme, settings, notifications, windows and capabilities.
shell frame host
│ postMessage · rumahl.bridge.v1
▼
app iframe (opaque origin)
│ declared methods only
▼
platform authorization
│
▼
capability / settings / notification result
Preferences and themes
The shell owns the active theme and presentation preferences. A theme supplies semantic tokens; components read those tokens rather than local colors. Theme changes are pushed to apps as semantic variables and must respect the user’s reduced-motion setting.
- Desktop and launcher modes are shell state, not app routes.
- An app window does not silently change the account session.
- Preferences survive a reload and remain scoped to the account or device as defined.
- Theme variables are projections of tokens, not a second color system.
Quality checks
Shell changes must be checked in the real shell at desktop and narrow widths, with keyboard focus, long app titles, missing app data and revoked sessions. A fixture-only demo cannot validate authentication, persistence or backend permissions.
Next
- Hosting and bridge — launch leases and isolation.
- Testing and release — browser and shell checks.
- API reference — shell and preference routes.
Was this page helpful?