arteffectDocs
The exhibit format

Exhibits

The exhibit format

An exhibit is a plain folder with an exhibit.json manifest. Fields, boards, sandboxing and history.

An exhibit is a plain folder with an exhibit.json manifest and its files:

exhibits/launch-dashboard/
  exhibit.json
  index.html
  data/weekly.json

The manifest is validated by schema/exhibit.schema.json. The full, tool-neutral convention is the exhibits/ folder spec, and the repo has examples.

exhibit.json

Field Purpose
id, name, description Identity and display
type Optional: the entry’s format (html, react, markdown, data, svg, mermaid, image, pdf, cad, canvas or slides). Left out, it comes from the entry file’s name
entry The file to render
source For a CAD model made from code: the script that exports the entry (arteffect build <id> reruns it)
data Named static data files the page reads
dataSources Live data: the MCP server, tool and arguments an agent calls to refresh each data file. The viewer’s Refresh button asks the agent to do it, and every refresh is a new version
permissions.network Hosts the page may load from (empty by default)
tags Search and grouping
provenance Agent and model that created and last updated it

A minimal manifest:

{ "specVersion": "0.1", "id": "launch-dashboard-3f2a1c", "name": "Launch dashboard", "type": "html", "entry": "index.html" }

Canvas format

A board’s entry is a canvas.json: pages of artboards, each an HTML file placed on the canvas.

{
  "pages": [
    {
      "id": "home",
      "name": "Home",
      "artboards": [
        { "id": "v1", "name": "First pass", "file": "boards/v1.html", "x": 0, "y": 0, "width": 1280, "height": 800 }
      ]
    }
  ]
}

Add "mode": "static" to an artboard to show it as a picture of a screen (its scripts don’t run), which suits comparing options. Use "mode": "interactive" for any artboard that animates or has working buttons.

Sandboxing

Exhibits render in a sandboxed iframe on a separate origin (the next port up) with a strict Content Security Policy. Nothing external loads unless it is listed in permissions.network. Markdown is rendered safely, and SVGs are shown as images so embedded scripts never run. React exhibits are bundled locally with esbuild, so they need no network. Fonts must sit next to the exhibit, since only same-origin and data: fonts load.

Where exhibits live

  • Inside a git repo, new exhibits go to the repo’s exhibits/ folder, one folder per exhibit, like docs/. Commit them with your code and review them in pull requests.
  • Outside a repo, they go to the home store (~/.arteffect, or $ARTEFFECT_HOME), shared across every project and agent.

"defaultStore": "home" in ~/.config/arteffect/config.json keeps new exhibits home unless an agent asks for the repo. arteffect move <id> --to repo|home moves one either way.

Version history

In a repo, every save (agent, model, task and branch) and every comment is recorded on refs/exhibits/history, built with git plumbing, so your index, branches and git status are never touched. It stays local unless you run arteffect history share. The home store keeps its own git history.

Repos with the older .arteffect/ store keep working; arteffect migrate moves them to exhibits/ with their history. The details are in the spec.