> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nemu.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Artifacts

> Documents, websites, diagrams, charts and PDFs, with version history

When the assistant produces something you would keep rather than read once, it
makes an artifact: a panel beside the conversation with its own preview, its own
edit view and its own history.

## Types

| Type     | Rendered as                                   |
| -------- | --------------------------------------------- |
| Website  | A live page in a sandboxed frame              |
| Markdown | Formatted text                                |
| Code     | Highlighted and editable, never run           |
| SVG      | The image, over light, dark or a checkerboard |
| Diagram  | A Mermaid diagram you can pan and zoom        |
| Chart    | A line, bar, area or pie chart                |
| PDF      | The document itself                           |

## Previewing a website

The toolbar switches the frame between mobile at 390 pixels, tablet at 768,
desktop at 1280, and full width. There is an inspector and a console with an
error count, so a page that misbehaves can be diagnosed without leaving the
chat.

Every artifact has Preview and Edit tabs, a split view that shows both, and full
screen for websites.

## Versions

Editing creates a version rather than overwriting. The version button shows the
current number, and the history lists every version with how much changed and
when.

You can preview an older version read only, or set it as current, which forks
forward from that point rather than destroying what came after.

## Editing

You can edit an artifact yourself in the edit tab and save, or reset it back to
what the assistant produced. The assistant edits by replacing exact strings
rather than rewriting the file, so your changes to other parts survive.

## Downloading

Download gives you the file. A downloaded website carries a small "Created with
nemu" badge in the corner.

## Long documents

For something too long to write in one pass, the assistant hands it to a build
subagent that plans the sections, drafts them one at a time, and assembles the
result. That is why a very long document appears section by section.
