All articles
Back to Developers
Shell & UI

Shell, routing & UI contracts

One URL, two presentations, the first-party route registry, installed app hosting and the engine-neutral ui-contracts boundary.

8 min read Updated: 20 October 2026
Markdown

One address, two presentations

Desktop or launcher is a persisted preference, not a route parameter. Reload and Back/Forward preserve the route; login returns to a validated deep link.

URLMeaning
/Desktop dashboard or app grid in launcher mode
/appsFirst-party apps and authorized installed-app catalog
/app/:appId/*App identifier and an app-owned nested route
/settings/*Settings modules and nested pages
/settings/displayPresentation controls
/recoveryStandalone Rust recovery environment

Route ownership

  • App.tsx owns the live snapshot/session boundary, locale provider, router and shell.
  • routing/routes.tsx is the first-party route table with navigation, title and window metadata.
  • apps/registry.tsx registers trusted first-party app declarations and nested routes.
  • Third-party manifests cannot register React components in this table.
  • Installed apps are consumed through the Rust catalog and hosted in an isolated frame.
  • Unknown apps and nested pages get explicit unavailable/not-found views.

UI contracts

ui-contracts is the engine-neutral compatibility boundary between the authoritative Rust platform and replaceable shell renderers. It contains no React, Node.js, HTTP, database, runtime-engine or privileged platform integration.

  • Strict ShellSnapshot parsing with explicit snapshot, UI and extension API versions
  • Declarative theme manifests with an allowlisted token and variant set
  • Deterministic CSS compilation from validated values
  • Command, search-provider and reserved dashboard-widget projections
  • Checked-in JSON schemas, TypeScript bindings and compatibility fixtures

Preferences

Shell mode and device preferences are synchronized through versioned APIs. Account-wide settings follow the same account on other browser profiles; a device override takes priority and can be removed. Rust persists authoritative values; clients use Local Storage with Session Storage fallback and surface stale-write conflicts.

Need more context? Read the source or open a discussion with the project.

On this page