All articles
Back to Developers
Architecture

Architecture

The current repository boundaries, platform invariants and the path from the React shell to the Rust domain core.

9 min read Updated: 20 October 2026
Markdown

Platform invariants

  • Core provides mechanisms, not products, and contains no app-specific behavior.
  • Apps never communicate directly with other apps.
  • Apps depend on capabilities, not concrete providers.
  • Permission request is not permission grant; capability is not contribution.
  • Every operation has an identity.
  • Resources are logical references, never host paths.
  • First-party and third-party apps use the same platform contracts.
  • Privileged OS operations run in isolated services.
  • Transport, persistence, authentication and UI concerns stay outside the domain core.

System overview

text
Frontend / OS shell
  frontend/
        │
        ▼
Platform web / API
  platform-web/ · platform-api/
        │
        ▼
Platform service
  platform-service/
        │
        ├── account-auth/ · oidc-provider/
        ├── app-operations/ · app-packages/
        └── persistence-sqlite/
                 │
                 ▼
             Domain core
                 core/

Source map

PathResponsibility
core/Domain concepts, policies and platform invariants
platform-api/Stable contracts without implementation leakage
platform-service/Composition of core, auth, persistence and app operations
platform-web/HTTP, HTTPS gateway, shell snapshot, apps and OIDC adapter
app-packages/Signed package manifest, verification, import and CLI
app-operations/Durable install/uninstall journal across providers
account-auth/ · oidc-provider/Local accounts and OpenID Connect
persistence-sqlite/SQLite snapshots, accounts, operations, databases and secrets
frontend/React shell, SSR, bridge client, UI kit and Storybook
ui-contracts/Engine-neutral snapshot, theme and extension contracts
platform-buildroot/System image and service integration

Boundaries

Dependencies point toward the domain core. Infrastructure implements platform concepts with SQLite, HTTP, OAuth/OIDC or host services; those details must not leak into core types.

  • UI and transport call platform services.
  • Platform services orchestrate domain rules and infrastructure.
  • Core defines identity, permissions, resources and lifecycle rules.
  • Buildroot is an implementation detail of the image, not the application-facing API.

Identity and accounts

rust OS supports multiple local user accounts. Account selection and session state are explicit, and changing the active desktop account must not silently change an existing app or OAuth session. rumahl OS is also its own standards-compliant OpenID Provider for installed applications.

Detailed documentation

The repository keeps subsystem documents under docs/architecture/. The developer docs here mirror the current implementation and call out deferred work explicitly.

  • Account and OpenID Connect
  • App databases, hosting and resource operations
  • Buildroot acceptance and migration
  • Filesystem layout, injection safety and secret store
  • Shell preferences and routing
  • Storage and updates
  • Offline behaviour

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

On this page