Skip to content
App package

App package

An App package is the immutable, versioned artifact fetched from an App source. It carries the files the Host needs to inspect and run an App. It is not a container image, but contains the Wasm files, configuration and meta data for the App.

Package contents

The package is a ZIP archive with the .wasmapp extension that can look like this:

/manifest.json
/client.wasm       # optional
/server.wasm       # optional
/assets/           # optional, host-served UI assets such as icons
/schemas/          # optional, JSON Schemas for custom Dataset kinds

manifest.json is required and describes the package id and version, optional module paths, capability allowlist with localized rationale and optional suggested parameters, kind allowlists, and named server event handlers. It is static package metadata, not executable configuration.

One or both Wasm modules may be absent. Assets can contain for example the app icon and are accessed through the Host/Shell.

The exact manifest schema and archive limits remain to be specified. Do not include source code, build scripts, dependencies to be installed by the host, user data, or per-install configuration in a release package.

Identity and install behavior

  • The package id is reverse-DNS (for example, org.example.notes) and identifies the App in a repository. The display name is for people and is not a security or routing identifier.
  • The package does not contain an install id. The Instance assigns an opaque Host-owned install id for each installation and records the selected source plus package id.
  • There is one code install per package binding. A different source is a separate binding; an installed App stays pinned to its selected source for updates.
  • The Host reads the static manifest after fetching the package. A change to the capability allowlist, kind allowlists, or named event handlers is an App update.
  • The Host owns External URL namespaces; Apps do not claim global paths. External protocol paths are scoped to Grants and Views, not App slugs.
  • Server modules are event-driven; they do not receive a general public App HTTP API. Runtime registrations (such as webhooks, schedules, or DAV collections) require an allowlisted capability and consent. Owners separately grant Dataset access. The Instance admin’s capability approval does not grant Dataset access.

The identity split is deliberate: reverse-DNS package id for catalog identity, opaque install id for Instance-local Grants, routing, and storage, and a separate display name for people. Do not use display names or source-local short slugs as security or routing identifiers. See the store identity research for the comparison and rationale.

Dataset kinds/Schemas

See datastore kinds/schemas

Ecosystem comparison

There is no single overview that covers all software packages consistently across ecosystems. For further comparisons, see Baeldung’s Linux package comparison for Snap, Flatpak, and AppImage, cpak’s comparison for Linux distribution options, and File Formats’ code package list for a broader list of extensions and container types.

Ecosystem Artifact and container format Metadata location Other format details
Android APK (installable, ZIP-based); AAB (publishing input, ZIP-based) APK: AndroidManifest.xml; AAB: each module has manifest/AndroidManifest.xml. APK signatures use Android’s signing schemes. Google Play processes an AAB and generates device-specific APKs; the AAB itself is not installed directly.
Java JAR (ZIP) Optional META-INF/MANIFEST.MF; optional signature files in META-INF/ JAR adds conventions to ZIP, so generic ZIP tooling can still inspect its entries.
Nextcloud App release archive (.tar.gz, gzip-compressed tar) app-id/appinfo/info.xml inside the archive The store reads and validates info.xml; release upload can include a detached SHA-512 signature.
Arch Linux .pkg.tar.zst (zstd-compressed tar) .PKGINFO at the archive root .PKGINFO supplies pacman metadata such as version and dependencies; package files share the same archive.
Debian .deb (ar outer archive containing debian-binary, control.tar.*, and data.tar.*) control.tar.* holds package control metadata; data.tar.* holds installed files The outer format has a version marker; the control archive can also contain maintainer scripts.
RPM .rpm (RPM header and signature followed by a compressed cpio payload) RPM header stores package information and file list; signature section stores signatures A package-manager format with a metadata-rich header and installable file payload.
Flatpak OSTree repository commit; optional .flatpak single-file bundle (static delta, or OCI when requested) Flatpak metadata accompanies the bundle; repository and app metadata are associated with OSTree commits The repository model supports content-addressed deployment and updates; a single-file bundle is a separate export path.
Snap .snap (read-only SquashFS filesystem image) meta/snap.yaml inside the image Snap is mounted read-only at install time; metadata also declares apps and hooks for snapd.
AppImage Single executable combining a runtime and SquashFS filesystem image AppDir contents, typically including AppRun, a desktop entry, and icons; no single general package manifest The runtime mounts the embedded image read-only and launches the app; designed for portable Linux app distribution.
npm Published package is a gzip-compressed tarball (.tgz) Required package.json in the tarball Registry packages are generally source or library modules installed into a managed dependency tree, rather than standalone apps.

Is ZIP the right format?

I don’t know. I’m open to discuss it.