Skip to content

Artifacts

Export a Canvas or artifact

How exporting a Canvas or artifact works — saving or copying it as one HTML file, or sending it to a folder you choose or a GitHub Gist — what the approval card shows, and what the receipt is.

  • 11 min read
  • 8 sections

Export a Canvas or artifact ​

Export writes a readable copy of an Artifact (Canvas) somewhere you choose. The copy can be Markdown, HTML, Word (.docx), PDF, CSV, Excel (.xlsx), React TSX (for mockups), or PNG images, so any editor, spreadsheet, viewer, or other tool can open it. Four destinations ship today: a folder on this computer, a GitHub Gist, a public link, and a sharehtml.org page.

Whatever the destination, Octant renders the document first and shows it to you before anything is sent or written. A destination is called only after you approve the card. The Canvas or artifact itself stays in Octant: deleting or editing an export does not delete or change anything, and importing it back adds a version rather than replacing one.

Save or copy a Canvas as one HTML file ​

To take a Canvas into Claude, a document, or anywhere else, open it and choose More Canvas actions (the … button) › Save as HTML file or Copy HTML. Either gives you the version on screen as one .html file:

  • It opens offline in any browser and looks like the Canvas: charts, diagrams, treemaps, heatmaps, and bar lists are drawn as pictures inside the file, with each one's numbers under a Data disclosure; metrics, callouts, tables, and math keep their look; designs are drawn in their frames, and a prototype runs.
  • It loads nothing from the internet: no fonts, scripts, or stylesheets are fetched, and its own policy blocks every load. The only web addresses in it are the links the Canvas itself holds, which open only if you click them.
  • Images a design uses (generated images, Project files, browser captures) and generated images in image blocks are inside the file, up to 4 MB of images in all. An image past that shows a labelled placeholder, and Octant tells you how many were left out. A file over 7 MB is refused rather than cut short.
  • It carries no file paths from this computer and no Project, thread, or Canvas ids. Text Octant would not let leave in any export, such as a path or something shaped like a key, reads as [redacted].

Save as HTML file downloads the file, named after the Canvas title. Copy HTML puts the whole file on your clipboard, ready to paste. Both stay on your computer: nothing is uploaded, no destination is called, and there is no approval card, because the file goes only to you. A design's markup is included exactly as it was written, and Octant does not check markup for secrets, so the line under the Canvas tools says so when the file holds one. On a paired device the same actions save to, or copy on, that device.

Save locally as Word (.docx), PDF, CSV, Excel (.xlsx), or TSX ​

The same More (…) menu offers direct local saves without uploading anything:

  • Save as Word (.docx) — writes an editable OOXML .docx document preserving headings, rich Markdown formatting, lists, blockquotes, code blocks, and tables (with secret and path redaction).
  • Print / Save PDF — opens the print / save-as-PDF flow for a clean, selectable-text PDF of the document.
  • Save as CSV — offered when the Artifact holds a spreadsheet block; saves the active sheet as UTF-8 RFC-4180 CSV with formula-injection neutralization and share-filter redaction.
  • Save as Excel (.xlsx) — offered when the Artifact holds a spreadsheet block; saves a multi-sheet OOXML .xlsx workbook carrying both formulas and server-evaluated cached values.
  • Save mockups as TSX — offered when the Artifact holds a mockup block; writes dependency-free React TSX components.

To bring spreadsheet data in from outside Octant, choose Import CSV / Excel… in the same menu (up to 5 MiB for .csv, .tsv, or .xlsx; imported spreadsheets are marked as outside content, and unsupported Excel functions or formula syntax keep their cached value with a warning).

Export to a folder ​

A folder export writes a file and makes no network call: nothing about it leaves your computer.

Choose a folder ​

Export uses one folder per choice:

  • A folder you choose while a Canvas or artifact is open is remembered for that Project.
  • A thread filed under no Project, and a Canvas made in such a Chat thread, export to the host's folder. Choose one the same way from any Canvas, and it applies to everything without a Project of its own.

The folder always comes from Octant's own folder browser, which lists folders on this computer. Octant never takes a folder path typed or sent from a window. A folder must be inside your home folder; reaching outside it needs the standing access-outside-project approval, which this preview does not offer, so an outside folder is refused rather than assumed. Octant remembers the folder by where it really is: if the folder, or a folder above it, is later replaced by a link to somewhere else, the export is refused instead of following the link. Inside home is judged by where folders really are, too: when your home folder is itself a link, a folder inside it counts, and a link inside your home folder that leads outside it does not.

Put the folder inside a folder your sync client already watches if you want the files on your other computers and in their cloud copies — for example ~/Google Drive/…, ~/Dropbox/…, or any other file-share service that keeps a local synced folder. Octant adds no cloud of its own for this; the sync client is the one that uploads, under its own terms.

What the approval card shows ​

Export renders the document first and shows it to you before anything is written. The card carries the rendered payload and the exact file it will write, including the folder and the file name. Nothing is written until you approve it, and declining writes nothing at all.

An HTML export draws charts and diagrams as pictures, as Save as HTML file does. A Canvas too large to fit the card with its pictures is written with each picture's numbers in its place instead, rather than refused.

The receipt after a folder export is the path of the file that was written.

File names, and when a file is already there ​

