Development
This page is for people working on JOLT itself. To build apps with JOLT, start at Your first app.
Stack
- Plain JavaScript ES modules with VanJS for the UI. Types are JSDoc comments checked by
tsc(// @ts-check). There's no React and no TypeScript sources. - Monaco for the editor, acorn for parsing, and
es-module-lexerfor rewriting imports. - Vite builds the add-in, Vitest runs the tests, and esbuild bundles the VS Code extension.
- Hosting is a Cloudflare Worker with static assets, configured in
wrangler.jsonc.
Setup
npm install
npm run certs # once: installs Office's trusted localhost certificate
npm run certs installs a certificate authority in your certificate store. Office requires trusted HTTPS, even on localhost.
Scripts
| Command | What it does |
|---|---|
npm run dev | Vite dev server: everything on https://localhost:3000. |
npm start | Sideloads JET (dev), starts the dev server and opens Excel with its pane open. start:word and start:powerpoint do the same for the other apps. |
npm stop | Stops the dev server and removes the sideloaded add-in. |
npm run check | Runs lint, typecheck and unit tests. |
npm test | Runs the Vitest unit tests in test/. |
npm run validate | Validates the dev manifest. |
npm run build | Builds dist/: the add-in, the production manifest and this documentation site. |
npm run docs | Rebuilds only the documentation into dist/. |
npm run preview | Serves dist/ locally. |
npm run deploy | Builds, then runs wrangler deploy to jolt.technologylearningcompany.com. Needs wrangler login. |
npm run cli:build | Bundles the jolt CLI into dist/cli/jolt.mjs. |
npm run cli:install | Builds the CLI and installs it as jolt (in ~/.jolt/bin). Run it again after changing cli/ or src/link/. |
npm run vscode:build | Bundles the JUICE extension into vscode/dist, with the relay source and typings. |
npm run vscode:package | Builds a .vsix. |
npm run relay:dev-deploy | Deploys the relay by hand, for testing. |
npm run icons | Regenerates the ribbon icons. |
Manifests
| File | Name | Loads from |
|---|---|---|
manifest-runner.xml | JET (dev) | https://localhost:3000 |
dist/manifest-runner.xml (built) | JET | config.baseUrl in package.json |
JOLT is one add-in, JET; JADE opens inside it. The build swaps the dev origin for the base URL, https://jolt.technologylearningcompany.com. Set JOLT_BASE_URL to override it, for example to host a copy elsewhere. The dev and production manifests use different add-in Ids, so they can be installed side by side. For the same reason, dev JET's Excel function is =JOLTDEV.RUN; the build renames it =JOLT.RUN.
JADE and JET share a page, so every save in JADE approves the saved code on this computer (see Approving an app), in development and in release builds alike.
Documentation
These pages live in docs/pages/ as HTML fragments. scripts/build-docs.js wraps them in the shared layout, with the sidebar order defined at the top of that script, and writes them to dist/. The home page goes to / and the rest to /docs/. The build fails on links to pages that don't exist. A small Worker (worker/index.js) serves index.html for directory URLs, because the assets use html_handling: "none" so the add-in's pages keep their exact URLs.
The jolt CLI and JUICE
cli/ holds the jolt CLI and the modules JUICE is built on. None of them import vscode: settings (config.js), the project folder (folder.js), the link client (client.js), sync (sync.js), Cloudflare (cloudflare.js, deploy.js) and multi-step commands (commands.js). main.js is the CLI's argument handling. JUICE (vscode/src/) adds VS Code's UI on top: quick picks, the panel, the status bar and the output channel. cli/build.mjs bundles the CLI into one file. npm run cli:build writes dist/cli/jolt.mjs, and the docs build and vscode/build.mjs bundle it too.
Agent skill
The skill that AI agents download lives in skills/jolt/ (SKILL.md plus references/). scripts/build-docs.js copies it to dist/skills/jolt/, adds the CLI as scripts/jolt.mjs, and zips it as dist/skills/jolt.zip. Update it whenever the API, jolt.json fields, the CLI or the JUICE workflow change.
Repository layout
app.html, commands.html add-in pages (JET, which opens JADE; ribbon commands)
public/ide.html stub for the retired JADE add-in: "JADE has moved into JET"
src/shared/ host detection, dialogs, output log, About, auto-open, base styles
src/store/ codec (gzip+base64) and per-host stores (Excel, Word, PowerPoint, settings)
src/project/ project model, starter templates, three-way sync
src/runtime/ module loader, runner, HTML mount, jolt API, trust list, remote sites, session
src/ide/ JADE (Monaco, file tree, settings), loaded by JET on demand
src/app/ JET
src/jade-import/ JADE classic reader (JUICE hands the code to an AI assistant)
src/publish/ site export and zip writer
src/link/ link to JET: encrypted protocol, reconnecting connection, JET's handlers, UI inspection
cli/ the jolt CLI and the core JUICE uses: config, project folder, link client, sync, commands
relay/ relay Worker + Durable Object deployed into each user's Cloudflare account
vscode/ JUICE, the VS Code extension
agent-kit/ JUMP: guides for AI coding assistants, published at /agent-kit/
worker/ the Worker that serves jolt.technologylearningcompany.com
docs/ this documentation site
types/jolt.d.ts typings for the jolt API (also loaded into Monaco)
test/ Vitest unit tests