UI Kit worker runtime is now available as part of Forge's Early Access
Program (EAP). It's currently only available in Confluence, Jira, and global: modules. Custom UI
apps aren't supported.
To join the EAP for UI Kit worker runtime, complete the signup form.
During the EAP, you can only run the worker runtime on a site enrolled in the Developer Canary Program. Deploying a worker runtime app to a Forge production environment isn't supported.
For more details, see Worker runtime (EAP) and Forge EAP, Preview, and GA.
The worker runtime runs your UI Kit app's frontend in a web worker instead of an iframe. This guide covers how to opt in, build and deploy an app, and the current EAP limitations.
To join the EAP for UI Kit worker runtime, complete the signup form.
Only UI Kit apps are supported.
Forge CLI version 16.0.0 or later. To check your installed version, run:
1 2forge --version
To upgrade, run:
1 2npm install -g @forge/cli@latest
A non-production Forge environment, such as
development. See Production restriction.
A Jira or Confluence site enrolled in the Developer Canary Program. During the EAP, the worker runtime is only available on sites enrolled in this program.
To enable the worker runtime, pass EXP_FORGE_UI_WORKER_RUNTIME=true to the Forge CLI when
you deploy your app:
1 2EXP_FORGE_UI_WORKER_RUNTIME=true forge deploy -e development
This is a local environment variable read by the Forge CLI when building your app. It isn't a
Forge app environment variable, so don't set it using forge variables set.
This example uses POSIX shell syntax. Replace development with the non-production Forge
environment you're using to test the EAP. See Production restriction.
Build and deploy your app with the worker runtime opt-in passed to the CLI:
1 2EXP_FORGE_UI_WORKER_RUNTIME=true forge deploy -e development
Install, or reinstall, your app on a site enrolled in the Developer Canary Program:
1 2forge install -e development
Open your app in the product to confirm the UI Kit frontend renders and behaves as expected under the worker runtime.
forge tunnelFor most development, use the standard tunnel workflow so you can use hot reloading:
1 2forge tunnel -e development
When you're ready for final testing, stop the tunnel and restart it with the worker runtime enabled:
1 2EXP_FORGE_UI_WORKER_RUNTIME=true forge tunnel -e development
If you previously exported EXP_FORGE_UI_WORKER_RUNTIME in your shell, unset it before starting
a standard tunnel session.
Hot reloading isn't currently supported when tunneling with the worker runtime. After you make a code change, refresh the page in the product to see your changes.
Worker runtime apps are supported only in non-production Forge environments during the EAP.
Don't deploy a worker runtime app to a Forge production environment. This includes running
forge deploy -e production after setting EXP_FORGE_UI_WORKER_RUNTIME=true.
To return your app to the existing iframe runtime, deploy without the opt-in variable:
1 2forge deploy -e development
If you previously exported EXP_FORGE_UI_WORKER_RUNTIME in your shell, unset it before deploying:
1 2 3unset EXP_FORGE_UI_WORKER_RUNTIME forge deploy -e development
localStorage, sessionStorage, IndexedDB, or the Cache API. Use
Forge storage to persist app data instead.If you have feedback on the UI Kit worker runtime, add a comment to your EAP signup request.
Because the worker runtime supports only UI Kit apps, please also tell us about UI Kit limitations that prevent you from using it. We're working to improve app performance and will review and prioritize incoming UI Kit requests.
To join the EAP, complete the signup form.
Rate this page: