Developer Manual
Welcome to the FynnCloud Developer Manual. FynnCloud’s App Platform runs every third-party app inside an isolated, least-privilege OCI container behind FynnCloud’s authenticating gateway—giving developers full freedom of language and stack (Node.js, Go, Rust, Python, Swift, static SPA) while enforcing strict tenant isolation, scoped JWTs, HMAC-signed identity proofs, and sandboxed opaque-origin iframes.
Building FynnCloud Apps
Section titled “Building FynnCloud Apps” Architecture & Getting Started Gateway request flow, local development with ./dev.sh, and the exact REST API allowlist for app tokens.
Manifest Reference (v1) Complete app-manifest-v1.json schema: all 12 scopes, UI sidebar/background modes, file hooks, compatibility.apps, deploy clamps, OAuth, and Push.
Runtime, Storage & Gateway Security Container hardening, isolated Postgres/volumes, HMAC-SHA256 gateway identity signatures, cross-app proxy, and CSP merging.
Permissions, OAuth & Token Flows All 12 capability scopes, AppAccessToken JWT claims, native OAuth2 PKCE companion apps, background file actions, and 409 upgrade gates.
Frontend App Bridge SDK Exhaustive @fynncloud/app-bridge reference: BridgeContext, all 14 events, all 24 RPC/SDK methods, localStorage limits, and the media:capture relay.
Webhooks, Notifications, Presence & Realtime Signed webhooks, persistent host notifications, badges, 3-signal Presence Engine, and host-multiplexed SSE (/api/events & realtime/publish).
Zero-Knowledge HPKE Push & LiveKit RTC Register mobile push devices with X25519/AES-256-GCM HPKE encryption and mint app-isolated LiveKit SFU room tokens via /api/rtc/*.
Publishing & Catalog CI Catalog validation rules (SDK compatibility, monochrome SVG, hero >= 1280x720, multi-arch OCI digests) and admin lifecycle endpoints.
FynnCloud Server & Core APIs
Section titled “FynnCloud Server & Core APIs” Backend REST API Reference Every HTTP endpoint, auth mechanism, rate-limit category, Push/RTC/AIO System routes, and BackupFreezeMiddleware behavior.
Multipart Chunked Uploads The 3-step upload protocol, Redis Lua byte guards, zero-byte completion, live revocation checks, and versioning quota rules.
SettingsService Architecture Typed SettingKey / RangedSettingKey, SecretBox AES-256-GCM encryption, _FILE loading, and Redis Pub/Sub invalidation.