# Open Artifact documentation (English, v0.16.3) # Open Artifact documentation [中文](https://github.com/JimLiu/open-artifact/blob/main/docs/README.zh-CN.md) Guides written for both **people** (fast overview, concrete workflows, examples) and **AI agents** (exact tools, CLI commands, decision rules, and safety checks). ## Getting started & core concepts | Guide | Read it when | | --- | --- | | [What is Open Artifact?](https://github.com/JimLiu/open-artifact/blob/main/docs/overview.md) | You want to understand what Open Artifact is, its core advantages, how the daemon/Shell/agent loop works, and how to get started. | | [Artifact types overview](https://github.com/JimLiu/open-artifact/blob/main/docs/artifact-types.md) | You want to compare all 9 built-in artifact types, decide which type fits a task, or understand the storage models. | | [How agents use Open Artifact](https://github.com/JimLiu/open-artifact/blob/main/docs/agent-guide.md) | You are an AI agent (or setting up one) and need the exact MCP tools, CLI fallback, creation lifecycle, comment handling, and safety rules. | | [Settings, and where artifacts are kept](https://github.com/JimLiu/open-artifact/blob/main/docs/settings.md) | You want to know where a new artifact's folder goes (your Open Artifact folder or the project), choose it for everything, one project or one artifact, or read and set Open Artifact's settings (`open-artifact config`). | | [Making your own artifact types](https://github.com/JimLiu/open-artifact/blob/main/docs/custom-types.md) | You want a kind of page you make again and again as a type of its own: make, check and try one, turn a page into a type, turn types off, trust a project's types. | ## Artifact type guides Detailed feature breakdowns and usage guides (for both users and agents) for each built-in type: | Type | Guide | Best for | Exports | | --- | --- | --- | --- | | `slides` | [Slides](https://github.com/JimLiu/open-artifact/blob/main/docs/types/slides.md) | 16:9 / 4:3 decks, speaker notes, builds, full-screen presenter | PDF, PPTX, HTML, PNG | | `design` | [Design](https://github.com/JimLiu/open-artifact/blob/main/docs/types/design.md) | Infinite canvas of live `.dc.html` artboards, prototypes, print pieces | PNG, JPEG, PDF, HTML (+ Figma, ZIP) | | `design-system` | [Design System](https://github.com/JimLiu/open-artifact/blob/main/docs/types/design-system.md) | Brand book, multi-theme tokens, live component previews, asset groups | Installed by Design, Slides, Data, Motion | | `whiteboard` | [Whiteboard](https://github.com/JimLiu/open-artifact/blob/main/docs/types/whiteboard.md) | Shared infinite board: stickies, shapes, arrows, ink, tables, live embeds | PNG | | `sheets` | [Sheets](https://github.com/JimLiu/open-artifact/blob/main/docs/types/sheets.md) | Multi-sheet spreadsheets with Rust/WASM formula engine, tables, charts, interactive panels | XLSX, CSV | | `data` | [Data](https://github.com/JimLiu/open-artifact/blob/main/docs/types/data.md) | Live dashboards & reports from MCP connectors, CSV/JSON files, calculations | PDF, HTML, JSON | | `docs` | [Docs](https://github.com/JimLiu/open-artifact/blob/main/docs/types/docs.md) | Multi-tab living documents with smart chips, tracked suggestions, Mermaid diagrams | Markdown, Word (`.docx`), PDF, HTML | | `motion` | [Motion](https://github.com/JimLiu/open-artifact/blob/main/docs/types/motion.md) | Short animated films drawn from time `t`, score, voiceover, by-hand editing | MP4, GIF, HTML player, ZIP | | `page` | [Page](https://github.com/JimLiu/open-artifact/blob/main/docs/types/page.md) | A free HTML page the agent writes, with the runtime capabilities it declares | — | ## Self-hosting & extensions Guides for putting artifacts on a **site** (a server that gives them a web address that works when your computer is off) and connecting your computers and agents to it: | Guide | Read it when | | --- | --- | | [Putting artifacts on a site](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting.md) | You want to know how a site works and which kind to run. Start here. | | [A site on your home or office network](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting-lan.md) | Everyone is on one network; no domain, plain http. Includes systemd, launchd and Docker set-ups. | | [A site on your own server, with a domain](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting-server.md) | A VPS or EC2 with Docker Compose and Caddy, sign-in providers, AWS CloudFormation, backups. | | [A site on Cloudflare](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting-cloudflare.md) | No server to look after: a Worker, D1 and Durable Objects. | | [Connecting your computers and agents](https://github.com/JimLiu/open-artifact/blob/main/docs/connecting-agents.md) | Connecting a computer, publishing, publishing by itself, install-time presets per agent app, remote MCP, dashboards' data. | | [Plugins](https://github.com/JimLiu/open-artifact/blob/main/docs/plugins.md) | People should sign in with your company's login, permissions should come from your own service or a table, an action must be refused by policy, or other systems must hear what happens. Using plugins on Node and Cloudflare, five worked examples, and writing one. | Each hosting guide works for a person reading it and for an agent doing it on someone's behalf: the steps are numbered, each with the exact command, the output to expect, a check and what to do if it fails, and each guide starts with the questions an agent must ask rather than guess. ## Integrating Open Artifact into an agent product For engineers who ship an agent app (desktop, IDE extension, command-line agent, web app with a local helper) and want its agent to make artifacts, show their pages in the app, and get people's comments back: | Guide | Read it when | | --- | --- | | [Integrating Open Artifact](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating.md) | Start here: the levels from a skill file to pages in your UI, with code from the examples and a checklist. | | [The agent tools](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/tools.md) | Callers, action kinds for approval prompts, what leaves the computer, session permissions, ownership. | | [Wake](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/wake.md) | Comments and page requests reaching the right session; owner versus collaborator. | | [Showing pages in your UI](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/embedding.md) | Frames and top-level views, allowed origins, the Shell's requests, thumbnails. | | [Remote types](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/remote-types.md) | Types whose pages live on another computer. | | [Runtime and updates](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/runtime.md) | Shipping the runtime with your app, which copy starts, update policy. | | [Apps not written in JavaScript](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/non-node.md) | The stdio bridge, with a Python sketch. | | [Security](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/security.md), [Testing](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/testing.md), [Known limits](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/limits.md) | Trust boundaries, the fake daemon and `doctor`, what does not work yet. | | [Harness API](https://github.com/JimLiu/open-artifact/blob/main/docs/spec/harness-api.md), [Embed](https://github.com/JimLiu/open-artifact/blob/main/docs/spec/embed.md), [Profile](https://github.com/JimLiu/open-artifact/blob/main/docs/spec/profile.md) references | Every method, message and field. | Runnable code: [examples/](https://github.com/JimLiu/open-artifact/blob/main/examples/README.md). ## More detail for operators & contributors - [AGENTS.md](https://github.com/JimLiu/open-artifact/blob/main/AGENTS.md) and `docs/references/` — Coding-agent guide, architecture, build/test/release, and documentation sync rules. - [plugins/README.md](https://github.com/JimLiu/open-artifact/blob/main/plugins/README.md) — Every supported agent app, hooks, and MCP wiring. - [packages/host/README.md](https://github.com/JimLiu/open-artifact/blob/main/packages/host/README.md) — Every setting of the Node site. - [deploy/cloudflare/README.md](https://github.com/JimLiu/open-artifact/blob/main/deploy/cloudflare/README.md) — The Worker's internals, limits and costs. - [deploy/aws/README.md](https://github.com/JimLiu/open-artifact/blob/main/deploy/aws/README.md) — AWS deployment details. --- # What is Open Artifact? [中文](https://github.com/JimLiu/open-artifact/blob/main/docs/overview.zh-CN.md) **Open Artifact lets any coding agent produce live, editable, commentable deliverables—not just static files or chat walls of text.** When you ask your AI agent for a slide deck, a UI design, a design system, a whiteboard, a spreadsheet, a live data dashboard, a living document, or a short animated film, the agent writes an ordinary folder of files on your computer. The local Open Artifact daemon serves that folder in a dedicated web editor (wrapped in a unified **Shell**), where you can view, directly edit, pin comments, inspect version history, share, and export to standard formats (PDF, PPTX, XLSX, DOCX, PNG, MP4, GIF, and more). When you press **Send to agent**, your comments go straight back to the agent's session so it can revise the artifact with full context. ```text You ── "/open-artifact slides a 6-slide pitch" ──▶ Coding Agent (Claude Code, Codex, Cursor, Copilot, …) │ writes plain folder ▼ ./artifacts/my-pitch/project/deck.json + slides/*.html │ served by local Open Artifact daemon ▼ You ◀── view · edit · comment · export ── http://127.0.0.1:/a/ (Shell + Type Editor) └──────────────── "Send to agent" ──────────────▶ comments return to the agent's session ``` The folder goes in the project (`./artifacts/`) or under your own Open Artifact folder (`~/OpenArtifact//`), by the agent app and your choice: see [Settings, and where artifacts are kept](https://github.com/JimLiu/open-artifact/blob/main/docs/settings.md). ## Why Open Artifact? Key advantages | Advantage | What it means in practice | | --- | --- | | **Direct editing + AI feedback loop** | Fix a slide title, move a sticky note, tweak a spreadsheet formula, or retype animation copy yourself instead of prompting the agent for every tiny change. Leave anchored comments on specific slides, elements, cells, text ranges, or video timestamps and click **Send to agent** for larger revisions. | | **Open, local-first plain folders** | Every artifact lives as a plain directory on your disk (`project/`, `db/`, `sheet/`, `doc/`). No vendor lock-in, no mandatory cloud account, works offline, easy to back up or version in Git. | | **Agent- and model-agnostic** | Built around one local daemon, one `/open-artifact` skill, standard MCP tools (`Artifact`, `ArtifactData`, `ArtifactComments`, `ShowArtifact`), and a CLI fallback. Works with Claude Code, Codex, Cursor, GitHub Copilot, Antigravity, ZCode, DeepSeek Harness, ChatGPT, and any CLI-capable agent—with any LLM. | | **Purpose-built editors & real exports** | Not a generic HTML preview pane. Types include a WebGL2 infinite canvas, a Rust/WASM spreadsheet formula engine, a full-screen slide presenter, live MCP-connected dashboards, suggested-edit docs, and deterministic HTML/CSS/JS video rendering—exporting cleanly to PPTX, PDF, XLSX, DOCX, PNG, MP4, GIF, and HTML. | | **Composable design systems** | Capture brand tokens, typography, fonts, component previews, and assets once in a **Design System** artifact, then install it into **Design**, **Slides**, **Data**, and **Motion** artifacts so every deliverable stays on-brand. | | **Private by default, self-hostable when needed** | Starts 100% private on `127.0.0.1`. Share temporarily on your LAN, or publish to your own Open Artifact [site](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting.md) (LAN server, VPS/Docker + Caddy, or Cloudflare Workers + D1 + Durable Objects) for multi-user real-time collaboration even when your laptop is off. | | **Extensible architecture** | Each artifact type is a self-contained skill folder (`artifact-type.json` + `SKILL.md` + `reference/` + editor). Sites also support [plugins](https://github.com/JimLiu/open-artifact/blob/main/docs/plugins.md) for enterprise SSO, custom permissions, policy hooks, and event webhooks. | ## How the pieces fit together 1. **One local daemon**: A single background `open-artifact` process on your machine manages your artifact library, starts type servers on demand, exposes MCP tools to agent apps, and routes comments back to agent sessions. 2. **One unified Shell**: Every artifact opens at `http://127.0.0.1:/a/` (or inline inside apps that support [MCP Apps](https://modelcontextprotocol.io/docs/extensions/apps) via `ShowArtifact`). The Shell provides the title bar, version history, **Share**, **Export**, and **Send to agent**, while hosting each type's specialized editor inside. 3. **Nine built-in artifact types**: `slides`, `design`, `design-system`, `whiteboard`, `sheets`, `data`, `docs`, `motion`, and `page` (a free HTML page). See [Artifact types overview](https://github.com/JimLiu/open-artifact/blob/main/docs/artifact-types.md) to compare them all. 4. **Optional site hosting**: Connect your computer to a self-hosted site with `open-artifact remote add` to get shareable web URLs and real-time team editing. See [Putting artifacts on a site](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting.md). ## Quick start for users 1. **Install the plugin** for your agent app (requires **Node.js 22.18+**). Download `open-artifact-plugins.zip` from [GitHub Releases](https://github.com/JimLiu/open-artifact/releases) and follow the install table in the [README](https://github.com/JimLiu/open-artifact/blob/main/README.md#1-as-a-plugin-in-your-agent-app-recommended) (DeepSeek Harness installs `dsh-open-artifact` directly from npm). 2. **Ask your agent using `/open-artifact `**: ```text /open-artifact slides a 6-slide pitch for this repo /open-artifact design three landing page options for a coffee shop /open-artifact design-system a brand kit from our frontend codebase /open-artifact whiteboard a retro board for last sprint /open-artifact sheets a monthly budget with categories and totals /open-artifact data a dashboard of signups by month from signups.csv /open-artifact docs a hiring plan for 2027 with roles, budget and timeline /open-artifact motion a 20-second launch animation for this app ``` 3. **Collaborate in the live page**: Edit directly, pin comments on anything you want changed, click **Send to agent** to push feedback back to your agent, or open **Share → Export** to download files. ## Quick start for agents If you are an AI agent creating or editing an Open Artifact: - Read [How agents use Open Artifact](https://github.com/JimLiu/open-artifact/blob/main/docs/agent-guide.md) for the complete tool reference (`Artifact`, `ArtifactData`, `ArtifactComments`, `ShowArtifact`), CLI fallback (`open-artifact.mjs`), lifecycle rules, and safety boundaries. - Read [Artifact types overview](https://github.com/JimLiu/open-artifact/blob/main/docs/artifact-types.md) to pick the right type and see how each type stores data. - When creating an artifact with `Artifact {action: "publish", type_url: "open-artifact://type/", title}`, always follow the type-specific `instructions` returned by the tool (sourced from `artifact-types//SKILL.md`). ## Next steps - [Artifact types overview](https://github.com/JimLiu/open-artifact/blob/main/docs/artifact-types.md) — Compare all 9 types and learn when to use each one. - [How agents use Open Artifact](https://github.com/JimLiu/open-artifact/blob/main/docs/agent-guide.md) — Exact workflows, tools, and rules for AI agents. - [Putting artifacts on a site](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting.md) — Share artifacts on your LAN, own server, or Cloudflare. --- # Artifact types overview [中文](https://github.com/JimLiu/open-artifact/blob/main/docs/artifact-types.zh-CN.md) Open Artifact ships with **9 built-in artifact types**. Each type combines a plain on-disk storage format, a dedicated interactive web editor, comment anchoring, version history, export pipelines, and a self-contained skill (`artifact-types//SKILL.md`) that teaches any AI agent how to author and revise it. The exception is `page`: a free HTML page the agent writes whole, with no editor or exports of its own. ## All 9 built-in types at a glance | Type ID | Guide | Best for | Storage & folder marker | Imports | Exports | Uses Design System | | --- | --- | --- | --- | --- | --- | --- | | `slides` | [Slides](https://github.com/JimLiu/open-artifact/blob/main/docs/types/slides.md) | Presentations, pitch decks, talks, review decks | Project files (`project/deck.json`) | Images, video, fonts | PDF, PPTX, HTML, PNG | Yes | | `design` | [Design](https://github.com/JimLiu/open-artifact/blob/main/docs/types/design.md) | UI screens, landing pages, app mockups, clickable prototypes, posters, print pieces | Project files (`project/canvas.json`) | Images, fonts, CSS/JS | PNG, JPEG, PDF, HTML (+ Figma capture, full-canvas ZIP) | Yes | | `design-system` | [Design System](https://github.com/JimLiu/open-artifact/blob/main/docs/types/design-system.md) | Brand books, design tokens, typography, live component previews, asset libraries | Project files (`project/design-system.json`) | Codebases, design files, brand assets | Installed by other types (auto-generates `tokens.css`, `manifest.json`, `api/`) | — (is the source) | | `whiteboard` | [Whiteboard](https://github.com/JimLiu/open-artifact/blob/main/docs/types/whiteboard.md) | Brainstorms, retros, flowcharts, architecture diagrams, mind maps, workshops | Live doc store (`db/board/meta.json`) | Images, SVGs, embeds | PNG (+ `.zip` archive) | No | | `sheets` | [Sheets](https://github.com/JimLiu/open-artifact/blob/main/docs/types/sheets.md) | Budgets, trackers, schedules, record tables, financial models with live formulas | Workbook edit log (`sheet/sheet.json`) | CSV | XLSX, CSV (+ `.zip` archive) | No | | `data` | [Data](https://github.com/JimLiu/open-artifact/blob/main/docs/types/data.md) | Live dashboards, KPI scorecards, interactive charts, recurring reports, scroll stories | Live doc store (`db/dash/meta.json`) | CSV, TSV, JSON, text, Excel (converted), live MCP connectors | PDF, HTML, JSON (+ `.zip` archive) | Yes | | `docs` | [Docs](https://github.com/JimLiu/open-artifact/blob/main/docs/types/docs.md) | Proposals, specs, plans, reports, handbooks, memos, meeting notes | Tabbed block/char store (`doc/doc.json`) | Markdown, text, Word (`.docx`), PDF | Markdown, Word (`.docx`), PDF, HTML (+ `.zip` archive) | No | | `motion` | [Motion](https://github.com/JimLiu/open-artifact/blob/main/docs/types/motion.md) | Product promos, explainers, launch clips, walkthroughs, title cards, animated GIFs | Live doc store (`db/film/meta.json`) | Images, fonts, video/audio clips | MP4, GIF, standalone HTML player, source ZIP | Yes | | `page` | [Page](https://github.com/JimLiu/open-artifact/blob/main/docs/types/page.md) | Small interactive pages no other type fits: widgets, tools, calculators, mini games, explainer pages, polls and checklists | The folder itself (`index.html`, capabilities in `.artifact.json`) | Any files the page loads | — (publishes to a Node or Cloudflare site) | No | ### Making one without an agent The home page's **New artifact** offers every built-in type, in two groups. **Start right away** (Docs, Sheets, Whiteboard, Slides, Design System) makes the artifact with its type's starting files and opens it in its editor, so you can write it yourself; on a Design System's welcome page, **Start by hand** goes to its sections to add colors, type and spacing. **Make with an agent** (Design, Data, Motion, Page) makes the artifact for an agent to build, because building these by hand is not there yet: Design, Data and Motion open empty, with the prompt to hand them to an agent. An empty artifact of a "start right away" type also shows **Start blank** in the Shell, which keeps the artifact's owner. Types made on this computer are listed after these, as before. Whatever you make on the home page belongs to no agent session until one takes it over. ## Which type should I choose? Both users and agents can use these rules to pick the right type quickly: - **Slides vs. Docs**: Choose **`slides`** when presenting in stages on a fixed 16:9 or 4:3 screen with speaker notes and builds; choose **`docs`** for long-form reading, multi-tab plans/specs, tracked suggestions, or exporting to Word/Markdown. - **Design vs. Whiteboard**: Choose **`design`** when visual craft, pixel-accurate UI layout, typography, clickable prototypes, or print/export fidelity matters; choose **`whiteboard`** for spatial brainstorming, stickies, flowcharts, architecture sketches, and freeform team collaboration. - **Data vs. Sheets**: Choose **`data`** for executive dashboards, custom d3 charts, narrative scroll stories, or live queries against MCP data connectors; choose **`sheets`** when people need a grid of cells, spreadsheet formulas, tables with filters, dropdowns, or an Excel (`.xlsx`) workbook. - **Motion vs. Slides**: Choose **`motion`** when time, motion choreography, music/voiceover, and exporting an MP4 or GIF is the point; choose **`slides`** when a human speaker drives the pacing slide by slide. - **Page last**: Choose **`page`** only when none of the above fits: a small interactive thing (a tool, a calculator, a mini game, an explainer page) the agent writes as one HTML page, with the runtime capabilities it declares. - **Design System first**: If you have brand guidelines, a product codebase, or recurring visual deliverables, build a **`design-system`** first—then **`design`**, **`slides`**, **`data`**, and **`motion`** can install and reuse its exact colors, typography, fonts, and components. > **For agents:** If the user does not specify a type word after `/open-artifact`, call `Artifact {action: "quickstart", intent: ""}`. The daemon recommends the best installed type and returns `related` artifacts (such as existing `design-system` folders) you can reuse. ## How artifact types store data (for agents & developers) Open Artifact uses three storage styles, plus the free page—knowing which style a type uses tells you immediately how agents read and write it: 1. **Project files (`slides`, `design`, `design-system`)** - Content lives as human-readable files under `/project/` (index JSON + HTML/CSS/Markdown/tokens). - Agents write files directly into `/project/` with their normal file tools (or `Artifact {action: "publish", url, files}`), and validate with `Artifact {action: "call", url, name: "check"}`. 2. **Live JSON document store (`whiteboard`, `data`, `motion`)** - Content lives as small JSON documents under `/db//.json`, synced in real time via `@open-artifact/live-store`. - Agents read and write through `ArtifactData` (`get`, `list`, `query`, `set`, `update`, `delete`, `str_replace`, `batch`) under a host, or `open-artifact read-db` / `write-db` standalone. 3. **Structured operational stores (`sheets`, `docs`)** - Content is maintained as structured revisions/operations (`sheet/edits.jsonl` for Sheets; block & character-ID trees in `doc/` for Docs). - Agents never edit the JSON files by hand; instead they call type actions via `Artifact {action: "call", url, name: "read" | "update" | "batch" | ...}` (or standalone `open-artifact read` / `update` / `batch`). 4. **A free page (`page`)** - The folder itself: `/index.html` is the page, written whole by the agent, with files beside it. It has no editor of its own; it keeps data through the runtime capabilities it declares (`db/`, `_blobs/`, `comments.json`). - Agents write `index.html` with their file tools (or `Artifact {action: "publish", url, files}`) and declare capabilities with `publish`'s `capabilities` argument. All types share `/_blobs/` (content-addressed uploads via `upload`), `/comments.json`, and `/history/`. ## Cross-type workflows - **Design System → Design / Slides / Data / Motion**: Create a brand kit once (`design-system`), then tell your agent *"use our Acme design system"* when making a UI mockup, pitch deck, dashboard, or launch animation. The agent installs the system's tokens, fonts, and (for Design) live component bundles so the editor's color/type pickers reflect your brand. - **Your own types**: Because each type is a self-contained folder with `artifact-type.json`, you can make your own: `open-artifact types new ` (or **New type** in the home page's Types tab) writes one that works as is, `open-artifact types from ` turns a page (or one saved from claude.ai) into one, and `open-artifact types check` says what is wrong. A project's types are limited (like an installed type's) until you trust the project; you can turn any type off. `open-artifact types publish ` puts a type of your own on a Node site, so artifacts of it publish there. See [Making your own artifact types](https://github.com/JimLiu/open-artifact/blob/main/docs/custom-types.md). Agents discover everything available via `Artifact {action: "list", scope: "types"}`. ## Detailed guides by type - [Slides](https://github.com/JimLiu/open-artifact/blob/main/docs/types/slides.md) — 16:9 / 4:3 decks, speaker notes, builds, presenter mode, polygon clips on panels and photos, PDF/PPTX export - [Design](https://github.com/JimLiu/open-artifact/blob/main/docs/types/design.md) — Infinite canvas of live `.dc.html` artboards, prototypes, responsive & print export - [Design System](https://github.com/JimLiu/open-artifact/blob/main/docs/types/design-system.md) — Brand book, multi-theme tokens with contrast checks, live component previews, asset groups - [Whiteboard](https://github.com/JimLiu/open-artifact/blob/main/docs/types/whiteboard.md) — Shared infinite board with stickies, shapes, arrows, ink, tables, live embeds, cursors - [Sheets](https://github.com/JimLiu/open-artifact/blob/main/docs/types/sheets.md) — Multi-sheet workbook with Rust/WASM formula engine, tables, charts, interactive panels, XLSX/CSV - [Data](https://github.com/JimLiu/open-artifact/blob/main/docs/types/data.md) — Live dashboards & reports from MCP connectors, CSV/JSON uploads, calculations, Sources & Remix - [Docs](https://github.com/JimLiu/open-artifact/blob/main/docs/types/docs.md) — Tabbed living documents with smart chips, tracked suggestions, Mermaid diagrams, Word/PDF import & export - [Motion](https://github.com/JimLiu/open-artifact/blob/main/docs/types/motion.md) — Deterministic HTML/CSS/JS animated films with score, voiceover, by-hand editing, MP4/GIF export - [Page](https://github.com/JimLiu/open-artifact/blob/main/docs/types/page.md) — A free HTML page the agent writes, with the runtime capabilities it declares (database, uploads, comments, live messages) --- # Settings, and where artifacts are kept [中文](https://github.com/JimLiu/open-artifact/blob/main/docs/settings.zh-CN.md) An artifact is a folder on your disk. This page says where a new one goes, how you choose, and where Open Artifact keeps its settings: one file of your own, and an optional file in a project. ## Where a new artifact goes When the agent's call names no folder, Open Artifact picks one and names it from the title: | Location | Folder | What it means | | --- | --- | --- | | `home` | `~/OpenArtifact//` | Under your **Open Artifact folder**, one folder per project. Nothing lands in the repository, so `git status` stays clean, and the artifacts outlive a deleted checkout or worktree. | | `workspace` | `/artifacts/` | In the folder the agent works in. The artifacts sit beside the code and can be committed with it. | Which one applies, when nothing is set: | The session's app | Default | Why | | --- | --- | --- | | Claude Code, Codex, Cursor, GitHub Copilot, Antigravity, ZCode, DeepSeek Harness | `workspace` | In their usual modes the ones that were measured ask before, or refuse, a write outside the working folder ([below](#let-your-app-write-to-the-open-artifact-folder)); the others are kept the same until they are measured. | | ChatGPT on the web (`open-artifact chatgpt`) | `workspace` | The connector tells its artifacts apart by their path. | | Pi, the `open-artifact` command line, any app without a profile | `home` | Nothing stops the write. | | An app that starts the daemon with `OPEN_ARTIFACT_WORKSPACE_FOLDERS_ONLY=1` | `workspace`, always | A confined daemon keeps every folder in the workspace; no setting or call changes that. | When an app's default puts artifacts in a Git checkout and Open Artifact has to make the `artifacts/` folder, it also writes `artifacts/.gitignore` (one line, `*`), so the artifacts stay out of `git status`. Delete that file to track them. A folder that was already there, or one that you, the project or the call chose, gets no `.gitignore`: there the artifacts are meant to be seen by git. Artifacts you make on the home page (no session) go to `~/OpenArtifact/artifacts/`, as before. ### The Open Artifact folder ```text ~/OpenArtifact/ ├── artifacts/ made on the home page │ └── reading-list/ ├── shop/ the project ~/code/shop │ ├── .open-artifact-project.json │ ├── launch-plan/ │ └── q3-review/ └── app-3f9c/ a second project whose folder is also called "app" ``` - **A project** is the Git checkout the session works in (its top folder), whichever folder inside it the agent started in. Every worktree of a repository is the same project. A folder in no checkout is its own project. A folder with a project settings file ([below](#the-projects-file)) is a project too, which is how a package of a monorepo gets its own. - A project's folder is named after the project's folder. `.open-artifact-project.json` says which project it holds; when two projects have the same name, the second gets a few digits of a hash of its path (`app-3f9c`), the same ones every time. - The folder itself is `homeWorkspace` in your settings (`open-artifact config set homeWorkspace ~/Documents/Artifacts`). "This project's artifacts" (what `Artifact {action: "list"}` shows a session, and what `quickstart` offers to reuse) are the ones made for the project, wherever their folders are, plus any whose folder is inside the session's folder. You see the projects too. On the home page (`open-artifact open`) each card names the project its artifact was made for (the full folder shows when you point at it), and when your artifacts are of more than one project a row above the list narrows it to one: **All**, each project with how many artifacts it has, and **No project** for the ones made on the home page or before projects were kept. Two projects of one name are told apart by the folder each is in (`app (work)`, `app (play)`). In Open Artifact Desktop the library says the project under each title, its filter menu has a **Project** submenu, the search finds a project by its path, and a row in the sidebar shows the project when you point at it. ### Choosing | You want | Do | | --- | --- | | One artifact somewhere else | Tell the agent: "put it in the project" or "put it in my Open Artifact folder". It passes `location: "workspace"` or `location: "home"`. Name an exact path and it passes `folder`. | | Everything in your Open Artifact folder | `open-artifact config set artifactsLocation home`, and [let your app write there](#let-your-app-write-to-the-open-artifact-folder). | | Everything in the workspace, visible to git | `open-artifact config set artifactsLocation workspace` | | One project differently, for you only | In the project: `open-artifact config set artifactsLocation home --local` | | One project the same way for everyone | In the project: `open-artifact config set artifactsLocation workspace --project`, then commit `.agents/open-artifact/settings.json` | | Back to the default | `open-artifact config unset artifactsLocation` (with `--local` or `--project` for those) | Nothing that exists moves: a setting decides where the **next** artifact goes, and every artifact made before stays where it is and stays in its project's list. ## Let your app write to the Open Artifact folder An agent writes an artifact's files with its own file tools. Most agent apps limit those to the working folder, which is why their default is `workspace`. To use `home` with such an app, add the Open Artifact folder to the folders it may write: | App | Setting | Measured | | --- | --- | --- | | Claude Code | `claude --add-dir ~/OpenArtifact`, or `"permissions": {"additionalDirectories": ["/Users/you/OpenArtifact"]}` in its settings | 2.1.318: with it, `acceptEdits` writes there without asking. `auto` needs nothing. | | Codex | `codex --add-dir ~/OpenArtifact`, or `sandbox_workspace_write.writable_roots = ["/Users/you/OpenArtifact"]` in `config.toml` | 0.171.0-alpha: without it, `workspace-write` refuses the write. | | GitHub Copilot CLI | `copilot --add-dir ~/OpenArtifact` | 1.0.114: without it, the write waits for your approval. | | Cursor CLI | None found: `--add-dir` does not lift it. `--force` allows every write. | 2026.11.13 | | Pi | Nothing to set. | 1.6.1 | These were measured on macOS, in each app's headless mode. Not measured: Antigravity, ZCode, DeepSeek Harness, the apps' interactive prompts, the Cursor editor, the Claude desktop app, Windows and Linux. Open Artifact never changes another app's permission settings for you. When an artifact's folder is outside the agent's working folder, the create result says so. An agent that cannot write there can still fill the artifact: `Artifact {action: "publish", url, files: {...}}` has the daemon write the files. ## The settings files ### Your file `~/.agents/open-artifact/settings.json` (`$OPEN_ARTIFACT_HOME/settings.json` when that is set) holds your settings for every app and project on this computer. Only what you changed is in it. The keys about where artifacts go: | Key | Default | Means | | --- | --- | --- | | `artifactsLocation` | unset | `home` or `workspace`. Unset: the app's default, as in the table above. | | `artifactsDir` | `artifacts` | The folder's name under a workspace, and for home-page artifacts under the Open Artifact folder. | | `homeWorkspace` | `~/OpenArtifact` | Your Open Artifact folder. `OPEN_ARTIFACT_HOME_WORKSPACE` sets it when the file does not. | | `projects` | unset | Your own settings for single projects, by the project's folder: `{"~/code/shop": {"artifactsLocation": "home"}}`. Written by `config set --local`. An `artifactsDir` here is relative to the project's folder. | Its other keys (types, trusted projects, sites, the port, the runtime) have commands of their own: see [Making your own artifact types](https://github.com/JimLiu/open-artifact/blob/main/docs/custom-types.md), [Connecting your computers and agents](https://github.com/JimLiu/open-artifact/blob/main/docs/connecting-agents.md) and [Runtime and updates](https://github.com/JimLiu/open-artifact/blob/main/docs/integrating/runtime.md). An install preset (`preset.json`) is a different thing: it gives a computer its site at install time and sets nothing on this page. ### The project's file `/.agents/open-artifact/settings.json`, beside the project's types (`.agents/artifact-types/`). Commit it, and everyone who works in the repository gets the same answer. It may set two keys: | Key | Means | | --- | --- | | `artifactsLocation` | `home` or `workspace`, for sessions in this project. | | `artifactsDir` | Where the project keeps its artifacts: a path relative to the folder the file is in, and inside it (`docs/artifacts`). | ```json { "artifactsLocation": "workspace", "artifactsDir": "docs/artifacts" } ``` Every other key in that file is ignored. A repository is something anyone may have written: it does not get to trust itself, move your Open Artifact folder, add a site or turn publishing on. `open-artifact config list` names the keys it ignored. Open Artifact looks for the file from the session's folder upward to the top of the Git checkout, and uses the nearest one. It does not look above the checkout, nor in a folder with no checkout around it other than the session's own, and it never takes your own settings file for a project's. (A project's **types** are still looked for in the session's folder only: see [custom types](https://github.com/JimLiu/open-artifact/blob/main/docs/custom-types.md).) ### Which wins Highest first: 1. The call: `folder` (an exact path), then `location`. 2. A confined daemon (`OPEN_ARTIFACT_WORKSPACE_FOLDERS_ONLY=1`): the workspace. 3. Your entry for the project (`projects`, `config set --local`). 4. The project's file. 5. Your `artifactsLocation`. 6. The app's default (its harness profile's `policy.artifacts`). 7. `home`. ## `open-artifact config` ```bash open-artifact config # what is in effect here, as JSON: each value and who set it open-artifact config get artifactsLocation # one value open-artifact config set artifactsLocation home # in your settings.json open-artifact config set artifactsLocation home --local # yours, for this project only open-artifact config set artifactsDir docs/artifacts --project # in this project's settings file open-artifact config unset artifactsLocation [--local | --project] ``` - **Keys:** `artifactsLocation`, `artifactsDir`, `homeWorkspace`, `serverPort`. `--project` and `--local` take the first two. - **Which project:** the one the current folder is in; `--workspace ` names another. `--harness ` makes `list` and `get` answer for that app's sessions (`--harness claude-code`). - `list` gives each value a `source`: `local` (you, for this project), `project` (its file), `user` (you), `environment`, `harness` (the app's default) or `default`. `project.ignored` lists the keys of the project's file that are not used. - `set` and `unset` go through the daemon, so it uses the change at once. After editing a file by hand, restart it: `open-artifact daemon restart`. - **Only you change settings.** Inside an agent's session `config set` and `config unset` are refused, as trusting a project or publishing is; `list` and `get` work anywhere. `--project` removes the file when nothing is left in it. ## Check it: `open-artifact doctor` ```bash open-artifact doctor --harness claude-code # in the project; --workspace names another folder ``` Among its checks, four are about this page: | Check | Says | | --- | --- | | `home-workspace` | Your Open Artifact folder, and whether it can be written (not made yet is fine). Fails when it cannot. | | `artifacts-location` | Where a session of that app in this folder keeps new artifacts, and who chose it. When that is your Open Artifact folder and the app keeps its agent to the working folder (Claude Code, Codex, Copilot CLI, Cursor), a warning with the setting to add. For Claude Code and Codex doctor reads the app's own settings (`~/.claude/settings.json` and the project's `.claude/settings*.json`; `~/.codex/config.toml`) and says ok when they already allow the folder; it cannot see a `--add-dir` given on the command line. | | `project-settings` | The project's settings file and what it sets; a warning naming the keys that are not used, or a file that is not a JSON object; and your own entry for the project. | | `settings-projects` | A warning for entries of `projects` in your settings whose folder is gone, or that are not named by an absolute path. | doctor only reads: it changes neither your settings nor another app's. ## For agents - Do not make up a folder. Leave `folder` out: the daemon chooses it and names it from the title. - The person asks for the project ("in the repo", "commit it with the code"): `location: "workspace"`. For their Open Artifact folder: `location: "home"`. For an exact path: `folder`. A workspace-confined app refuses `location: "home"` (`not_granted`). - The create result's `root` is where the files go. When it is outside your working folder the result's `notes` say so: tell the person where the folder is, and if your app does not let you write there, send the files with `Artifact {action: "publish", url, files}`. - Never run `open-artifact config set` yourself, and do not edit either settings file to change where artifacts go. Tell the person the command. --- # Making your own artifact types [中文](https://github.com/JimLiu/open-artifact/blob/main/docs/custom-types.zh-CN.md) Besides the built-in types, Open Artifact runs types you make yourself. A type is a folder: a page (`index.html`), a manifest (`artifact-type.json`) and a `SKILL.md` that tells agents how to fill an artifact of it. Every artifact of the type opens that page in the Shell, with comments, history and Send to agent, and keeps its own content in its own folder. Make a type when you want the same kind of page again and again: a trip planner, a reading log, a weekly scorecard. For a one-off page, ask for a `page` artifact instead. ## Where types live | Where | Folder | Used | | --- | --- | --- | | Yours | `~/.agents/artifact-types/` (`typeRoots.user` in settings, or `OPEN_ARTIFACT_USER_TYPES`) | In every project. | | A project's | `/.agents/artifact-types/` | In that project. Until you trust the project, with the limits of an installed type (see [Trust a project](#trust-a-project)). | | Extra | `typeRoots.extra` in settings, or `OPEN_ARTIFACT_EXTRA_TYPES` (colon separated) | In every project. | | Installed | `/types/` (or `OPEN_ARTIFACT_INSTALLED_TYPES`), written by `types install` | In every project, with the limits in [Install someone else's type](#install-someone-elses-type). | | Built in | Shipped with Open Artifact | Always, unless you turn them off. | A project's types are looked for in the session's own folder. The project's settings file (`.agents/open-artifact/settings.json`, which says where the project's artifacts go) is looked for differently: from that folder up to the top of the Git checkout. See [Settings](https://github.com/JimLiu/open-artifact/blob/main/docs/settings.md). A type of the same id in a nearer folder overrides the others: a project's over yours, yours over an extra one, an extra one over an installed one. An installed type never takes a built-in id. `open-artifact types list` shows every type with its `scope`, `source` (`builtin`, `local` or `installed`, with `installedFrom` for an installed one), `version`, `uid`, folder and problems. The home page's **Types** tab shows the same, with what each type's page may use (its capabilities) and the sites it may reach. ## Make one From your terminal or your agent: ```bash open-artifact types new trip-planner --template page # the content is files beside the page open-artifact types new reading-log --template data # the content is records in a database open-artifact types new board --scope project # in this project's .agents/artifact-types/ ``` Or press **New type** in the home page's Types tab: give an id, a name, a template and where it goes. The dialog then shows the type's folder and a prompt to give your agent, which builds the type out from there. - The id is lower case letters, digits and dashes. It cannot be a built-in id or `new-type`, and the folder must not exist yet. - `--template page` (the default) keeps an artifact's content in `content.json`, which the agent writes and you edit and save on the page. `--template data` keeps it in the artifact's database, which the page and the agent change together. - The scaffold works as written: you can make an artifact of it straight away. Your agent has a guide to building a type out: `/open-artifact new-type` (it is in the skill, at `reference/new-type.md`). It covers the folder, the declaration block at the top of the page, the capabilities a page can use, the two ways to keep content, and how to write the type's `SKILL.md`. It also says how to design the type's page (every state designed, nothing loaded from another site, both themes, narrow screens), and points to the design, diagram and chart guides that ship with the [Page](https://github.com/JimLiu/open-artifact/blob/main/docs/types/page.md#design-guidance) type. ## Turn a page into a type A `page` artifact that already does the job can become a type: ```bash open-artifact types from art_… --id trip-planner ``` It copies the page and its `artifact-type/` folder, writes the artifact's capabilities into the page, and drafts the manifest and `SKILL.md`. The answer lists the files it did not copy (the artifact's content, its database and uploads) and what to change so each new artifact reads its own content. ### From a page saved from claude.ai A page saved from a claude.ai artifact template (a folder with `index.html`, and perhaps `metadata.json` and an icon, or a single `.html` file) becomes a type the same way: ```bash open-artifact types from ./saved-page --id cite-check open-artifact types from ./saved-page/index.html --id cite-check --scope project --name "Citation check" ``` - The page's own copy of the frame runtime is removed; Open Artifact serves its own. - When the page declares no capabilities, the ones its code calls are declared for it. The answer lists them as `capabilities.inferred`, with `stubbed` (`mcp`, `sample`, `tts` and `paste` answer only with an error here) and `unknown` (names Open Artifact does not have, such as a network permission; list the sites in `openArtifact.network` instead). - `artifact-type.json` takes its name, description and icon from `metadata.json`, one line each and cut to length; `--name` wins. The icon is copied only when it is a plain image file beside the page (`.svg`, `.png`, `.webp`, `.jpg`, `.gif` or `.ico`, at most 512 KB). The version is `1.0.0`. - `SKILL.md` is the page's notes for Claude (the `notes-for-claude` block), marked as written by whoever wrote the page, or a stub to fill in when there are none. - Nothing else in the folder is copied; the answer lists what was skipped. Fonts or files the page loaded from claude.ai are not there, so the page falls back to what the browser has. The page and its notes were written by someone else. Read `index.html` and `SKILL.md` before you use the type: a type made this way is yours (a user type, or a project type that is limited until you trust the project), so its page runs with what your own types may do. `--scope` defaults to `user`. The command needs the daemon's token, so it runs from your terminal or your agent, not from a web page. ## Check it ```bash open-artifact types check trip-planner open-artifact types check ./path/to/folder --for-share ``` It lists errors (the type will not work) and warnings (it may not do what was meant), and exits with 1 on errors: an invalid id, a manifest that does not parse, a declaration that is not plain data (or uses `let`/`const`), an unknown capability name, a `SKILL.md` without its front matter, an id that clashes with a built-in type. Stubbed capabilities (`mcp`, `sample`, `tts`, `paste`) are warnings: they only answer with an error on this computer. `--for-share` adds the rules for a type you mean to give to others: `slug`, `uid`, `name`, `version` and `description` set; no `entry` that starts a program or points at a URL; no symbolic links or dotfiles; at most 2000 files, 16 MiB a file and 64 MiB in all. ## Try it 1. `open-artifact types list` shows it with `"runnable": true`. 2. Make an artifact of it: ask your agent, or press **New ** on its card in the Types tab. 3. Use the page, then ask your agent to fill it the way the type's `SKILL.md` says. Your agent can look at an artifact of the type too: every page-kind type has the `snapshot` action, a PNG of the page at a width, height and colour scheme it chooses (see [Page](https://github.com/JimLiu/open-artifact/blob/main/docs/types/page.md#a-picture-of-the-page-snapshot)). The snapshot only reads, so it is safe on any artifact. ## Turn types off and on ```bash open-artifact types disable trip-planner open-artifact types enable trip-planner ``` Or use the switch on the type's card in the Types tab. While a type is off, no agent can make an artifact of it. This is yours to decide: the command refuses to run from inside an agent's session, and the daemon refuses it from other web pages and from a call that says it comes from an agent's session. These are guard rails, not a boundary: a program on your computer that does not say where it runs from can still make the call. ## Trust a project A project's types come from that project's folder, which anyone who wrote to the project may have changed. Until you trust the project its types still work (one that starts a program of its own, `entry.start`, does not start), but with the limits of an installed type (see [Install someone else's type](#install-someone-elses-type)): no program of their own (`entry.start` or `entry.url`), a page that reaches only its own address and the sites it lists, in a sandboxed frame, and agents are told the type's words are not yours. `types check` says so (`untrusted_restricted`). Trusting the project lifts the limits, and a running page restarts without them: ```bash cd ~/code/my-app && open-artifact types trust open-artifact types untrust ~/code/my-app ``` Or press **Trust this project** under the project in the Types tab. Like turning a type on or off, trusting is yours to do, and refused from inside an agent's session in the same way. `OPEN_ARTIFACT_TRUST_PROJECTS=1` trusts every project (for tests and CI). ## Share a type ```bash open-artifact types pack trip-planner # writes trip-planner-.oatype here open-artifact types pack ./path/to/folder --out ~/Desktop ``` `types pack` runs `types check --for-share` first and refuses on any error, then zips the folder into one file, `-.oatype`, and prints its sha256. Give that file to the other person, or put it on an `https://` address they can download. The `uid` in `artifact-type.json` is what makes it the same type everywhere: keep it when you change the type, so artifacts made with it keep opening. A type whose page reaches other sites lists them in `openArtifact.network` (`["https://api.example.com"]`, `https://` origins only); an installed type's page, or one in a project you have not trusted, reaches nothing else. ## Install someone else's type ```bash open-artifact types install ./trip-planner-1.2.0.oatype open-artifact types install https://example.com/trip-planner-1.2.0.oatype open-artifact types install https://oa.example.com/t/trip-planner # a type's page on a site (see below) open-artifact types install ./trip-planner-1.2.0.oatype --as trips # under another id open-artifact types update trip-planner # read its source again open-artifact types uninstall trip-planner ``` Or press **Install type** in the Types tab and choose the file or give its address. Before anything is installed you see what the package is: its id, version, where it came from, its sha256, the capabilities its page asks for, the sites it may reach, and its `SKILL.md` in full (what agents will be told when they make one). The command line asks `[y/N]`; `--yes` skips the question once you have read it. Installing, updating and uninstalling are yours to do: refused from inside an agent's session and from other web pages, like turning a type off. What an installed type may do is less than a type of your own: - It never starts a program on your computer (`entry.start`) and never points at another address (`entry.url`), even if its folder is changed after the install: its page is served as files, by Open Artifact. - Its page runs in the browser with a Content-Security-Policy, in a sandboxed frame: its requests, images, embedded pages and forms reach its own address and the `https://` sites its manifest lists, nothing else. It cannot open popups or new tabs, move the Shell page, or send its own frame to another address (a link, a meta refresh or a script that changes the location), and a download link to another site fetches nothing. This was measured in Chrome, where its own files, data, uploads and downloads still work. The page's address opened on its own in a tab has the policy but not the frame's sandbox, and the page can still put text in front of your agent (a comment sent to it, or a title it suggests), which agents are told to read as data. - Agents are told that its `SKILL.md`, title and description are the publisher's, not yours: they use them to build the artifact, not to widen the task or ask for permissions. - You cannot publish the type itself to a site (`types publish` and `--with-type` refuse it): that is its author's to do. Your artifacts of it still publish to a site that has a type of the same `uid` (its author published it there, say), as they are. - A link inside its folder, or inside an artifact's, that leads out of that folder is neither served nor written through. An install unpacks into a temporary folder and moves into place only after every check passed: a package with a path that leaves its folder, a link, a name given twice, more files or bytes than it may hold, or an `entry.start` is refused, and a refused install leaves nothing behind. Nothing from a package is run on your computer, and it is installed as plain files (`0644`: nothing is made executable, whatever the package says). An address is fetched over `https://` only, without your cookies or credentials, and the sha256 of the bytes is recorded in `/types.json` with where they came from. The same id with another `uid` is another type: `types install` refuses it and asks for `--as `. `types update` reads the recorded source again and installs it only when it is still the same `uid`. Uninstalling leaves the artifacts made with the type where they are; they open again once it is installed again. ## Publish to a site A site you publish to, Node or Cloudflare (see [Hosting](https://github.com/JimLiu/open-artifact/blob/main/docs/hosting.md)), can keep your types too, so the artifacts you make with them open there for the people you share them with. ```bash open-artifact types publish trip-planner # to the default site; private open-artifact types publish trip-planner --remote work --visibility site open-artifact publish art_x9k2 --with-type # the type first (if the site lacks it), then the artifact open-artifact types unpublish trip-planner --remote work ``` - **What goes.** A type of your own: a user type, one of an extra root, or one of a project you trust. Not a built-in type (every site has those) and not one you installed (its author publishes it). Only a type whose page the site serves as it is: an `index.html` with a `// artifact.json` declaration, no `entry` of its own, not a page type (`openArtifact.style: "page"`). It must have a `uid`. - **How it goes.** `types publish` packs it as `types pack` does (`types check --for-share` first; any error refuses it) and sends the package. The site checks it exactly as `types install` does before it keeps anything, and nothing from it ever runs there: its page runs on the artifact's own page host, in the same restricted frame as an installed type, under a Content-Security-Policy made from its `openArtifact.network` list. - **The id is the site's.** One id names one type on a site. A package with another `uid` under an id someone took is refused, naming the uid that has it; give your type another slug. Publishing the same `uid` again is a new version, which only you (or a site admin) may publish; the same version with other contents is refused (raise `version`), and the same bytes again change nothing. - **Who sees it.** `--visibility private` (the default for a new type made by `types publish`: you and the site admins), `site` (everyone with an account there) or `link` (anyone with its page's address). `--with-type` publishes a new type with `link`. Visibility decides who lists and downloads the package; it never decides who runs it: anyone who may open an artifact of the type runs it. A new version keeps the visibility unless you give another. - **Artifacts of it.** `open-artifact publish ` of an artifact whose type the site does not have is refused with the type's id and both commands to run. `--with-type` publishes the type first, with `link` visibility, then the artifact. The site takes the artifact only with a type of the `uid` it was made with (`type_mismatch` otherwise). Automatic publishing leaves these artifacts alone: their type goes to a site by your hand. - **New versions.** An artifact open on the site picks up a new version at once: its page reloads with the new files and the new network list. - **Unpublish.** While artifacts still use the type it is only delisted: no longer listed or downloaded, no new artifacts of it, and the ones there keep opening. With none left, the site deletes it. Publishing it again lists it again. - **Yours to do.** Publishing and unpublishing a type, and `--with-type`, are refused from inside an agent's session, whatever the site lets agents publish. An agent on the site is told that a published type's text is its publisher's, as with an installed one. Who may publish types at all is the site's choice (`OA_TYPES_PUBLISH`: site admins by default; always `off` on a site with one domain for both, `OA_CONTENT_SAME_SITE=true`, which runs no pages). ## A type's page on a site Every type on a site (a Node site, or a Cloudflare site that runs pages) has a page, `https:///t/`, and the site's home page has a **Types** tab listing the ones you may see (the `site` ones, your own, and every one for a site admin), each a link to its page. The page shows its name, version, who published it, when it changed, what its page may use and which sites it may reach (the words the install shows), its `SKILL.md` as plain text, the command that installs it, and a download of its package. - **Who sees the page.** Whoever may download the type: anyone signed in, for a `site` or `link` type (a `link` one only by its address), and its publisher and the site admins for a `private` one. Someone not signed in sees a `link` type only where the site allows public access (`OA_PUBLIC_ACCESS`, on by default), else is sent to sign in; they are not told a publisher's name when it is an email address (an account with no name of its own). For anyone else the page and the API answer exactly as for an id that does not exist: they never say a private type is there. - **Managing it there.** Its publisher or a site admin changes who sees it and unpublishes it from the page. Showing it to more people (private → link → site) is publishing it to them, so it needs someone the site lets publish now (`OA_TYPES_PUBLISH`); fewer people is always allowed. A delisted type is shown to them only, marked: publish it again from the computer to list it. Each change is in the site's audit log (`type.visibility`, `type.unpublish`). - **Install it on your computer.** ```bash open-artifact types install https://oa.example.com/t/trip-planner [--as ] open-artifact types update trip-planner # reads it from that page's site again ``` When this computer is signed in to that site (a remote of that exact address, `open-artifact remote add`), the package comes through it, as you. Otherwise it is fetched from the site's public address without any credentials, which works for a `link` type on a site that allows public access. The question before installing names the publisher and the site, beside everything an install always shows; the address recorded is the page's, so `types update` reads it from there. A site that asks you to sign in says so and names the `remote add` command; a type the site does not have, or does not share with you, is one answer ("no such type, or it is not shared with you"). As any installed type, it runs with the limits above. - **The types on your sites, at home.** Under your own types, the local home page's Types tab has a section for each site this computer is connected to (`open-artifact remote add`), read each time the tab opens: the types that site lists for you, each with who published it, its version and a link to its page there, and how it stands here. **Install** opens the same Install dialog on its page address (nothing is installed until you confirm it there); **Update to ** is shown when your installed copy of it differs; **Install under another id** when a different type already has its id here; **Installed** and **Published from this computer** need nothing. Each site answers on its own: one that cannot be reached, is too slow, is signed out or does not support types yet says so on its own line with **Retry**, and the others still show. Delisted types are not listed. With no site connected, the tab says where to connect one (**Publish to the web**, then **Connect a site…**, on an artifact). - **Agents on the site.** An agent connected to the site's MCP sees the published types it may list beside the built-in ones (marked `source: "site"`, with `published_by` and a `third_party_notice`) and makes artifacts of them; their `SKILL.md` comes after a notice that it is the publisher's text. A delisted type takes no new artifacts. No agent tool publishes, changes or unpublishes a type. ## Move an artifact to another computer Download the artifact as **Whole folder (.zip)** from its Export panel (the `artifact.archive` route), then on the other computer: ```bash open-artifact import ./trip-to-porto.zip # into the home workspace open-artifact import ./trip-to-porto.zip --folder ~/trips/porto ``` An artifact records the `uid` of the type it was made with (`typeUid` in `.artifact.json`, and `typeSource`: the package's address or file name). It opens only with a type of that uid, so a different type that happens to have the same id never opens it. When this computer has no such type, `import` answers `type_missing` with the type's id, uid and where it came from: install that type, then import again. The zip is checked like a package before anything is written, and nothing in it is run. --- # Slides [中文](https://github.com/JimLiu/open-artifact/blob/main/docs/types/slides.zh-CN.md) · [All artifact types](https://github.com/JimLiu/open-artifact/blob/main/docs/artifact-types.md) **Slides** creates editable 16:9 (`1920×1080`) or 4:3 (`1440×1080`) presentation decks stored as plain local HTML/CSS/JSON files. Use it for pitch decks, talks, product reviews, training decks, or any presentation you want to arrange, edit in place, rehearse with speaker notes, present full screen, and export. > **When NOT to use Slides:** Don't use it for long-form reading documents (use [Docs](https://github.com/JimLiu/open-artifact/blob/main/docs/types/docs.md)) or a one-off single-file HTML page. ## Key features - **Direct slide editing**: Retype text, move/resize elements, tweak typography and colors, and reorder slides in the slide rail or section overview. - **Structured sections & outline**: Organize slides into named sections with descriptions visible in the overview grid. - **Speaker notes, builds & transitions**: Add per-slide speaker notes (`