Plan · area

Hosting

Admins of hosted relays install apps from the hosting panel, either one at a time or as bundles. Installing changes the relay, so the hosting backend and zooid do most of the work, and Flotilla shows the result.

Today#

Settings → Hosting manages a tenant's zooid relays through the hosting backend. Each relay has a plan, which can include Blossom and livekit, and flags such as groups_enabled, blossom_enabled and policy_strip_signatures. The panel reads and writes them with getRelay and updateRelay in areas/hosting/api.ts. Apps become one more section of a relay's settings.

The Apps section#

The section lists the relay's installed apps. Each entry shows its icon, title, author, pinned version, and an update badge when a newer version exists. Admins can add an app from the curated catalog, add a bundle, or paste the naddr of any napplet. Each entry has Update and Remove.

An update shows what it changes before the admin accepts it: the domains it requires, the kinds and surfaces it handles, its title and its size. Accepting pins the new version. Removing an app takes it out of the menus and stops its surfaces. Its events stay on the relay, and their cards fall back to the alt text.

Installing#

  1. Pick
    The admin picks an app or a bundle. Flotilla resolves each manifest and verifies the artifact, as it does before running one.
  2. Review
    Flotilla shows what each app requires and which kinds it will publish in the space. Apps that require domains Flotilla doesn't offer are marked.
  3. Install
    The backend records the app and its pinned snapshot, and mirrors the artifact and media to the relay's Blossom server.
  4. Apply
    Zooid accepts the app's kinds and publishes a new app list signed with its key.
  5. Appear
    Members' Flotilla clients sync the list and show the app's surfaces. The app now runs without prompts in that space, as the trust model describes.

Backend and relay changes#

PartChangeReason
Hosting backendEndpoints to list, install, update and remove a relay's appsThe panel talks to relays only through the backend
Hosting backendMirror each installed artifact, icon and screenshots to the relay's Blossom serverA space keeps working when the author's servers go away
Hosting backendA daily check of each installed app's address for newer versionsThe panel shows updates without the admin looking
ZooidPublish the app list, signed with the relay's key, whenever it changesFlotilla trusts the relay's own list first
ZooidAccept the kinds that installed apps declare, where the relay restricts kindsA content type is useless if the relay rejects its events
ZooidKeep an app tag in room metadataApp rooms read it, as voice rooms read the livekit tag
ZooidServe mirrored artifacts on every plan, up to a size limitNapplets are small single files, and apps shouldn't depend on the media plan

Catalog and bundles#

The catalog is a set of napplets published by a curator. Each deployment configures the curator's pubkey with a VITE_PLATFORM_* variable, so the catalog follows the deployment's brand like the rest of its configuration. Bundles are named sets from the same curator.

These are the proposed first bundles. The napps page describes each app.

BundleAppsFor
KnowledgeWiki, QuestionsCommunities that build shared documentation
OrganizingTasks, Sign-up sheetsGroups that run events, projects or volunteer shifts
RecognitionBadgesCommunities that reward contributions
PlayWhiteboard, Chess, TriviaSocial spaces, as app rooms

The Polls napp isn't in the catalog. It exists to check content surfaces against Flotilla's native polls.

Relays the platform doesn't host#

The directory gives admins of other relays an Install button that adds the app to an app list signed by the admin. That list uses the same format, and Flotilla trusts it when the relay hasn't signed one. These relays get no mirroring or kind policy, so apps on them depend on the author's Blossom servers and on the relay accepting their kinds.

Work#

ItemWhereMilestone
Backend app endpoints and data modelHosting backendM4
Artifact mirroring and the update checkHosting backendM4
Relay-signed app lists, kind policy, room app tagZooidM4
Apps section in the relay's hosting page, with catalog, bundles and updatesFlotillaM4
Curator configuration and the first bundlesFlotilla and the curatorM4

Hosting is off on iOS, so installing is too. Apps installed elsewhere still run on iOS once ENABLE_NAPPLETS is on there.