Skip to content

Extensions

Extension manifest

usertasks-extension.json: id, version, publisher, engines, licence, capabilities, permissions and contributions.

Last updated 1 min read Edit this page on GitHub
On this page

Each extension has a usertasks-extension.json next to its entry modules. It is plain data: core validates it with a schema and renders everything it contributes.

JSON
{
  "manifest_version": 1,
  "id": "example-hello",
  "name": "Hello (example extension)",
  "version": "1.0.0",
  "publisher": { "id": "usertasks", "name": "UserTasks" },
  "engines": { "usertasks": ">=0.1.0 <2.0.0", "extension_sdk": "^1.0.0" },
  "licence": { "tier": "free", "features": ["greetings", "digest"] },
  "deployments": ["cloud", "self_hosted"],
  "capabilities": { "db": true, "inbound_public_routes": ["/ping", "/hooks/*"], "secrets": ["api_token"] },
  "permissions": [
    { "key": "view", "label": "View greetings", "implied_by": ["tasks.view_own"], "default_roles": ["owner", "admin", "member"] }
  ],
  "contributes": { "nodes": [], "triggers": [], "connectors": [], "ui": {} }
}

Fields#

FieldRules
idLower-case slug (letters, digits, single hyphens), at most 41 characters. ut- is reserved for first-party extensions. Namespaces everything: node types ext.<id>.<key>, permissions ext.<id>.<key>, tables ext_<id>__* (hyphens become underscores), MCP tools ext_<id>_*, REST paths /api/v1/ext/<id>/…
versionSemver
engines.usertasksSemver range of UserTasks versions; checked when building and at boot
engines.extension_sdkSemver range of the SDK contract (core provides 1.0.0)
licence.tierfree or paid; paid needs sku. features names the licence features the extension checks
deploymentscloud, self_hosted or both
capabilitiesdb (owns ext_<id>__* tables), egress (hosts, always through the egress guard), inbound_public_routes (globs under /ext-public/<id>), secrets
permissionsEach becomes ext.<id>.<key>. implied_by lists core permissions that grant it automatically (existing roles never lose access); default_roles are given it when a workspace enables the extension
contributesNodes, triggers, connectors, directory sources, importers and UI (contribution points)

Guards#

Every UI entry may carry when, evaluated on the server and in the browser:

GuardMeaning
permissionAll listed permissions (core keys or this extension's ext.<id>.<key>)
anyPermissionAt least one
featureA licence feature (entitlement port)
deploymentcloud or self_hosted only
instanceAdminInstance administrators only
managerOnlyPeople with a direct report
settingA workspace setting: show_digest, mode == advanced, mode != off

Targets#

Menu entries, nav items and row actions lead to one target: { "page": "new" } (/x/<id>/new), { "route": "/automations" }, { "action": "greet_item", "confirm": "…" } (runs a UI action on the server), { "settings": "general" } or { "url": "https://…", "external": true }.

Validate a manifest with npm run extensions:gen (with USERTASKS_EXTENSIONS set): every problem is listed and the command fails.

Was this page helpful?