JOLT docs v0.1.0 Apps Install

JUICE: VS Code

JUICE (JOLT Unified IDE & Cloud Environment) is the VS Code extension for JOLT. You keep the project as files on your computer, for example in a git repo. Every save reloads the app in JET inside Excel, Word or PowerPoint.

This is JOLT's advanced configuration. It needs a free Cloudflare account, used for two things:

  • Connecting VS Code to Office. Your computer can't reach Office task panes directly, so JUICE deploys a small relay into your Cloudflare account. VS Code and JET both connect to it. Messages are encrypted end to end, so the relay can't read your code.
  • Hosting published apps, each at https://<app>.<your-name>.workers.dev/.

You don't need Node.js or any other tools (the jolt CLI needs Node 22 or later). Cloudflare's free plan is far more than one developer needs. In Office, you need the JET add-in, because VS Code connects to JET and not to JADE. Each project has one editor: JADE or VS Code.

Installing

JUICE is distributed as a .vsix file. Install it with Extensions → ⋯ → Install from VSIX…, or from the command line:

code --install-extension jolt-vscode-0.1.0.vsix

One-time setup

Click the JUICE ⚡ icon in the Activity Bar. The Connect to Office section has four steps, and the rest of the panel stays disabled until you finish them.

  1. Cloudflare account.
    1. Create a free account at dash.cloudflare.com/sign-up. You don't need a credit card.
    2. Click Create API token. Cloudflare opens with the permissions already filled in: Workers Scripts: Edit and Account Settings: Read.
    3. Click Continue to summary, then Create Token, and copy the token.
    4. Back in the panel, click Enter token… and paste it.
    5. If your account has no workers.dev name yet, pick one, for example your initials.
    6. Wait while JUICE deploys your relay.
  2. Project folder. New Project… creates a starter app. Choose Any Office app for code that checks jolt.host and runs in Excel, Word and PowerPoint, or pick one app. Open Folder… opens any folder that has a jolt.json.
  3. Connection code. Click Connect, then Copy. In Office, open JET (Home → Jolt → Run Apps), choose ☰ → Run from URL or code…, and paste the code. You only do this once per computer.
  4. Office. The step turns green when the pane connects.

From then on, JUICE reconnects by itself whenever you open the project in VS Code and JET in Office.

Everyday use

  • Save a file to restart the app in Office. The page reloads and autoRun runs again.
  • Run a function: pick a File and a Function in the panel and click ▶ Run, or click ▶ Run in Office above any exported function in the editor. Only changed files are sent, and the app isn't restarted first.
  • Preview App restarts the app in Office with your current files.
  • jolt.print and console.* output appears in VS Code's JUICE output panel, as well as in Office.
  • IntelliSense comes from typings in .jolt/types. If they go missing, run JUICE: Update Types & AI Guide.
  • AI coding assistants get a JOLT guide in .jolt/ai/ and an AGENTS.md. See AI assistants.

Syncing with a document

A document can hold an embedded copy of the project while you also work on it in VS Code.

  • Pull from Document… copies the connected document's project into a folder.
  • Sync with Document exchanges changes both ways. JUICE keeps a snapshot of the last sync in .jolt/sync.json. A file changed on one side only is copied across. A file changed on both sides is merged line by line, and overlapping edits get git-style conflict markers for you to resolve. Writes to the document use compare-and-swap, so an edit saved in Office meanwhile is never overwritten.
  • The jolt.syncOnSave setting (off by default) syncs whenever you save a project file. Conflicts still ask before anything is overwritten.

Shipping your app

Publish to CloudflareEmbed in Document
Where the code livesYour Cloudflare accountInside the .xlsx, .docx or .pptx file
How you update itPublish again, and every document picks it upEmbed again into each document
Works offlineNoYes
  • Publish to Cloudflare uploads the folder and shows its address. Choose Set as document launch URL so the connected document runs the published app whenever JET opens. Anyone else can run it with JET's ☰ → Run from URL or code….
  • Embed in Document copies the folder into the connected document, after you confirm in Office. It replaces the code but keeps the document's jolt.storage data.
  • Remove from Document… deletes the project, its launch URL and its storage from the connected document, after you confirm in Office.

In every case, save the document in Office afterwards.

JUICE and the jolt CLI

JUICE is built on the jolt CLI, which does everything JUICE does from a terminal. The two share this computer's settings in ~/.jolt/config.json: set up Cloudflare and pair with JET in either one, and both can reach the same pane at the same time. That's how an AI agent can look at and use your app while you keep working in VS Code. JUICE: Install jolt Command installs the CLI that comes with JUICE, so jolt runs in any terminal.

Relays deployed by earlier versions of JUICE allowed only one VS Code connection at a time. When JUICE finds one, it offers to update it, which takes a few seconds and uses your stored token.

What gets sent

The project is every file in the folder except:

  • dotfiles and dot-folders (.git, .jolt and so on)
  • node_modules/ and dist/
  • jsconfig.json, tsconfig.json, package.json and package-lock.json
  • AGENTS.md, CLAUDE.md and jade-classic/, which are for AI assistants
  • images and other binary files

Commands and settings

CommandPurpose
JUICE: Set up CloudflareEnter a token and deploy the relay.
JUICE: Connect to Office / Disconnect from OfficeOpen or close the link to JET.
JUICE: New Connection CodeReplace the encryption key. Panes using the old code stop connecting.
JUICE: Run Function in OfficeRun an exported function in the connected pane.
JUICE: Preview App in OfficeRestart the app with the current files.
JUICE: New ProjectCreate a starter project folder.
JUICE: Pull Project from Document / Sync with DocumentSee Syncing.
JUICE: Embed Project in Document / Remove Project from DocumentSee Shipping.
JUICE: Publish to CloudflarePublish the folder as a Worker in your account.
JUICE: Convert JADE Classic App with AI…Prepare a JADE classic app for your AI assistant to convert. See Converting JADE classic.
JUICE: Update Types & AI GuideRewrite .jolt/types and the AI guide in .jolt/ai.
JUICE: Install jolt CommandInstall the jolt CLI bundled with JUICE, so jolt runs from any folder.
JUICE: Remove Cloudflare SettingsForget the stored token and pairing (for the jolt CLI too).
JUICE: Open Documentation…Pick a documentation topic to open. The same links are in the Help section at the bottom of the JUICE panel, and behind the ? button in its title bar.
SettingDefaultMeaning
jolt.autoConnecttrueConnect to your relay automatically when a JOLT project folder is opened.
jolt.syncOnSavefalseSync with the connected document whenever a project file is saved.
jolt.agentKitUrl(empty)Where to download JUMP, the AI guide. Empty means https://jolt.technologylearningcompany.com/agent-kit/.

For privacy details, see Security and privacy.