---
title: "Build an app"
description: "The practical path from a signed package to a hosted app with a bridge connection and declared capabilities."
url: "https://rumahl.com/developers/build-app"
section: "App development"
group: "Build apps"
updated: "21 November 2026"
---

# Build an app

> The practical path from a signed package to a hosted app with a bridge connection and declared capabilities.

**Area:** App development  
**Group:** Build apps  
**Updated:** 21 November 2026  
**Reading time:** 8 min  
**HTML:** https://rumahl.com/developers/build-app

## 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

1. Choose the runtime: start with a `web` app and a single `web-asset` entrypoint. Add a container only when the app needs a backend process.
2. Write the manifest. Keep identifiers stable and request only the permissions the app actually uses. Read [App packages and manifest](/developers/app-packages).
3. 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.network` and use the brokered request instead of a direct socket. Read [App hosting and bridge](/developers/app-hosting).
4. 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](/developers/app-resources).
5. Run the frontend, Rust and browser checks before calling the app releasable. Read [Testing and release](/developers/testing-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.

```json
{
  "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.

```js
// 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.
```

> [!IMPORTANT]
> **No direct app-to-app calls**
>
> 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

```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
```

## 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.

> [!WARNING]
> **Not a public catalog yet**
>
> 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

- [API reference](/developers/api)
- [App packages and manifest](/developers/app-packages)
- [App hosting and bridge](/developers/app-hosting)
- [OIDC for app login](/developers/identity-oidc)
- [Testing and release](/developers/testing-release)
