Awesome Cohub
中文
Conceptscohub.concept.app-center2 min

The App Center is the Space-level home for installed Apps. It appears alongside Files in the desktop sidebar and mobile drawer, and provides enable, disable, and uninstall controls. A first-party Marketplace App supplies discovery and installation.

Installed-App manifest

Installed Apps are stored in the current Space as a validated file:

.cohub/apps.json

The document uses format cohub.space-apps, version 1, and supports up to 1,000 entries. Each entry records a UUID, canonical username/space/app reference, launch URL, enabled state, source, display snapshot, and installation timestamp. Sources can be a Marketplace catalog entry or a validated HTTP(S) URL.

This file is an installed-App catalog, not the database of published Apps. Installing an entry does not grant the App extra permissions and does not change its publisher or viewer grants.

Runtime behavior

  • The Marketplace App is opened with an invocation Space and asks for file.view to browse it and file.edit to install changes.
  • A viewer can choose a different Space through client.auth.requestSpace(); the App learns the selected Space rather than the viewer's complete list.
  • Catalog and manifest reads use bounded validation and small LRU caches.
  • Writes include the file's expected mtimeMs and size, plus a mutation id, so two clients do not silently overwrite one another.
  • App Center state refreshes across clients through the Space realtime/file-change path.

Distinguish the layers

LayerMeaning
Published AppA public file, directory, or port surface owned by a Space
Marketplace catalogValidated discoverability metadata and launch URLs
Installed-App manifestThis Space's enabled/disabled local list in .cohub/apps.json

See App Center installation for the user flow and safe manifest updates.