Extensions
Extensions
How UserTasks extensions work: versioned packages compiled into the build, switched on per workspace, licensed through one entitlement check.
An extension adds a whole capability to UserTasks — workflow steps and triggers, connectors, API endpoints, background jobs, menus, pages and settings — without forking core. Extensions are compiled into the app when it is built and switched on per workspace.
Three tiers#
| Tier | What | Who | Trust |
|---|---|---|---|
| T1 sandboxed | Custom workflow actions (QuickJS) and custom form controls (sandboxed iframes) | Anyone, uploaded at runtime | Isolated, capabilities approved by admins |
| T2 remote | Out-of-process apps over HTTPS (planned) | Third parties | Isolated by process and network |
| T3 compiled | Extensions (this section) | First-party and certified partners | Full trust: reviewed code only |
Lifecycle#
- Build.
USERTASKS_EXTENSIONSlists the extensions to compile in (npm package names or paths inside the repository). The build generateslib/extensions/generated/*, which imports each extension's entry points. With the variable unset the registry is empty and the build is the public one, unchanged. An extension whoseengines.usertasksrange does not accept this version fails the build. - Boot. Every manifest is validated (schema, cross references, compatibility). An invalid or incompatible extension does not run; Settings → Extensions says why. Its data stays.
- Migrate.
usertasks-admin ext migrateapplies the extension's own database migrations (tablesext_<id>__*), with the same lock and per-file transactions as the core migrations. - Enable per workspace. Settings → Extensions (or
POST /api/v1/extensions/{id}/enable,extensions_enable,usertasks extensions enable). Needs Edit settings and, for a paid extension, a licence. Enabling gives the workspace's system roles the extension's default permissions. - Disable. Menus, pages, API, tools, triggers and jobs stop for the workspace. Settings, secrets and data are kept, so enabling it again picks up where it left off.
One access decision#
Every surface asks the same question: may this workspace use this extension (and feature) now?
- the extension is in the build, compatible and built for this deployment mode;
- the workspace has it enabled;
- the entitlement port allows it: free extensions always, paid ones when a licence (or a cloud entitlement) covers the workspace and feature.
Denied API, MCP and public-route calls answer 403 extension_disabled, 402 extension_not_licensed or, more than 24 hours after a licence expired, 402 extension_licence_expired; workflows using the extension's steps can't be published and new runs don't start; a running workflow that reaches one of its steps after the cutoff is paused there (retryable — resume it after renewal); other denied steps fail with the reason; menus and pages are hidden.
Free and paid#
The framework, the extension SDK and the licence verifier are open source (Apache-2.0) in the UserTasks repository. Paid extensions live in private repositories and are compiled into one image only, UserTasks Enterprise, which licensed customers download through usertasks.com with any licence for an extension it contains (editions); core never imports them (a test enforces it). Each extension in it stays locked until its own licence is installed, so adding an extension later needs no reinstall. Without a licence the Enterprise image behaves exactly like the open-source image and lists its extensions as in this build but not licensed.
The paid extensions are SharePoint (available), Infrastructure (service separation; coming soon) and Processing (separate runners; coming soon): what each does, what stays free in core, and prices are on usertasks.com/extensions.
Authoring rules#
- Import only from
@user-tasks/extension-sdk(and@user-tasks/extension-sdk/uiin custom pages), never from core paths. - No CSS and no remote assets: core renders every contribution with its own components, so extensions follow every workspace theme and work air-gapped.
- Every inbound route, secret and table is declared in the manifest.
Next: the manifest, contribution points and the example extension.