An App is a published, shareable surface from a Space target: file | directory | port. The product's older user-facing name was Work.
The v2.37 vocabulary migration makes App the canonical developer term:
- SDK/API:
client.apps,appScopes,apps.getBySlug() - CLI:
cohub apps ... - Management route:
/spaces/:spaceId/apps/:appId - Public URL:
/:username/:spaceSlug/w/:appSlug(the/w/segment remains) - Legacy
client.works,workScopes, andworksCLI spellings remain compatibility aliases where exposed
Practice
- Static sites: publish a directory with relative assets and
base: "./". - Interactive Cohub features: use the published App shell, not a raw asset URL or local preview.
- App scopes are direct publisher grants for the App's home Space; viewer grants are consented per Space at runtime.
- File and directory Apps publish immutable manifests and support checksum-verified downloads. Board and port Apps are runtime surfaces, not restorable file bundles.
- Query parameters and URL fragments are forwarded to embedded Apps; the
cohub_*namespace is reserved for the host. - The App Center's
.cohub/apps.jsonis an installed-App list, separate from published App records. - Published versions are immutable and carry provenance:
?cohub_v=<n>selects one publicly,listPublicVersions()lists them, and each version deep-links to the session/turn that produced it. - Apps published or installed in the Shell Space are trusted and run without a consent dialog; every other App asks through
client.auth.authorize(). - Apps in a Space are governed by
app.manage(Spacehostandbuilder); the App itself never holds it. The public bar credits the real publisher. - Richer surfaces: window protocol (
client.app.window,onBeforeClose,onDrop,onLaunch), file handlers, and realtime rooms.