Skip to content

Manifest Reference (v1)

Every FynnCloud app is described by a manifest.json validated against https://apps.fynncloud.ch/schemas/app-manifest-v1.json (JSON Schema Draft 2020-12) and enforced server-side by AppManifestValidator.

{
"$schema": "https://apps.fynncloud.ch/schemas/app-manifest-v1.json",
"id": "calendar",
"name": "Calendar",
"version": "1.2.0",
"description": "Personal and shared calendars with RFC 5545 recurrences and .ics import/export.",
"author": "FynnCloud Project",
"category": "productivity",
"compatibility": {
"fynncloud": ">=1.0.0 <2.0.0"
},
"database": { "required": true, "engine": "postgres" },
"permissions": ["user:read", "groups:read", "notifications:send", "files:selected:read"],
"deploy": {
"image": "ghcr.io/fynncloudproject/app-calendar:1.2.0",
"port": 8080,
"resources": { "memory": "256MB", "cpu": 0.5 },
"healthcheck": { "path": "/health", "interval_seconds": 30, "timeout_seconds": 5 }
}
}

Field Required Type & Constraints Description
$schema No string IDE autocompletion URI (https://apps.fynncloud.ch/schemas/app-manifest-v1.json)
id Yes string (^[a-z0-9]+(-[a-z0-9]+)*$, length 2–32) Unique kebab-case app ID used for proxy URLs, container names, and Postgres schema names
name Yes string (length 2–64) Display name in App Store and workspace
version Yes string (strict SemVer) Release version (e.g. 1.2.0)
category Yes enum productivity, collaboration, office, media, ai, utilities, security, system, developer
compatibility Yes object Server version range and optional cross-app integration dependencies
description No string (max 280 chars) Concise one-line store summary
author No string Developer or organization name
icon No string (^[a-z0-9-]+:[a-z0-9-]+$) Optional Iconify fallback; primary icon is discovered from monochrome icon.svg
gallery No string[] (max 10, unique) Optional ordered list of filenames inside gallery/ (defaults to all images in gallery/ sorted alphabetically)
image No string Legacy top-level OCI image reference (prefer deploy.image). :latest is strictly forbidden
ui No boolean | object (default true) Workspace UI, launcher, background frame, and native sidebar config
drawer No { enabled?: boolean } (default true) Whether the app appears in the bottom app drawer
database No boolean | { required?: boolean, engine?: "postgres" } Auto-provisions an isolated PostgreSQL role and schema
storage No boolean | { volume_required?: boolean, mount_path?: string } Auto-provisions a persistent host Docker volume (default mount /data)
permissions No string[] (unique) Requested capability scopes (see exact 12 valid scopes below)
events No string[] | { endpoint?: string, subscriptions?: string[] } Webhook event subscriptions
hooks No { file_actions?: [], new_file?: [] } Context-menu actions and New menu entries in Files
deploy No object Container image, port, resource limits, healthcheck, env, rootfs, and UID
gateway No { public_paths?: string[] } Prefix allowlist for unauthenticated proxy routes
oauth No { redirect_uris: string[] } OAuth2 PKCE redirect URIs for native companion apps
push No { gateways: string[], voip?: boolean } Zero-knowledge push relay allowlist & VoIP flag

ui — Workspace Integration & Host Sidebar

Section titled “ui — Workspace Integration & Host Sidebar”

Set "ui": false for headless background/protocol apps (like Zipper or WebDAV), or configure an object:

Field Default Description
ui.launcher true Show icon in the far-left App Switcher rail. Set false for file-hook editors like draw.io.
ui.entrypoint "/" Initial subpath loaded in the app iframe (e.g. "/web").
ui.background false When true, the host warm-mounts a hidden sandboxed iframe after idle hydration so the app receives real-time events, incoming call rings, and badge updates before the user opens it.
ui.sidebar_mode "integrated" "integrated" renders ui.sidebar[] inside FynnCloud’s host sidebar; "rail" collapses the host sidebar to an icon rail so the app renders its own full sidebar (e.g. Talk).
ui.sidebar [] Array of host sidebar items (can also be updated dynamically at runtime via fynncloud.setSidebar()):

Each ui.sidebar[] entry supports:

  • Required: id, label, icon, position ("top_nav" or "bottom_nav"), target (app subpath).
  • Optional: variant ("default" | "danger"), collapsible (boolean), defaultOpen (boolean), action ({ id, icon?, title? } — emits sidebarAction), badge ({ poll_endpoint?, color? }), and nested children.

compatibility — Server Range & Cross-App Integrations

Section titled “compatibility — Server Range & Cross-App Integrations”
"compatibility": {
"fynncloud": ">=1.0.0 <2.0.0",
"apps": [
{
"id": "calendar",
"version": ">=1.0.0 <2.0.0",
"optional": true,
"access": "read"
}
]
}
  • compatibility.fynncloud: Space-separated comparators (>=, >, <=, <, =). FynnCloud refuses to install or serve an app whose range excludes the running server version.
  • compatibility.apps (up to 20 entries): Declares other FynnCloud apps your app may call through the host’s cross-app proxy (/api/apps/:targetId/proxy/** via fynncloud.fetchApp() or server-to-server proxy).
    • access: "read" (default — GET/HEAD only) or "write" (all proxied methods).
    • optional: true (default) or false.
    • Upgrade consent gate: Adding a new target app or escalating access from "read" to "write" during an app upgrade triggers 409 Conflict requiring explicit administrator approval, just like widening permissions.

permissions — All 12 Valid Capability Scopes

Section titled “permissions — All 12 Valid Capability Scopes”

Only these exact 12 strings are valid in manifest.json and AppScope.swift:

Scope Capability Granted
files:all:read Read any file/folder in the user’s drive + drive-wide endpoints (/all, /search, /recent, /favorites, /shared, /trash, /resolve) + receive file.* webhooks
files:all:write Upload, modify, rename, move, or delete any file/folder in the user’s drive
files:selected:read Read only files/folders explicitly passed via a file action, pickFiles(), or new_file hook (allowedFileIds / allowedFolderIds)
files:selected:write Write/create only inside explicitly selected files or the user-chosen destination: "folder"
user:read Read /api/user/me, /api/user/quotas, /api/user/:id/avatar, /api/directory/recipients, /api/directory/groups, /api/presence, and receive presence.updated on /api/events
groups:read Server-to-server (X-FynnCloud-App-Secret) resolution of group memberships (/api/directory/groups/:groupID/members)
users:events Subscribe to user.* and group.* webhooks
presence:write Update signed-in user’s Core presence (PUT /api/user/status) and publish elevated app activity headlines (PUT /api/apps/presence/activity)
notifications:send Send/dismiss persistent host notifications (POST /api/apps/notifications), set badges (PUT /api/apps/badges), register mobile push devices (/api/push/devices)
realtime:push Fan out live events to the app’s frames over the host SSE stream (POST /api/apps/realtime/publish)
rtc:rooms Mint namespaced LiveKit SFU room tokens & moderate rooms (/api/rtc/*). Combined with notifications:send (and push.voip: true), unlocks iOS PushKit VoIP (apns-voip).
media:capture Request microphone, camera, or screen capture through the host WebRTC media relay

Registers right-click context menu items (and primary click handlers) in the Files browser:

Field Required Values / Notes
id, label, icon, target Yes Action identifier, menu label, icon, and target route (UI subpath or backend POST path)
extensions Yes Lowercase extensions without dots (e.g. ["drawio", "xml"]) or ["*"] for all files/folders
mode No "navigate" (full app page), "modal" (overlay iframe editor), or "background" (server POSTs directly to app backend without opening an iframe)
role No "action" (default) or "open" (becomes primary handler on single-click and promoted to Open at top of context menu)
destination No "folder" — prompts the user with Choose where to save before invoking; files:selected:write token is confined to that destination folder

Registers entries inside the toolbar New menu (e.g. draw.io’s New Diagram):

  • Required: id, label, icon.
  • Optional: extension, default_filename (e.g. "Untitled Diagram.drawio"), target (default "/"), mode ("modal" default or "navigate").

  • image (required): Explicit version tag or @sha256: digest; :latest is rejected.
  • port: 1..65535 (default 8080).
  • architectures: Subset of ["amd64", "arm64", "arm/v7"] (default ["amd64", "arm64"]).
  • resources.memory: Default "256MB" (clamped server-side to safe bounds).
  • resources.cpu: Default 0.5 cores (clamped server-side to safe bounds).
  • healthcheck: { path: "/health", interval_seconds: 30, timeout_seconds: 5 }.
  • read_only_rootfs: Default true (/tmp, /run, and mounted storage volumes remain writable).
  • user: Optional numeric uid[:gid]. UID 0 (root) is rejected by AppManifestValidator.
  • env: Optional string map of default non-secret environment variables.

Up to 20 path prefixes (^/[^?]*$, max 200 chars; optional trailing /* or /**) forwarded without FynnCloud session authentication—for apps that authenticate protocols themselves (such as WebDAV with HTTP Basic auth). For UI apps, GET/HEAD requests outside /api/** are already served anonymously so the opaque-origin iframe can load its static JS/CSS shell.

Up to 10 unique OAuth2 PKCE callback URIs (max 512 chars) for native companion apps (client_id: app:<id> or app:<id>:<variant>):

  • Custom native schemes (e.g. fynncloud-talk://auth) — disallowed schemes like javascript:, data:, file:, http: (non-loopback) are rejected.
  • https:// public URIs.
  • RFC 8252 loopback URIs (http://127.0.0.1/..., http://[::1]/..., http://localhost/...) — port matching follows RFC 8252 dynamic loopback port semantics.
"push": {
"gateways": ["https://push.fynncloud.ch/v1/push"],
"voip": true
}
  • gateways (required, 1–5 unique URLs, max 512 chars): Must be valid https:// public URLs (no credentials, no private/loopback hosts — enforced by AppManifestValidator.isValidPushGatewayURL).
  • voip (default false): Permits apns-voip token registration on iOS (requires notifications:send + rtc:rooms).