Skip to content

AI-native design editor. Open-source Figma alternative.

Fix overview page: match sidebar order, rename Why section

Danila Poyarkovc781a990a243
diff --git a/packages/docs/programmable/index.md b/packages/docs/programmable/index.md
index 70489cf39..48fb07f31 100644
--- a/packages/docs/programmable/index.md
+++ b/packages/docs/programmable/index.md
@@ -8,43 +8,43 @@ description: Every operation in OpenPencil is scriptable — AI chat, CLI, JSX r
OpenPencil treats design files as data. Every operation available in the editor — creating shapes, setting fills, managing auto-layout, exporting assets — is also available from the terminal, from AI agents, and from code. No plugins to install, no API keys, no waiting list.
-This is not a bolt-on feature. The editor UI and the programmatic interfaces use the same engine. If you can do it by clicking, you can do it by scripting.
+The editor UI and the automation interfaces use the same engine. If you can do it by clicking, you can do it by scripting.
-## CLI
+## AI Chat
-Inspect, export, and analyze `.fig` files without opening the editor. List pages, search nodes, extract design tokens, render to PNG — all from the terminal with machine-readable JSON output.
+The built-in assistant has access to 87 tools that cover the full surface of the editor. Describe what you want in natural language — "add a 16px drop shadow to all buttons", "create a card component with dark mode variant", "export every frame on this page at 2×".
-The CLI also connects to the running desktop app via RPC, so you can script the editor while you're using it.
+[AI Chat →](./ai-chat)
-[Inspecting Files](./cli/inspecting) · [Exporting](./cli/exporting) · [Analyzing Designs](./cli/analyzing) · [Scripting](./cli/scripting)
+## Collaboration
+
+Real-time multiplayer editing over peer-to-peer WebRTC. No server, no account. Share a room link and edit together with live cursors and follow mode. Document state syncs via CRDT, so edits merge automatically even on flaky connections.
+
+[Collaboration →](./collaboration)
## JSX Renderer
-Describe UI as JSX — the same syntax LLMs already know from React. A single `render_jsx` call can create an entire component tree with frames, text, auto-layout, fills, and strokes. Compact, declarative, and diffable.
+Describe UI as JSX — the same syntax LLMs already know from React. A single `render` call can create an entire component tree with frames, text, auto-layout, fills, and strokes. Compact, declarative, and diffable.
Going the other direction, export any selection back to JSX with Tailwind classes — useful for handing off to development or feeding designs back into an LLM.
[JSX Renderer →](./jsx-renderer)
-## MCP Server
-
-Connect Claude Code, Cursor, Windsurf, or any MCP-compatible client to OpenPencil. The server exposes 90 tools for reading, creating, and modifying designs — the same tools the built-in AI chat uses. Runs over stdio or HTTP with session support.
-
-[MCP Server →](./mcp-server)
+## CLI
-## AI Chat
+Inspect, export, and analyze `.fig` files without opening the editor. List pages, search nodes, extract design tokens, render to PNG — all from the terminal with machine-readable JSON output.
-The built-in assistant has access to 87 tools that cover the full surface of the editor. Describe what you want in natural language — "add a 16px drop shadow to all buttons", "create a card component with dark mode variant", "export every frame on this page at 2×".
+The CLI also connects to the running desktop app via RPC, so you can script the editor while you're using it.
-[AI Chat →](./ai-chat)
+[Inspecting Files](./cli/inspecting) · [Exporting](./cli/exporting) · [Analyzing Designs](./cli/analyzing) · [Scripting](./cli/scripting)
-## Collaboration
+## MCP Server
-Real-time multiplayer editing over peer-to-peer WebRTC. No server, no account. Share a room link and edit together with live cursors and follow mode. Document state syncs via CRDT, so edits merge automatically even on flaky connections.
+Connect Claude Code, Cursor, Windsurf, or any MCP-compatible client to OpenPencil. The server exposes 90 tools for reading, creating, and modifying designs — the same tools the built-in AI chat uses. Runs over stdio or HTTP with session support.
-[Collaboration →](./collaboration)
+[MCP Server →](./mcp-server)
-## Why Programmable?
+## Why Open?
Figma is a closed platform. Their MCP server is read-only. CDP browser access was killed in version 126. Design files live in a proprietary format on someone else's servers. Plugin development requires a custom runtime with limited APIs.