UsersPlugin Marketplace

Plugin Marketplace

The Plugin Marketplace is the catalog of plugins that extend StudioBrain. You browse it from the app, install a plugin, and turn it on or off.

Overview

  • Browse the catalog with search and filtering (page: /plugins/marketplace, the unified marketplace shared with core).
  • Install a plugin. On the SaaS (app.studiobrain.ai) an install is recorded per project (a plugin_installations row keyed by tenant, project, and plugin).
  • Enable / disable an installed plugin without removing it.
  • Uninstall a plugin (self-hosted / native server only; see the SaaS note below).
  • Trust tiers distinguish Official, Partner, and Community content.

Plugins run as sandboxed WASM components. Official cloud plugins are delivered as one Worker per plugin, compiled at deploy time; the app never fetches and compiles plugin code at runtime in the cloud.

Using the Marketplace

  1. Open Plugins > Marketplace.
  2. Search or filter the catalog.
  3. Click Install. Installs start disabled.
  4. Enable the plugin and configure its settings if it has any.

A workspace admin can restrict which plugins may be installed through tenant plugin policy; if policy blocks a plugin, the install or enable call is rejected with reason: "tenant_policy".

Trust and Verification

  • Official / Verified: plugins from Biloxi Studios, trusted vendors, and reviewed partners carry the Verified badge.
  • Community: submitted by third parties and validated automatically (for example, they must use the WASM sandbox). They do not carry the Verified badge, review the requested permissions before installing, and installing one requires an explicit trust consent.

API Reference

All routes are under /api/plugins/marketplace and require authentication. The self-hosted sb-server implements the full family (crates/sb-server/src/routes/plugins.rs in core). On api.studiobrain.ai, the sb-server-worker forwards only a subset to the accounts worker (see “SaaS differences”).

MethodPathPurpose
GET/api/plugins/marketplaceList catalog plugins (query: category, search, featured, limit, offset)
GET/api/plugins/marketplace/infoCatalog summary and install-quota snapshot
GET/api/plugins/marketplace/{plugin_id}One catalog entry
POST/api/plugins/marketplace/syncRefresh the catalog
GET/api/plugins/marketplace/tenant/installedInstalled plugins (enabled_only filter)
POST/api/plugins/marketplace/tenant/installInstall: body { "plugin_id", "source", "source_url" }. plugin_id and source are required
POST/api/plugins/marketplace/tenant/{plugin_id}/enableEnable (self-hosted)
POST/api/plugins/marketplace/tenant/{plugin_id}/disableDisable (self-hosted)
DELETE/api/plugins/marketplace/tenant/{plugin_id}Uninstall (self-hosted)
POST/api/plugins/marketplace/tenant/{plugin_id}/grantGrant requested capabilities
GET/api/plugins/marketplace/tenant/{plugin_id}/capabilitiesRead a plugin’s capabilities
POST / DELETE/api/plugins/marketplace/{plugin_id}/rateSubmit or remove a rating
GET/api/plugins/marketplace/{plugin_id}/rating-summaryRating summary
GET/api/plugins/marketplace/{plugin_id}/reviewsReviews

Marketplace info

GET /api/plugins/marketplace/info returns catalog counts and the install snapshot. On the self-hosted server no install quota is enforced:

{
  "total_plugins": 12,
  "featured_plugins": 3,
  "categories": ["creative", "export"],
  "status": "available",
  "source": "r2-catalog",
  "mode": "self_hosted",
  "tier": null,
  "max_plugins": null,
  "enabled_plugin_count": null,
  "can_install_more": true
}

max_plugins: null and can_install_more: true mean there is no numeric plugin cap.

SaaS differences

On api.studiobrain.ai the install state lives in the accounts worker’s D1 plugin_installations table and is scoped to the project (X-Project-Id):

  • GET /api/plugins/marketplace, /info, /tenant/installed, and POST /sync are forwarded to the accounts worker.
  • POST /tenant/install is the real install path.
  • Enable and disable use PATCH /api/plugins/marketplace/tenant/installed/{plugin_id} with body { "enabled": true | false }, not the POST .../enable and .../disable routes above. GET /api/plugins/marketplace/tenant/workspace/installed returns the workspace roll-up.
  • The POST .../enable, POST .../disable, DELETE .../tenant/{plugin_id}, grant, and rating routes are not forwarded on the SaaS; the server answers them with a named 501.

Ratings and Reviews

The rating and review endpoints exist on the self-hosted server, but there is no full review experience yet. Do not rely on them for display.

Troubleshooting

  • Install fails with tenant_policy: the workspace’s plugin policy does not allow that plugin. Ask a workspace admin.
  • Install returns 422: plugin_id and source are both required.
  • Install fails because the plugin is unknown: the plugin_id must resolve against the catalog; check it with GET /api/plugins/marketplace.
  • Enable rejected: tenant policy is also checked when turning a plugin on.