# Artifact types overview

[中文](artifact-types.zh-CN.md)

Open Artifacts 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/<type>/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](types/slides.md) | Presentations, pitch decks, talks, review decks | Project files (`project/deck.json`) | Images, video, fonts | PDF, PPTX, HTML, PNG from **Download** | Yes |
| `design` | [Design](types/design.md) | UI screens, landing pages, app mockups, clickable prototypes, posters, print pieces | Project files (`project/canvas.json`) | Images, video, fonts, CSS/JS | PNG, JPEG, PDF, HTML (+ Figma capture, Entire project (.zip), split into numbered zips when large) | Yes |
| `design-system` | [Design System](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](types/whiteboard.md) | Brainstorms, retros, flowcharts, architecture diagrams, mind maps, workshops | Live doc store (`db/board/meta.json`) | Images, SVGs, embeds | PNG, animated GIF and MP4 video of flowing arrows (+ `.zip` archive) | No |
| `sheets` | [Sheets](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](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](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](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](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 |

Design supports area comments that follow the reviewed part of a layout and tell your agent which elements were inside.

### 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, on a page that hands them to an agent.
Write what it should be in **What should it be?** (its subject, content, audience, brand), then pick who builds it
under **Hand it to an agent** and click **Hand over**: a session that is online now in one of your agent apps, or a
**New session** in an agent app that can start one: a connected app such as DeepSeek Harness, or Antigravity while it is running. For a new session, where the app lists its models, you also pick the model and its reasoning effort under the picker (an app lists an effort only when it has one): it starts on the app's default (**Default model**, which leaves the choice to the app, when the app names none), and your last choice for that app is kept for the next time. That session gets what you wrote and the artifact, the page
says it has it, and the artifact shows there as soon as its first file is written. The Ask pane opens beside the page
by itself (close it and it stays closed). While no session owns the artifact, its message box hands over too: the
same picker is under it, **Hand over** takes the place of **Send**, and what you write there goes to the session you
pick with the artifact (the Enter key does the same). That holds for a written artifact no session owns as well.
The picker also lists, under **Recent sessions**, sessions you used lately in an app the daemon can wake through its
own command line, such as your Antigravity conversations while Antigravity is running: one you pick there is sent a
message to take the artifact over, and owns it once the app takes that message. Once
a session has it, the pane is where you follow the agent and say more. Beside **Send** the same picker says who gets
what you send: it starts on the artifact's current session, and you can pick another session or a new one instead,
which moves the artifact there (useful when the session that had it is gone). With no session online, start one
in an agent app and paste the prompt under the picker into it (**Copy**): what you wrote goes before it. With nothing
written and nothing in the title, the agent asks you what it should be first.
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-artifacts`, call `Artifact {action: "quickstart", intent: "<what they asked for>"}`. 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 Artifacts 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 `<root>/project/` (index JSON + HTML/CSS/Markdown/tokens).
   - Agents write files directly into `<root>/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 `<root>/db/<collection>/<id>.json`, synced in real time via `@openartifactsai/live-store`.
   - Agents read and write through `ArtifactData` (`get`, `list`, `query`, `set`, `update`, `delete`, `str_replace`, `batch`) under a host, or `open-artifacts 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-artifacts read` / `update` / `batch`).

