A local library for agent HTML.

Keep pages, charts, and reports on your machine. Same key when you revise. Preview in a sandbox.

htmlark put --key q3-sales --file ./q3.html --json
PreviewSourceVersions
DownloadsChat sidebarOne vendor hosthtmlark

Where they go today

  • An agent writes a dashboard. It lands in Downloads or a session sidebar.
  • Tomorrow a different agent rewrites the page. Colors, type, and chart library all change.
  • A week later there is no v1 to open, and no file you can hand someone.

What htmlark keeps

  • One key is one artifact. put updates the same id.
  • Loopback preview runs inside a CSP sandbox. Dirty HTML is stored, not executed.
  • Source diff and restore. Share by exporting a file. No public URL in this release.
  1. WriteAny coding agent emits a single HTML or Markdown file. No CDN. Pin vendor scripts.
  2. Puthtmlark put --key … --json creates or updates. On conflict, get, re-apply, retry with base version.
  3. OpenLocal viewer on 127.0.0.1. Preview, source, versions, copy, download. Follow head or pin a version.

Not a Claude Artifacts clone

htmlark covers the static HTML and Markdown path: generate, update, preview, rewind, reopen. It does not host a gallery for you, does not replace ChatGPT or Claude.ai, and does not take Teable. The CLI on your machine is the source of truth.