The name comes from the Canvas title, made safe for a file system, plus .md or .html for the format you chose. Titles that contain path separators or reserved characters are flattened into plain words.

If a file with that name is already in the folder, the approval card names it and says it will be replaced. Approving that card is what replaces it. Anything that is not confirmed that way — an export that could not name its file — is written beside it instead, as name (2).md, then name (3).md, so an export never quietly overwrites a file you kept.

Status ​

The folder destination reports one of three states:

  • Not connected — no folder has been chosen yet. Choose one from the export panel.
  • Ready — a folder is chosen and can be written.
  • Refused, with the reason — the folder has been moved, deleted, had its permissions taken away, or sits outside your home folder.

Export to a GitHub Gist ​

A gist is a small file hosted by GitHub. Export uses the GitHub connection Octant already has for your repositories and issues — you do not connect anything again. If GitHub is not connected, the gist destination says so and cannot be chosen.

Markdown only, for now. The gist contains one file, named from the Canvas title with a .md extension. HTML can follow.

What the approval card shows ​

The card carries the rendered payload, the account it will be posted as, and who can see it:

  • Secret (the default) — the gist is unlisted: it appears on no profile and in no search, but anyone who has its URL can view it.
  • Public — anyone on the internet can see it. The card says this plainly before you choose it.

Nothing is sent until you approve the card. Declining sends nothing. The gist is created only after approval, and only against GitHub's API.

Secret boundary ​

The document goes through the same checks as every other export: no absolute file paths and no secret-shaped values. A document that still contains one is refused rather than posted.

The receipt, and when GitHub refuses ​

The receipt is the gist's URL and its id. If GitHub refuses the credential — for example, because it has been revoked or expired — the export is refused with a clear message and nothing is posted; reconnect GitHub and try again. If GitHub declines to create the gist for another reason, most often because the connection lacks the gist scope, the export says GitHub declined it rather than that GitHub could not be reached.

Status ​

The gist destination reports one of three states:

  • Not connected — GitHub is not connected. Connect it from Settings. Octant checks the connection when you open the export panel, not when it starts, so connecting GitHub shows up the next time you open it.
  • Ready — GitHub is connected and the export will post as your account.
  • Refused, with the reason — GitHub is signed in, but its credential is stored in plain text on this computer, so Octant will not send through it. The same rule applies to Octant's other GitHub features.

Publish as a web page on sharehtml.org ​

sharehtml.org turns one HTML file into a link: unlisted, no account needed, served byte-for-byte on its own origin with nothing injected. This destination takes the Canvas rendered as one HTML page, drawn as Save as HTML file draws it except that images show a placeholder, and uploads it after you approve the card. It needs no sign-in on your side; anonymous uploads are part of its API.

What the approval card shows ​

The card carries the exact rendered page and a note that the page is unlisted: anyone with the link can open it, and sharehtml.org can read it. Nothing is sent until you approve.

The receipt is the page's URL and id. An anonymous upload also returns a manage URL, shown once — with it you can later replace or delete the page on sharehtml.org. Octant does not store it; copy it from the receipt if you want to keep it.

Limits and refusals ​

Free pages are capped at 5 MB and rate-limited (a few uploads a minute, a daily anonymous cap); an export past that is refused with the service's reason and can be retried later. A page that fails sharehtml.org's abuse screening is refused, and nothing is uploaded. The document goes through the same checks as every other export: no absolute file paths and no secret-shaped values leave this computer.

Status ​

The sharehtml.org destination is ready on every host — it needs no local connection — and reports when the service could not be reached.

A public link is a read-only page hosted by a share service, so anyone you give the URL can open the Canvas in a browser. It is off until you turn on Settings › Permissions › Public links. The approval card shows the content that will be sent, who can open it, the expiry, and an optional password, and the service can read what you publish. See Share a Canvas with a public link.

Formats and platforms ​

Markdown, HTML, Word (.docx), PNG, PDF, CSV, and Excel (.xlsx) are rendered. The folder destination accepts all of them (with CSV and XLSX offered for Artifacts containing spreadsheets); the Gist destination takes Markdown only; the sharehtml.org destination takes one HTML page.

Pictures: PNG and PDF ​

PNG and PDF are drawn by a browser on this computer, so a computer with no Chromium Octant can use refuses them with a plain message, and Markdown and HTML still work. Nothing is drawn on a server.

  • A deck or a set of screens (a design of slides or device-size screens): PNG writes one image per slide or screen, numbered in order (Launch plan 1.png, Launch plan 2.png). PDF writes one file with one page per slide or screen, at the slide's own size.
  • Any other Canvas: PNG writes one tall image of the document, and PDF writes an A4 document that the browser paginates.

The approval card lists every file and its size instead of showing a body. When the pictures show a design, it also says Octant does not check the design for secrets, the same as HTML export. A picture export is placed like any other file: if a file is already there, the card says so, and approving it replaces each file by name; otherwise each existing file gets a numbered copy beside it.

Export to a folder works on macOS and Linux. The gist destination needs a working GitHub connection.

Present and Play full screen ​

Present (a deck) and Play (a set of screens) open in a large window over the Canvas. Press Full screen in its top bar to fill the display, and press Esc to leave. The left and right arrow keys, Page Up and Page Down still move between slides.

Octant documentation · local-first by design