JET: run apps
JET (JOLT Execution Tool) is the pane that runs apps, as users see them. Each app runs in a tab of its own, so several can run at once. JET is the add-in you install, and the editor, JADE, opens inside it.
Open JET with Home → Jolt → Run Apps. See Install.
- ☰ → Build or edit apps (JADE) opens JADE over JET. JET's apps and
=JOLT.RUNformulas keep running underneath. JADE's code is only downloaded the first time you open it. - Once JADE has been opened, a JADE button in JET's tab bar returns to it. JADE's ← button comes back to the apps.
- JADE's ☰ → Project → Preview in JET saves the project and starts (or restarts) the document's app here.
JET reads the project from the document's custom XML part, so it runs apps built in JADE or with JUICE.
Try an app
To see what an add-in can do, install one of the free example apps from JAM, the JOLT app market:
| App | Install code | What it does |
|---|---|---|
| Data Cleanup | jam:jolt/data-cleanup | Finds problems in a block of data and fixes each with one click, with Undo: extra spaces, numbers stored as text, blank and duplicate rows, and values that don't fit their column. |
| Workbook Map | jam:jolt/workbook-map | Lists every sheet (hidden ones too), table, PivotTable, chart and named range, so you can click to any of them. It can also add a Contents sheet of links. |
| Formula Audit | jam:jolt/formula-audit | Finds error values, formulas that break the pattern around them, numbers typed into formulas, links to other files and volatile functions. It can also write the findings to a report sheet. |
- In Excel, open JET. Paste an install code into Enter a code and click the play button. The codes are also under Instructions on JET's start screen, each with a Copy button.
- JET shows what the app is and what it says it can do. To have your own AI check the code first, click Review with your AI. See Review an app with your AI.
- Click Approve & run. The app is now listed under Your apps on the start screen. To have it start by itself in this workbook, tick Start this app when this workbook opens first (see Start apps automatically).
A gold seal means the JOLT team reviewed that version's code. See Reviewed by the JOLT team. An app run from a JOLT team site (https://<name>.jolt-relay.workers.dev/) shows the same seal labelled Published by the JOLT team: it comes from the team, but that exact code may not have been reviewed. Either way, you still approve the app yourself.
Each app is a few hundred lines of plain JavaScript in github.com/availabooks/jolt-apps, and its review page shows every file. To make your own version, start a project in JADE and copy the files in: jolt.json, index.html, styles.css, main.js and analyze.js. Before you publish it, change the id in jolt.json.
Several apps at once
Each app JET runs gets a tab across the top of the pane. To start another app, click +: it shows the start screen, and the apps already running keep running. Click a tab to switch to its app, and its × to close it.
- Apps keep running in the background. An app's timers and Office events keep working while another tab is showing. If it prints something or fails meanwhile, a dot appears on its tab.
- Each app is on its own. Every app runs in a frame of its own, with its own page, globals and console, so apps can't break each other. The Output drawer shows the output of the tab that's showing.
- One tab per app. Running an app that's already open switches to its tab.
- Closing a tab stops the app. JET also removes the Office event handlers the app added.
What starts by itself
When it opens, JET starts these, each in its own tab, and shows the first:
- A saved launch URL, or else the document's project. If the document's
jolt.jsonhas alaunchUrl, JET runs the app at that URL. Otherwise, if the document has a project, JET mounts its entry page (index.htmlby default) and callsautoRun. If the project has no page, its tab lists the project's@automationfunctions as buttons, each with its title and description. - The apps the document starts. These are the apps ticked Start this app when this workbook opens, from JAM or a URL. They're saved in the document's
jolt.jsonasstartApps: a JAM app by its install code, any other app by its URL. - The apps your computer starts. These are the apps ticked Start this app when any workbook opens, or … when a new workbook opens for a document that hasn't been saved yet. JET skips an app that says it doesn't work in this Office app.
With none of these, JET shows its start screen: a box for a code or URL, and Your apps, the apps you've approved from JAM or a website. An app you haven't approved yet shows its approval screen instead of starting.
Approving an app
Every app runs only once you approve it on this computer, whether it comes from JAM, a website or the document itself. This matters because JET can open by itself in a document someone sent you. Before the first run, and whenever the app's code changes, JET downloads it and shows the same approval screen:
- What the app is: its name and description, the Office apps it works in, the network origins it declares, its files and its fingerprint (a SHA-256 hash of all its files).
- Code from other sites: the libraries it loads while it runs, such as esm.sh packages. Your approval doesn't cover them, so they can change after you approve the app. See Security.
- Review with your AI copies a prompt for your AI assistant (see Review an app with your AI). For a document's app, it also downloads the files as a .zip to give the assistant.
- Start this app when this workbook opens, for an app from JAM or a URL.
- Approve & run (Enable & run for a document's app) runs it. For a document's app, it also lets the workbook's Excel functions calculate. Cancel runs nothing.
JET remembers the approval on this computer, never in the document, and checks the fingerprint every time the app runs. The app is then listed under ☰ → Apps approved on this computer. A project you saved yourself, in JADE or with JUICE, is approved already, and isn't listed.
Saves show up by themselves. Save in JADE, then click ← to go back to the apps (or save from another pane, then move the pointer into JET or click it). JET sees that the document's project changed and restarts the app with the new files. It says "… changed, so JET restarted it." If JET was showing its start screen, it starts the new app. Changes to the app's stored data alone (jolt.storage) don't restart it.
Before anything starts by itself, JET shows Starting apps… for a moment. To skip it all this once, click Show start screen instead, or press Esc or Shift. Nothing in the document changes, and ☰ → Start apps again starts them. JET can't tell whether Shift is already held when it opens, so press it, or hold it while moving the mouse over the pane, during that moment.
The ☰ menu
| Item | What it does |
|---|---|
| Run from URL or code… | Runs a published JOLT site or a single .js module from a URL, this time only. A name without https:// runs https://<name>.jolt-relay.workers.dev/. A name with a period is the start of a workers.dev address, for apps published from someone else's Cloudflare account: my-app.alice runs https://my-app.alice.workers.dev/. Pasting a connection code from JUICE instead links this pane to VS Code: a ● VS Code indicator appears and the menu gains Disconnect VS Code. To make a document always run a URL, save it as the document's launch URL (see below). Clicking Run with the box empty uses whatever is on the clipboard. |
| Reload app | Starts the app showing again, from scratch. |
| Close app | Stops the app showing and closes its tab, like its ×. |
| Start apps again | Starts what JET starts by itself (see above) that isn't running. |
| Tip the developer… | Appears for an app from JAM whose developer lists tip links. It opens their tip page. |
| Copy AI review prompt | Appears for an app from JAM or a URL. It copies a prompt that asks your AI assistant to review the running version, and the code it loads from other sites. |
| Start app when this workbook opens | Appears for an app from JAM or a URL. Ticked, the app starts whenever this document opens; untick it to stop. Each person still approves the app themselves. Save the document to keep the change. |
| Start screen | Shows JET's start screen, like +. The apps keep running in their tabs. |
| Apps approved on this computer… | Lists the apps you've approved on this computer, from JAM, websites and documents. From there you can run one, remove its approval, or choose when it starts by itself (a document's app only runs in its document) (see Start apps automatically). Your apps → Manage these apps and Instructions → Review apps approved for this computer on the start screen open the same list. |
| Disconnect VS Code | Appears while the pane is linked to JUICE. The project open in VS Code runs in its own tab. Until you choose this, the document stays linked: JET reconnects whenever the pane reloads or the document reopens. Choosing it closes that tab. |
| Show output | Opens the Output drawer, which shows the showing app's jolt.print, console output and errors. |
| Open JET when this document opens | Turns Office autoopen on or off for this document. It appears only when the document has an app. |
| Stop running URL automatically | Appears when the document has a launch URL. It removes the launch URL, so the document's own project starts next time instead. |
| Minimal interface | Hides the tab bar so apps get the whole pane. The ☰ button stays in the top-left corner but is invisible until you point at it. Its menu then starts with Open App (the start screen) and the open apps: click one to switch to it. Untick it to bring the bar back. It applies to this pane until JET closes. |
| Start in minimal interface | Makes the minimal interface the default whenever JET opens on this computer. The setting is saved on this computer, not in the document. |
| Build or edit apps (JADE) | Opens JADE, the editor, over the apps. The apps keep running underneath. |
| About JOLT | Shows the version and a link to these docs. |
Running from a URL
JET accepts two kinds of URL:
- A JOLT site, such as
https://my-app.pages.dev/. The site must have ajolt.files.jsonthat lists its files. JOLT's site export always writes one. JET fetches every listed file and runs them as a project. - A single ES module, a URL ending in
.jsor.mjs. JET imports it and calls its default export, or else itsautoRunormainexport. A function with one parameter receives the host context. The module gets thejoltAPI and an empty page to render into.
To pass the app a value, add it after a colon: excel-tools:alpha runs https://excel-tools.jolt-relay.workers.dev/?arg=alpha. Any URL can carry one as ?arg=, a launch URL included. The app reads it as jolt.startArg ("alpha" here, undefined without one), for example in its autoRun function.
JET downloads the app first and shows its approval screen. Once approved, the app runs only while its files keep the approved fingerprint: when the site publishes a change, JET asks again. A single module's relative imports (./util.js) load from beside it, and are listed with the code it loads from other sites. See also Security. To publish a site, see Sharing and hosting.
Launch URLs
A document can store a launchUrl in its jolt.json. JET then runs that URL instead of the embedded project, so every document that points at a published app picks up each new version, once each person approves it. JUICE sets it with Publish to Cloudflare → Set as document launch URL, or you can add it to jolt.json in JADE. Saving a launch URL from JUICE also turns on auto-open. ☰ → Stop running a saved URL removes it.
Opening automatically
Open JET when this document opens uses Office's autoopen feature, so the apps start as soon as someone opens the file. Ticking Start this app when this workbook opens turns it on too, and unticking the last app that needed it turns it off. This needs a shared-folder, sideloaded or centrally deployed add-in. Marketplace add-ins don't support it. The setting belongs to the add-in that set it.
Office opens JET by itself only in a document set this way. Apps your computer starts in any or new documents start when you open JET there (Home → Jolt → Run Apps).