[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116503":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},116503,"open-artifact","JimLiu\u002Fopen-artifact","JimLiu","Open, agent- and model-agnostic artifacts, all saved locally as plain files — edit, comment on, and export slides, UI designs, design systems, whiteboards, sheets, dashboards, docs, and motion.",null,"TypeScript",460,57,1,0,102,357,553,95.22,"Apache License 2.0",false,"main",true,[],"2026-11-23 16:46:34","2026-11-23 19:39:59","# Open Artifact\n\nEnglish · [简体中文](README.zh-CN.md)\n\n> **Formerly `baoyu-design`.** This project started as\n> [baoyu-design](https:\u002F\u002Fgithub.com\u002FJimLiu\u002Fbaoyu-design) (the old URL redirects here), which brought claude.ai-style\n> Artifact types to local coding agents as one skill per type. Open Artifact rebuilds them as an open, agent-agnostic\n> format: one local daemon, one page frame, one `\u002Fopen-artifact` skill, and a plugin for each agent app.\n\n**Open Artifact lets any coding agent make things people can open, edit and comment on, not just files.** You ask\nyour agent for a slide deck, a UI design, a design system, a whiteboard, a spreadsheet, a data dashboard, a doc or a short animated film. The agent writes a plain folder of files.\nA local page opens it in a real editor, where you can fix a title, move a sticky note, leave comments, and export. Then\n\"Send to agent\" sends your comments back to the agent's session.\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F9f34dc69-2e90-4118-92fd-63f36d7bc5f9\n\nEverything runs on your machine. No account, no upload, no specific model or vendor.\n\n```\n  you ──\"\u002Fopen-artifact slides a 6-slide pitch\"──▶ agent (Claude Code, Codex, Cursor, Copilot, …)\n                                                     │ writes files\n                                                     ▼\n                                           .\u002Fmy-deck\u002Fproject\u002Fdeck.json + slides\u002F*.html\n                                                     │ served by the local daemon\n                                                     ▼\n  you ◀── edit · comment · export (PDF\u002FPPTX\u002FPNG\u002FHTML) ── http:\u002F\u002F127.0.0.1:\u003Cport>\u002Fa\u002F\u003Cid>\n   └──────────────── \"Send to agent\" ──────────────▶ comments arrive back in the agent's session\n```\n\n## Artifact types\n\n| Type | What you get | Folder marker | Exports |\n|---|---|---|---|\n| [Slides](artifact-types\u002Fslides\u002FSKILL.md) | A 1920×1080 deck: slide rail, overview, speaker notes, builds, transitions, presenter mode | `project\u002Fdeck.json` | PDF, PPTX, HTML, PNG |\n| [Design](artifact-types\u002Fdesign\u002FSKILL.md) | An infinite canvas of live `.dc.html` artboards: screens, components, click-through prototypes, notes, pages | `project\u002Fcanvas.json` | PNG, JPEG, PDF, HTML |\n| [Design System](artifact-types\u002Fdesign-system\u002FSKILL.md) | A brand book: tokens, colors with contrast checks, type specimens, live component previews, assets. Designs and decks can install it | `project\u002Fdesign-system.json` | — |\n| [Whiteboard](artifact-types\u002Fwhiteboard\u002FSKILL.md) | A shared infinite board: stickies, shapes, arrows, ink, images, tables, embeds, live cursors, timer | `db\u002Fboard\u002Fmeta.json` | PNG |\n| [Sheets](artifact-types\u002Fsheets\u002FSKILL.md) | A shared spreadsheet: several sheets of cells, a full formula engine, number formats, borders, merged cells, tables with filters, dropdowns, checkboxes, conditional formats, frozen and grouped rows, charts from cells, CSV import, cell history | `sheet\u002Fsheet.json` | XLSX, CSV |\n| [Data](artifact-types\u002Fdata\u002FSKILL.md) | A live dashboard or report: datasets from CSV\u002FJSON\u002Ftext uploads, live MCP connector queries or calculations, drawn by a plain HTML\u002FCSS\u002Fd3 page; Sources shows where each number comes from; filters, hand edits, remix drafts | `db\u002Fdash\u002Fmeta.json` | PDF, HTML, JSON |\n| [Docs](artifact-types\u002Fdocs\u002FSKILL.md) | A living document in tabs: headings, lists, tables, pictures, dates, mentions and dropdowns; suggested edits to accept or reject, comments, a version history per tab; imports Markdown, Word and PDF | `doc\u002Fdoc.json` | Markdown, Word, PDF, HTML |\n| [Motion](artifact-types\u002Fmotion\u002FSKILL.md) | A short animated film: scenes in HTML\u002FCSS\u002FJS drawn from time, a generated score, rough cut then final, captions and voiceover; retype, recolor, refont, recut and restyle by hand; comments pinned to a moment or a spot in the frame | `db\u002Ffilm\u002Fmeta.json` | MP4, GIF, HTML, ZIP |\n\nEach type folder is a self-contained skill: `SKILL.md` tells the agent how to write it, `reference\u002F` documents the\nfile format, `artifact-type.json` describes it to hosts, and `scripts\u002F` (built) holds the CLI and editors.\n\n## Quick start\n\n### 1. As a plugin in your agent app (recommended)\n\nInstall **Node.js 22.18+**, then download `open-artifact-plugins.zip` from the **Assets** section of a\n[GitHub Release](https:\u002F\u002Fgithub.com\u002FJimLiu\u002Fopen-artifact\u002Freleases). Extract it to a permanent location and use the\nextracted `open-artifact-plugins\u002F` folder in the steps below. The plugins include the skill, daemon and editors.\nDeepSeek Harness installs its prebuilt package directly from npm.\n\n| Agent app | Install |\n|---|---|\n| [Claude Code](plugins\u002Fclaude-code\u002FREADME.md) (CLI, desktop, IDE) | Add the extracted root as a marketplace, then install `open-artifact@open-artifact`. |\n| [Codex](plugins\u002Fcodex\u002FREADME.md) (CLI, app) and ChatGPT desktop | Add the extracted root with `codex plugin marketplace add`, then install **Open Artifact** in Plugins. |\n| [Cursor](plugins\u002Fcursor\u002FREADME.md) | Copy the extracted `cursor\u002F` folder to `~\u002F.cursor\u002Fplugins\u002Flocal\u002Fopen-artifact`, then run **Developer: Reload Window**. |\n| [GitHub Copilot](plugins\u002Fcopilot\u002FREADME.md) CLI | Add the extracted root as a marketplace, then install `open-artifact@open-artifact`. |\n| [GitHub Copilot](plugins\u002Fcopilot\u002FREADME.md) in VS Code | Run **Chat: Install Plugin from Source** and select the extracted `copilot\u002F` folder. |\n| [Antigravity](plugins\u002Fantigravity\u002FREADME.md) | Install the extracted `antigravity\u002F` folder with `agy plugin install` or copy it to `~\u002F.gemini\u002Fconfig\u002Fplugins\u002Fopen-artifact`, then restart the app. |\n| [ChatGPT on the web](plugins\u002Fchatgpt\u002FREADME.md) | Run the prebuilt connector from the extracted `chatgpt\u002F` folder and connect it over HTTPS. |\n| [DeepSeek Harness](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fdsh-open-artifact) | In Plugins, choose **Add plugin** and enter `dsh-open-artifact` as the npm package. In the CLI, run `dsh plugin --profile web add dsh-open-artifact` for the web profile. |\n\nTo upgrade, download the new ZIP, replace the extracted folder at the same path, and follow your app's\nupdate steps in the linked guide. If your marketplace still points to a source checkout, register the extracted\nfolder using the migration steps in your app's guide.\n\nIn DeepSeek Harness, use **Update** on the Open Artifact page when a new version is offered. If you previously\nlinked a local checkout, remove the linked plugin in Plugins and add `dsh-open-artifact` from npm.\n\nIn a new session, try one of these prompts.\n\n```text\n\u002Fopen-artifact slides a 6-slide pitch for this repo\n\u002Fopen-artifact design three landing page options for a coffee shop\n\u002Fopen-artifact whiteboard a retro board for last sprint\n\u002Fopen-artifact sheets a monthly budget with categories and totals\n\u002Fopen-artifact data a dashboard of signups by month from signups.csv\n\u002Fopen-artifact docs a hiring plan for 2027 with roles, budget and timeline\n\u002Fopen-artifact motion a 20-second launch animation for this app\n```\n\nThe plugin adds the `Artifact`, `ArtifactData` and `ArtifactComments` MCP tools, the skill, and hooks that bring\npage comments back into the session. How each app gets comments back, and what was tested in each, is in\n[plugins\u002FREADME.md](plugins\u002FREADME.md).\n\nIn an app that shows [MCP Apps](https:\u002F\u002Fmodelcontextprotocol.io\u002Fdocs\u002Fextensions\u002Fapps), the agent also gets a\n`ShowArtifact` tool: it puts the artifact's live page in the conversation, where you can edit and comment without\nleaving the chat, go full screen, open it in a browser or send your comments to the agent. Apps that don't show\nMCP Apps never see the tool.\n\n### 2. As a skill for any other agent\n\nCopy `codex\u002Fskills\u002Fopen-artifact\u002F` from the extracted plugin bundle to your agent's skill directory. It carries\nthe daemon, and the agent drives it from the command line. From the extracted bundle root, you can try:\n\n```bash\nnode codex\u002Fskills\u002Fopen-artifact\u002Fscripts\u002Fopen-artifact.mjs artifact '{\"action\":\"list\",\"scope\":\"types\"}'\n```\n\n### 3. One type on its own\n\nAfter [building from source](#build-from-source), every built type folder runs by itself, without the daemon:\n\n```bash\nnode artifact-types\u002Fdesign\u002Fscripts\u002Fcli.mjs open .\u002Fmy-design --type design   # starts a local server, prints the URL\nnode artifact-types\u002Fdesign\u002Fscripts\u002Fcli.mjs wait .\u002Fmy-design                 # blocks until someone presses \"Send to agent\"\n```\n\nOther commands: `check`, `generate`, `upload`, `context`, `comments`, `history`, `share`, `status`, `stop`, … Run the\nCLI with no arguments for the full list.\n\n## Development\n\n### Build from source\n\nFrom a source checkout, install dependencies and build the workspace and plugin folders.\n\n```bash\nnpm ci\nnpm run build\nnode scripts\u002Fbuild-plugins.mjs\n```\n\nFor local plugin development, use `dist\u002Fplugins\u002F` wherever the installation guides use the extracted folder.\n\n```bash\nnpm run typecheck\nnpm test             # unit tests (node --test)\nnpm run e2e          # end-to-end: drives the built types with the CLI and Chrome, see e2e\u002FREADME.md\n```\n\nThe Rust crates in `crates\u002F` compile to WebAssembly. Their output is committed under `packages\u002Fwasm-*\u002Fgenerated\u002F`,\nso you only need Rust when you change a crate:\n\n```bash\nnode scripts\u002Fbuild-wasm.mjs   # needs cargo + wasm32-unknown-unknown, wasm-bindgen, wasm-opt\n```\n\n### Releasing\n\n`node scripts\u002Fbuild-npm.mjs` stages the npm packages in `dist\u002Fnpm\u002F`: the `@open-artifact\u002F*` libraries (compiled to\nJavaScript with type declarations), `@open-artifact\u002Fcli` (the `open-artifact` command with the daemon vendored) and\n`dsh-open-artifact`. To release:\n\n1. Raise the versions (every package and plugin manifest shares one version).\n2. Run `node scripts\u002Fchangelog.mjs` for the commits since the last tag, and add a `## [x.y.z] - date` entry at the top\n   of [CHANGELOG.md](CHANGELOG.md) that says what changed for people using it (Added \u002F Changed \u002F Fixed), plus its\n   compare link at the bottom.\n3. Commit, then push a tag (`v0.9.0`). The [Publish to npm](.github\u002Fworkflows\u002Fpublish-npm.yml) workflow requires a\n   changelog entry for the tag. It publishes new package versions through npm trusted publishing, attaches\n   `open-artifact-plugins.zip` to the tag's GitHub release and uses the changelog entry as its release notes.\n\nA package npm doesn't have yet is claimed once from a computer before its first release:\n`node scripts\u002Fpublish-npm.mjs --claim` publishes its staged version and sets the workflow as its trusted publisher.\n`node scripts\u002Fpublish-npm.mjs` publishes from a computer too (`--dry-run` to look first).\n\n## Repository layout\n\n| Path | Contents |\n|---|---|\n| `artifact-types\u002F` | The eight types as skills: `SKILL.md`, `reference\u002F`, `artifact-type.json`. |\n| `skills\u002Fopen-artifact\u002F` | The one `\u002Fopen-artifact \u003Ctype>` skill; `vendor\u002F` (built) carries the daemon. |\n| `plugins\u002F` | The skill packaged per agent app, with hooks and MCP config ([README](plugins\u002FREADME.md)). |\n| **Platform** | |\n| `packages\u002Fdaemon` | The `open-artifact` daemon: type registry, artifact library, agent tools, MCP, wake routing, the Harness API. |\n| `packages\u002Fshell` | The daemon's pages: the Shell frame around every artifact, and the home page. |\n| `packages\u002Fprotocol` | Typed contracts shared by the daemon, harness adapters, type servers, the Shell and pages. |\n| `packages\u002Fruntime` | `window.openartifact`, the capability API pages use (files, uploads, user, agent, presence, downloads). |\n| `packages\u002Ftype-server`, `packages\u002Fserver-sdk` | The per-type local server and `cli.mjs`; shared server code. |\n| **Types** | |\n| `packages\u002Fslides-core`, `slides-editor` | Slides model (HTML subset, `deck.json`) and editor. |\n| `packages\u002Fdesign-core`, `design-editor`, `dc` | Design model (`canvas.json`), editor, and the `.dc.html` artboard format. |\n| `packages\u002Fdesign-system-core`, `design-system-editor` | Design System model (token grammar, CSS compiler) and editor. |\n| `packages\u002Fwhiteboard-core`, `whiteboard-editor` | Whiteboard model (schema, live sync, geometry) and editor. |\n| `packages\u002Fsheets-core`, `sheets-editor` | Sheets model (workbook, cells, styles, tables, charts) and editor. |\n| `packages\u002Fdata-core`, `data-editor` | Data model (datasets, queries, rules, the dashboard page) and editor. |\n| `packages\u002Fdocs-core`, `docs-editor` | Docs model (blocks and characters with ids, ops, suggestions, markdown) and editor. |\n| `packages\u002Fmotion-core`, `motion-stage`, `motion-audio`, `motion-export`, `motion-editor` | Motion model (film store, scenes, by-hand records), the sandboxed stage and its `kit`, score synthesis, MP4\u002FGIF\u002FHTML\u002FZIP export, and the player. |\n| **Shared** | |\n| `packages\u002Flive-store` | Live document sync shared by Whiteboard, Data and Motion. |\n| `packages\u002Fui`, `editor-kit`, `export-kit` | UI kit (Base UI + Tailwind), what editors share (comments, history, presence…), browser-side exports. |\n| `packages\u002Fcanvas-engine`, `wasm-*`, `crates\u002F` | WebGL2 canvas engine and the Rust\u002FWebAssembly crates behind it, exports, whiteboard geometry, data rules, the sheets formula engine and motion (GIF\u002FMOV encoding, flash analysis). |\n| `e2e\u002F` | End-to-end tests. |\n| `scripts\u002F` | `build.mjs`, `build-plugins.mjs`, `build-skill.mjs`, `build-wasm.mjs`. |\n\n## License\n\n[Apache License 2.0](LICENSE). Copyright 2026 Jim Liu 宝玉; see [NOTICE](NOTICE).\n","Open Artifact 是一个开源的本地化编码代理协作框架，旨在让AI编程助手能生成可交互、可编辑、可评论的富媒体产物（如幻灯片、UI设计稿、白板、电子表格等），而非仅输出静态文件。其核心采用轻量级本地守护进程与统一Web页面框架，支持多种Artifact类型，每个类型对应标准化文件结构和导出能力（如PPTX、PNG、XLSX），所有数据全程离线运行，无需账户或云端上传。适用于本地AI开发工作流中需要人机协同编辑、反馈闭环与多模态交付的场景，兼容Claude Code、Cursor、Copilot等主流代理工具。",2,"2026-11-24 04:53:42","CREATED_QUERY"]