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.
- Cloudflare account.
- Create a free account at dash.cloudflare.com/sign-up. You don't need a credit card.
- Click Create API token. Cloudflare opens with the permissions already filled in: Workers Scripts: Edit and Account Settings: Read.
- Click Continue to summary, then Create Token, and copy the token.
- Back in the panel, click Enter token… and paste it.
- If your account has no workers.dev name yet, pick one, for example your initials.
- Wait while JUICE deploys your relay.
- Project folder. New Project… creates a starter app. Choose Any Office app for code that checks
jolt.hostand runs in Excel, Word and PowerPoint, or pick one app. Open Folder… opens any folder that has ajolt.json. - 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.
- 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
autoRunruns 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.printandconsole.*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 anAGENTS.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.syncOnSavesetting (off by default) syncs whenever you save a project file. Conflicts still ask before anything is overwritten.
Shipping your app
| Publish to Cloudflare | Embed in Document | |
|---|---|---|
| Where the code lives | Your Cloudflare account | Inside the .xlsx, .docx or .pptx file |
| How you update it | Publish again, and every document picks it up | Embed again into each document |
| Works offline | No | Yes |
- 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.storagedata. - 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,.joltand so on) node_modules/anddist/jsconfig.json,tsconfig.json,package.jsonandpackage-lock.jsonAGENTS.md,CLAUDE.mdandjade-classic/, which are for AI assistants- images and other binary files
Commands and settings
| Command | Purpose |
|---|---|
| JUICE: Set up Cloudflare | Enter a token and deploy the relay. |
| JUICE: Connect to Office / Disconnect from Office | Open or close the link to JET. |
| JUICE: New Connection Code | Replace the encryption key. Panes using the old code stop connecting. |
| JUICE: Run Function in Office | Run an exported function in the connected pane. |
| JUICE: Preview App in Office | Restart the app with the current files. |
| JUICE: New Project | Create a starter project folder. |
| JUICE: Pull Project from Document / Sync with Document | See Syncing. |
| JUICE: Embed Project in Document / Remove Project from Document | See Shipping. |
| JUICE: Publish to Cloudflare | Publish 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 Guide | Rewrite .jolt/types and the AI guide in .jolt/ai. |
| JUICE: Install jolt Command | Install the jolt CLI bundled with JUICE, so jolt runs from any folder. |
| JUICE: Remove Cloudflare Settings | Forget 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. |
| Setting | Default | Meaning |
|---|---|---|
jolt.autoConnect | true | Connect to your relay automatically when a JOLT project folder is opened. |
jolt.syncOnSave | false | Sync 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.