JOLT docs v0.1.0 Apps Install

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-lexer for 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

CommandWhat it does
npm run devVite dev server: everything on https://localhost:3000.
npm startSideloads 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 stopStops the dev server and removes the sideloaded add-in.
npm run checkRuns lint, typecheck and unit tests.
npm testRuns the Vitest unit tests in test/.
npm run validateValidates the dev manifest.
npm run buildBuilds dist/: the add-in, the production manifest and this documentation site.
npm run docsRebuilds only the documentation into dist/.
npm run previewServes dist/ locally.
npm run deployBuilds, then runs wrangler deploy to jolt.technologylearningcompany.com. Needs wrangler login.
npm run cli:buildBundles the jolt CLI into dist/cli/jolt.mjs.
npm run cli:installBuilds the CLI and installs it as jolt (in ~/.jolt/bin). Run it again after changing cli/ or src/link/.
npm run vscode:buildBundles the JUICE extension into vscode/dist, with the relay source and typings.
npm run vscode:packageBuilds a .vsix.
npm run relay:dev-deployDeploys the relay by hand, for testing.
npm run iconsRegenerates the ribbon icons.

Manifests

FileNameLoads from
manifest-runner.xmlJET (dev)https://localhost:3000
dist/manifest-runner.xml (built)JETconfig.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