Build an app
The practical path from a signed package to a hosted app with a bridge connection and declared capabilities.
The app model
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 platform imports the package, publishes verified web assets or stages a container image reference, and grants launch only for the live account and installation.
- A manifest named package.json describes the app, runtime and requested permissions.
- Web apps use a web-asset entrypoint and run in a sandboxed iframe.
- Container apps use a container-artifact entrypoint and the runtime supervisor.
- Native apps are defined in core, but the native runtime trust policy is not enabled yet.
Build path
- Choose the runtime: start with a
webapp and a singleweb-assetentrypoint. Add a container only when the app needs a backend process. - Write the manifest. Keep identifiers stable and request only the permissions the app actually uses. Read App packages and manifest.
- Connect the shell through the bridge. Use the documented methods for info, theme, settings, notifications, windows and capabilities. For a local service, declare
com.rumahl.os.networkand use the brokered request instead of a direct socket. Read App hosting and bridge. - Sign the package, import it through
POST /api/v1/shell/apps/import, and test launch, settings, data and runtime state. Read Install, uninstall and databases. - Run the frontend, Rust and browser checks before calling the app releasable. Read Testing and release.
A minimal manifest
This is the smallest useful web-app shape. Replace the example identifiers and digest. Unknown manifest fields are rejected, so add fields from the documented contract rather than inventing them.
{
"formatVersion": 1,
"publisherId": "com.example",
"app": {
"appId": "com.example.notes",
"version": "0.1.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": []
},
"files": [
{ "path": "index.html", "size": 1234, "sha256": "<hex digest>" }
]
}
Connect the bridge
A web app does not receive the shell session. It talks to the shell through the bridge and registers capability handlers with the platform. Keep the return shape of your capability documented with the app.
// Inside the hosted web app.
rumahl.provide('com.example.notes.search', async (request) => {
return searchNotes(request);
});
// The shell can now invoke the declared capability.
// The platform still decides whether the caller is authorized.
Apps never communicate directly. A provider handles a declared capability through the platform, and a capability request is not a permission grant.
Sign and import
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
Design for the boundaries
- Request the narrowest permission scope that supports the feature.
- Treat resources as logical references, never host paths.
- Do not assume a capability grant survives a different account or session.
- Keep public web assets free of secrets; an app host strips cookies and Authorization.
- Test denial, malformed input and missing permissions, not only the successful path.
- Declare com.rumahl.os.settings for app settings and com.rumahl.os.network for brokered HTTP(S); neither is granted by installation alone.
The signed package and capability foundations exist for development. A polished public catalog, general self-service installation and update execution are not released. Check the current status before promising an installation flow.
Continue
Need more context? Read the source or open a discussion with the project.