All articles
Back to Developers
Packages & manifest

App packages & manifest

The signed directory package, the package.json manifest, runtime kinds, capabilities, permissions, connectors and the signing CLI.

10 min read Updated: 21 November 2026
Markdown

Package boundary

An app is a signed directory package. A detached Ed25519 signature covers the exact manifest bytes, and every payload file is authenticated by SHA-256. The importer publishes verified web assets or stages a container image reference; it never trusts manifest paths or host directories.

  • Manifest filename: package.json
  • Manifest limit: 1 MiB
  • Payload limit: 2,048 files, 64 MiB per file, 256 MiB total
  • Unknown manifest fields are rejected

Manifest example

json
{
  "formatVersion": 1,
  "publisherId": "com.example",
  "app": {
    "appId": "com.example.notes",
    "version": "1.0.0",
    "displayName": "Notes",
    "runtime": {
      "kind": "web",
      "entrypoints": [
        { "id": "main", "kind": "web-asset", "path": "index.html" }
      ]
    },
    "lifecycle": "on-demand",
    "permissions": [
      {
        "id": "com.rumahl.os.window",
        "scope": "user-own",
        "required": true,
        "reason": "Control its own window"
      }
    ],
    "providedCapabilities": ["com.example.notes.search"],
    "settings": [
      {
        "key": "mode",
        "title": "Mode",
        "type": "select",
        "options": [{ "value": "light", "label": "Light" }]
      }
    ]
  },
  "files": [
    { "path": "index.html", "size": 1234, "sha256": "<hex digest>" }
  ]
}

Runtime kinds

KindEntrypointCurrent behaviour
webweb-assetPublished under the installation asset root and hosted in a sandboxed iframe
containercontainer-artifactStaged through the runtime supervisor; lifecycle on-demand or always-on
nativeendpointDefined in core, native runtime trust policy is not enabled yet

Permissions and capabilities

A permission request declares what the app needs; the platform decides whether to grant it. A capability is a named operation an app provides to other apps. Requesting a capability is not a grant, and providing one is not the same as contributing UI.

FieldMeaning
permissions[].idValidated permission identifier
permissions[].scopeapp-private, user-own, user-selected, explicit, family-shared or system
permissions[].requiredWhether installation can continue without it
providedCapabilities[]Capabilities this app can serve through the bridge
connectors[]External service target plus a container-artifact entrypoint

Settings and network access

Integration apps often need configuration and a way to reach a local service without receiving a socket or a secret. Both are generic platform resources and both require an explicit capability declaration in the signed manifest.

  • com.rumahl.os.settings lets an app read and write only its own manifest settings.
  • A secret setting is write-only: it is encrypted at rest and never returned to the app.
  • com.rumahl.os.network lets the OS perform a brokered HTTP(S) request to an origin the user approved for that installation.
  • Network consent is per installation, user and exact origin; it can be session-bound or durable with an expiry.
  • The app never receives a socket, cookie jar or secret plaintext, and the platform rechecks consent on every call.

Connectors in the manifest

A connector bundle targets an external service such as nextcloud or plex. The OS installs the bundle and registers the app as an OIDC relying party for that service. The broader open connector specification for arbitrary NAS and smart-home providers is product direction, not a frozen public API yet.

json
"connectors": [
  { "target": "nextcloud", "entrypoint": "main" }
]

Sign and verify

bash
cargo run -p rumahl-app-packages --bin rumahl-package -- keygen \
  --key-id example-1 \
  --publisher com.example \
  --keystore keys/example.json

cargo run -p rumahl-app-packages --bin rumahl-package -- sign \
  --package dist/notes \
  --manifest dist/notes/package.json \
  --keystore keys/example.json

cargo run -p rumahl-app-packages --bin rumahl-package -- verify \
  --package dist/notes \
  --trust-store trust.json

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

On this page