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

# Whiteboard

> Freeform Excalidraw drawings stored as markdown files that version, sync, and embed like any other page.

A whiteboard is a freeform Excalidraw drawing saved as a markdown file with an **`.excalidraw.md`** suffix. Because the drawing lives in a plain file, it gets git history, travels over every protocol, and embeds in other pages.

Use a whiteboard for sketches, brainstorming, and hand-drawn diagrams. For structured diagrams built from cards and page references, use a [canvas](https://docs.kiwifs.com/concepts/canvas.md) instead.

## File format

KiwiFS uses the same layout as the Obsidian Excalidraw plugin, so drawings open in both tools. The scene JSON sits in a fenced block under a `## Drawing` heading.

````markdown whiteboards/architecture.excalidraw.md theme={null}
---
excalidraw-plugin: parsed
---

# Excalidraw Data

## Drawing

```json
{"type":"excalidraw","version":2,"source":"kiwifs","elements":[],"appState":{"gridSize":null,"viewBackgroundColor":"#ffffff"},"files":{}}
```
````

The `elements` array holds the shapes, arrows, and text you draw. KiwiFS also reads drawings saved as LZ-string compressed scenes in a ` ```compressed-json ` fence, and keeps them compressed when it saves.

New whiteboards go under `whiteboards/`, named from the title you enter:

**whiteboards**

**architecture.excalidraw\.md**

**brainstorm.excalidraw\.md**

## Web UI

**1. Open the whiteboard hub**

Click **Whiteboard** in the toolbar. The hub lists every `.excalidraw.md` file and reopens the last one you used. If none exist, it creates `whiteboards/untitled.excalidraw.md`.

**2. Create or pick a board**

Click **New whiteboard** and enter a name, or pick a board from the dropdown.

**3. Draw**

Use the Excalidraw tools to sketch and annotate. Changes save about 1.5 seconds after you stop drawing. Saves use the file's ETag, so a conflicting edit from another client is rejected instead of overwritten.

Opening an `.excalidraw.md` file from the file tree opens it on the whiteboard. Hide the **Whiteboard** toolbar button with `whiteboard = false` under `[ui.features]`.

## Embed a drawing in a page

Embed a whiteboard with wiki link embed syntax. The page shows a read-only preview with a button to open the full board.

```markdown concepts/auth.md theme={null}
The login flow is sketched below.

![[whiteboards/architecture.excalidraw.md]]
```

The same syntax embeds a canvas, for example `![[canvases/auth-flow.canvas.json]]`.

## Agents and whiteboards

Whiteboards need no dedicated API. Agents read and write them with `kiwi_read` and `kiwi_write`, or with `GET` and `PUT /api/kiwi/file`, like any other page. To change a drawing, replace the JSON inside the `## Drawing` fence and keep the rest of the file intact.

> [!TIP]
>
> For diagrams that agents generate or edit often, prefer a [canvas](https://docs.kiwifs.com/concepts/canvas.md). Its typed nodes and `PATCH` endpoint are easier to change precisely than raw Excalidraw elements.

## Related

> [card] [Canvas](https://docs.kiwifs.com/concepts/canvas.md)
>
> Structured JSON Canvas diagrams.

> [card] [Wiki links](https://docs.kiwifs.com/concepts/wiki-links.md)
>
> Link and embed syntax.

> [card] [Files as truth](https://docs.kiwifs.com/concepts/files-as-truth.md)
>
> How KiwiFS stores everything on disk.

> [card] [Web UI](https://docs.kiwifs.com/guides/web-ui.md)
>
> Toolbar views and the file tree.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.