Sharing and hosting
You can ship a JOLT app inside a document, or host it on the web so many documents run the same copy.
| Embedded in the document | Hosted at a URL | |
|---|---|---|
| Where the code lives | Inside the .xlsx, .docx or .pptx file | A static site, for example on Cloudflare |
| How you update it | Edit each document | Publish again, and every document picks up the change |
| Works offline | Yes | No |
| Asks each user to approve it | Yes, once, and again after the app changes | Yes, once, and again after each publish |
To share an app with everyone, publish it to JAM, the JOLT app market. People install it with a code such as jam:you/my-app, and can have their own AI review each version first. See Publish your own app.
Embedded
This is the default: whatever you build in JADE is saved in the document. Send the file to someone who has JOLT or JET installed, and they click Run.
Export a site
In JADE, choose ☰ → Project → Download as site (.zip). The zip holds the project files plus two extras:
jolt.files.json: the list of project files that JET reads when it runs the site._headers: a Cloudflare Pages headers file that turns on CORS, so documents on any origin can fetch the files. If your project has its own_headers, JOLT keeps yours.
Host it on Cloudflare Pages
Unzip the site and deploy the folder by either of these routes:
- Dashboard: in Cloudflare, go to Workers & Pages → Create → Pages → Upload assets and drag the folder in.
- Command line:
npx wrangler pages deploy <folder>.
You get an address such as https://my-app.pages.dev/. Any static host works if it serves the files with CORS headers.
If you develop in VS Code, JUICE publishes straight to your Cloudflare account, so you don't need to export a zip.
Run it from a URL
- Once: in JET, choose ☰ → Run from URL or code… and paste the site's address.
- Every time a document opens: set
"launchUrl"in the document'sjolt.json, or use Set as document launch URL when you publish from JUICE. Then save the document.
The first time code comes from a site, JOLT asks the user to confirm that they trust it. Users can review and remove trusted sites in JADE's Settings. Users who don't know you can ask their AI assistant to check your code first (see Review an app with your AI), so keep it readable.
Single-file tools
A single ES module at a URL ending in .js can also be run with Run from URL, for example a one-off script in a repository. JET calls its default export, or its autoRun or main export.