JOLT docs v0.1.0 Apps Install

Converting JADE classic apps

JOLT doesn't convert JADE classic code automatically. Instead, JUICE prepares the app so that your own AI coding assistant can rewrite it as a proper JOLT app, following a conversion playbook that is part of JUMP.

Why this approach? Every JADE classic app relied on the old environment in its own way: globals shared between modules, panels, inline onclick handlers, and gists loaded at runtime. An automatic converter can't anticipate all of that. An assistant working through your app one module at a time, with you checking each step, can. The result is ordinary JOLT code that you can maintain. To keep running an app unchanged, keep using it in JADE classic.

What you need

  • JUICE in VS Code. Conversion happens there so your assistant can read and write the project's files.
  • An AI coding assistant in VS Code or alongside it, such as GitHub Copilot, Cursor, Claude Code, Codex or Cline. Any assistant that can read files in the folder works.
  • Excel with the JET add-in, connected to JUICE, to test the converted app. Connecting is a one-time setup with a free Cloudflare account; see JUICE: one-time setup. Reading an app from a workbook needs this connection too. Reading from a folder or a gist doesn't, so you can start the conversion first and connect before testing.

Start a conversion

  1. Run JUICE: Convert JADE Classic App with AI…, or click Convert JADE classic… in the JUICE panel.
  2. Choose where the app comes from:
    • The connected workbook. JUICE reads the JADE classic modules saved in the workbook whose JET is connected.
    • A folder of JADE classic .js files, such as a cloned gist. A jade.module header names a module. .git, other dot folders and node_modules are skipped.
    • A gist: a gist ID, a gist URL or a .js URL.
  3. Choose where the JOLT app goes:
    • If VS Code has no JOLT project open, JUICE asks for a folder. An empty folder is best.
    • If a JOLT project is open (a folder with a jolt.json), JUICE offers to add the app to that project. To use a new folder instead, cancel, and run the command from a window with no JOLT project open.

JUICE downloads the conversion playbook and sets up the folder (see below). VS Code then reopens on that folder and shows jade-classic/README.md, with a Copy prompt button. Paste the prompt into your assistant:

Convert the JADE classic app in jade-classic/ into this JOLT project. Follow jade-classic/kit/SKILL.md: start with its inventory step and check with me before writing code.

The prompt is also in the README and in the JUICE output panel, if you need it again.

What JUICE sets up

jolt.json, index.html, …   a starter JOLT project (if the folder had none); the assistant replaces it
AGENTS.md, CLAUDE.md       point AI assistants at the JOLT guide
.jolt/ai/JOLT.md           the JOLT guide for AI assistants
jade-classic/
  README.md                what this folder is, and the prompt
  manifest.json            the modules in load order, where they came from, and notes
  modules/                 each module's code, exactly as JADE classic stored it
  gist/                    files from the source gist and from gists the code loads
  kit/                     the conversion playbook (kit/SKILL.md is where the assistant starts)

JUICE also downloads every gist that the code loads with a literal Jade.load_gist("…"), so the assistant can bring that code into the project. jade-classic/, AGENTS.md and CLAUDE.md are never embedded in a document or published.

How the conversion goes

  1. Inventory. The assistant reads every module and summarises what the app contains: commands, screens, shared state, saved data, remote code and anything without a JOLT equivalent. Then it asks you a few questions.
  2. Design. It proposes the new file layout, the entry page and the startup steps.
  3. Convert. It works one module at a time and produces idiomatic JOLT code: ES modules with imports instead of jade_modules, jolt.$ instead of tag(), real event listeners, the app's own page and styles, and jolt.storage for saved data.
  4. Verify. With JET open in Excel and connected to JUICE, every save reloads the app in JET. The assistant can't run Office code itself. You try each screen and command, then tell it what you see and what the JUICE output panel shows.
  5. Hand-off. It summarises what changed, what was removed, and any classic bugs it noticed but deliberately didn't fix.

JET tools

Many JADE classic gists are tools from the old JET tool gallery (opened with Jade.open_tools()). These tools relied on a shared jet_engine gist for their form and range helpers. JUICE spots such a tool and notes it in jade-classic/manifest.json and the README. The playbook then makes the tool a JOLT app of its own, and copies in only the helpers the tool uses, rewritten for JOLT. You don't need the engine gist.

(Today's JET, JOLT's runner, is unrelated apart from the name.)

Saved data

JADE classic saved app data (Jade.save_object_to_workbook) in the workbook's document settings. Office scopes those settings to the add-in that wrote them, so JOLT can't read them. When data needs to come across, the playbook adds two pieces:

  • a short export function that you, or each user, run once in JADE classic. It copies the data into a part of the workbook that any add-in can read;
  • a one-time import in the new app, which moves that data into jolt.storage.

Afterwards

  • Delete jade-classic/ once the JOLT app works.
  • The old JADE classic modules stay in the workbook, where they do no harm. Remove them in JADE classic once nobody opens the file with JADE classic any more.
  • Ship the app with Embed Project in Document or Publish to Cloudflare. See Shipping your app.