4. **A free page (`page`)**
   - The folder itself: `<root>/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 `<root>/_blobs/` (content-addressed uploads via `upload`), `<root>/comments.json`, and `<root>/history/`.

A comment or reply written in the page holds up to 4,096 bytes of UTF-8 (`COMMENT_TEXT_BYTES`, the limit claude.ai’s
comment boxes use; about 1,300 Chinese characters). Typing and pasting stop at 4,096 characters; a longer comment in
bytes is not sent: the page says “That comment is too long.” and keeps the draft. Docs comments count characters
instead, with a counter under the box (4,000), and are refused the same way when they are over 4,096 bytes. Docs’ Ask
Agent posts a comment, so it takes what a comment takes, `@Agent ` included.

An editor’s own Ask field (Slides, Design, Design System, Whiteboard, Sheets, Data) takes what the Shell’s Ask takes:
8,000 bytes of UTF-8 after trimming (about 2,600 Chinese characters). A longer request is not sent: the page says
“That’s too long to send.” and keeps the draft. A request that fails keeps its draft too. The words are never cut, and
neither is what the editor adds after them (the selection, the slide). The whiteboard’s cursor chat is a short bubble
and stops at 500 characters.

### Editors that use your own AI model

A built-in editor can ask the model sources you set up on this computer (the Shell's AI models panel), the same way a
page does. Sheets does today: **Suggest tools** in a cell's menu, formulas, conditional formatting rules and charts
from words, version summaries, and the descriptions of charts in an exported `.xlsx`. The first ask that you make
opens the Shell's consent dialog, where you pick a source and allow the artifact (or its type, or every artifact);
exporting an `.xlsx` with charts asks in that dialog too, without calling a model. Asks the editor makes in the
background never open the dialog: they wait until the artifact is allowed. The Shell's AI badge counts the calls.
A guest's editor does not ask, and neither does one on a site set to `OA_SAMPLE=off` or in an older Open Artifacts. On
a site the editor uses the viewer's own key, added in the same dialog and kept in their browser
([Hosting](hosting.md#pages-and-editors-that-ask-a-model)).

### Where an export is saved

An export you start in a page (a PowerPoint file, an image, a video, a Word file) goes to the device you are looking at.

| Where the page is open | The file goes to |
| --- | --- |
| A browser on the computer that runs Open Artifacts | That computer's Downloads folder. |
| An agent app's own view of the page | The same folder, and the app is told the path: such views often drop a download without a word. |
| A browser on another device (Open Artifacts on a server, reached through a forwarded port or a proxy) | That browser's own download, in the folder and by the rules the browser is set to. |
| A site, or a link someone shared with you | Your browser's own download. |

Open Artifacts tells another device by what is certain: the computer that runs it has no screen (Linux without a
display), the browser runs on another operating system than that computer, or the page's address is not that
computer's own (`127.0.0.1`, `localhost`). The same system on both ends of a tunnel shows none of these: start the
daemon (or the agent app that starts it) with `OPEN_ARTIFACTS_DOWNLOADS=browser` there, and every export is the
browser's download. `OPEN_ARTIFACTS_DOWNLOADS=folder` keeps every export in the computer's Downloads folder instead.
An export an agent makes (`export`, a snapshot) is not a page's: it goes where the agent says.

## 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-artifacts types new <id>` (or **New type** in the home page's Types tab) writes one that works as is, `open-artifacts types from <page artifact | saved page>` turns a page (or one saved from claude.ai) into one, and `open-artifacts 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-artifacts types publish <id>` puts a type of your own on a Node site, so artifacts of it publish there. See [Making your own artifact types](custom-types.md). Agents discover everything available via `Artifact {action: "list", scope: "types"}`.

## Detailed guides by type

- [Slides](types/slides.md) — 16:9 / 4:3 decks, speaker notes, builds, presenter mode, polygon clips on panels and photos, PDF/PPTX export
- [Design](types/design.md) — Infinite canvas of live `.dc.html` artboards, prototypes, responsive & print export
- [Design System](types/design-system.md) — Brand book, multi-theme tokens with contrast checks, live component previews, asset groups
- [Whiteboard](types/whiteboard.md) — Shared infinite board with stickies, shapes, arrows, ink, tables, live embeds, cursors
- [Sheets](types/sheets.md) — Multi-sheet workbook with Rust/WASM formula engine, tables, charts, interactive panels, XLSX/CSV
- [Data](types/data.md) — Live dashboards & reports from MCP connectors, CSV/JSON uploads, calculations, Sources & Remix
- [Docs](types/docs.md) — Tabbed living documents with smart chips, tracked suggestions, Mermaid diagrams, Word/PDF import & export
- [Motion](types/motion.md) — Deterministic HTML/CSS/JS animated films with score, voiceover, by-hand editing, MP4/GIF export
- [Page](types/page.md) — A free HTML page the agent writes, with the runtime capabilities it declares (database, uploads, comments, live messages, a model, connector tools)
