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#
- PickThe admin picks an app or a bundle. Flotilla resolves each manifest and verifies the artifact, as it does before running one.
- ReviewFlotilla shows what each app requires and which kinds it will publish in the space. Apps that require domains Flotilla doesn't offer are marked.
- InstallThe backend records the app and its pinned snapshot, and mirrors the artifact and media to the relay's Blossom server.
- ApplyZooid accepts the app's kinds and publishes a new app list signed with its key.
- AppearMembers' 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#
| Part | Change | Reason |
|---|---|---|
| Hosting backend | Endpoints to list, install, update and remove a relay's apps | The panel talks to relays only through the backend |
| Hosting backend | Mirror each installed artifact, icon and screenshots to the relay's Blossom server | A space keeps working when the author's servers go away |
| Hosting backend | A daily check of each installed app's address for newer versions | The panel shows updates without the admin looking |
| Zooid | Publish the app list, signed with the relay's key, whenever it changes | Flotilla trusts the relay's own list first |
| Zooid | Accept the kinds that installed apps declare, where the relay restricts kinds | A content type is useless if the relay rejects its events |
| Zooid | Keep an app tag in room metadata | App rooms read it, as voice rooms read the livekit tag |
| Zooid | Serve mirrored artifacts on every plan, up to a size limit | Napplets 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.
| Bundle | Apps | For |
|---|---|---|
| Knowledge | Wiki, Questions | Communities that build shared documentation |
| Organizing | Tasks, Sign-up sheets | Groups that run events, projects or volunteer shifts |
| Recognition | Badges | Communities that reward contributions |
| Play | Whiteboard, Chess, Trivia | Social 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#
| Item | Where | Milestone |
|---|---|---|
| Backend app endpoints and data model | Hosting backend | M4 |
| Artifact mirroring and the update check | Hosting backend | M4 |
| Relay-signed app lists, kind policy, room app tag | Zooid | M4 |
| Apps section in the relay's hosting page, with catalog, bundles and updates | Flotilla | M4 |
| Curator configuration and the first bundles | Flotilla and the curator | M4 |
Hosting is off on iOS, so installing is too. Apps installed elsewhere still run on iOS once ENABLE_NAPPLETS is on there.