Skip to content

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

docs: remove untranslated localized placeholders

Danila Poyarkov3572eeec5e66
diff --git a/bun.lock b/bun.lock
index 7a07f00d0..bf108851f 100644
--- a/bun.lock
+++ b/bun.lock
@@ -91,6 +91,7 @@
"cloudflare-redirect-parser": "^1.0.0",
"esbuild": "^0.27.3",
"fake-indexeddb": "^6.2.5",
+ "franc": "^6.2.0",
"hono": "^4.12.5",
"jscpd": "^4.0.8",
"knip": "6.20.0",
@@ -1616,6 +1617,8 @@
"cloudflare-redirect-parser": ["[email protected]", "", {}, "sha512-puEB3wmP47RICu/CboTHd237Up/r3Nagsr622mJxWgvEVfRxNlKceNfpPieMYDe/E1nYJsf6iempsrkitgQZVw=="],
+ "collapse-white-space": ["[email protected]", "", {}, "sha512-loKTxY1zCOuG4j9f6EPnuyyYkf58RnhhWTvRoZEokgB+WbdXehfjFviyOVYkqzEWz1Q5kRiZdBYS5SwxbQYwzw=="],
+
"color-convert": ["[email protected]", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
"color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
@@ -1898,6 +1901,8 @@
"framer-motion": ["[email protected]", "", { "dependencies": { "motion-dom": "^12.38.0", "motion-utils": "^12.36.0", "tslib": "^2.4.0" }, "peerDependencies": { "@emotion/is-prop-valid": "*", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@emotion/is-prop-valid", "react", "react-dom"] }, "sha512-rFYkY/pigbcswl1XQSb7q424kSTQ8q6eAC+YUsSKooHQYuLdzdHjrt6uxUC+PRAO++q5IS7+TamgIw1AphxR+g=="],
+ "franc": ["[email protected]", "", { "dependencies": { "trigram-utils": "^2.0.0" } }, "sha512-rcAewP7PSHvjq7Kgd7dhj82zE071kX5B4W1M4ewYMf/P+i6YsDQmj62Xz3VQm9zyUzUXwhIde/wHLGCMrM+yGg=="],
+
"fresh": ["[email protected]", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="],
"fs-extra": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-CTXd6rk/M3/ULNQj8FBqBWHYBVYybQ3VPBw0xGKFe3tuH7ytT6ACnvzpIQ3UZtB8yvUKC2cXn1a+x+5EVQLovA=="],
@@ -2472,6 +2477,8 @@
"mz": ["[email protected]", "", { "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q=="],
+ "n-gram": ["[email protected]", "", {}, "sha512-S24aGsn+HLBxUGVAUFOwGpKs7LBcG4RudKU//eWzt/mQ97/NMKQxDWHyHx63UNWk/OOdihgmzoETn1tf5nQDzQ=="],
+
"nanoevents": ["[email protected]", "", {}, "sha512-Jd0fILWG44a9luj8v5kED4WI+zfkkgwKyRQKItTtlPfEsh7Lznfi1kr8/iZ+XAIss4Qq5GqRB0qtWbaz9ceO/A=="],
"nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
@@ -2984,6 +2991,8 @@
"tree-kill": ["[email protected]", "", { "bin": { "tree-kill": "cli.js" } }, "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A=="],
+ "trigram-utils": ["[email protected]", "", { "dependencies": { "collapse-white-space": "^2.0.0", "n-gram": "^2.0.0" } }, "sha512-nfWIXHEaB+HdyslAfMxSqWKDdmqY9I32jS7GnqpdWQnLH89r6A5sdk3fDVYqGAZ0CrT8ovAFSAo6HRiWcWNIGQ=="],
+
"trim-lines": ["[email protected]", "", {}, "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg=="],
"trough": ["[email protected]", "", {}, "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw=="],
diff --git a/package.json b/package.json
index 7aeb50b01..8f2022002 100644
--- a/package.json
+++ b/package.json
@@ -147,6 +147,7 @@
"cloudflare-redirect-parser": "^1.0.0",
"esbuild": "^0.27.3",
"fake-indexeddb": "^6.2.5",
+ "franc": "^6.2.0",
"hono": "^4.12.5",
"jscpd": "^4.0.8",
"knip": "6.20.0",
diff --git a/packages/docs/.vitepress/sdk-sidebar.ts b/packages/docs/.vitepress/sdk-sidebar.ts
index d325ddcde..3075c93eb 100644
--- a/packages/docs/.vitepress/sdk-sidebar.ts
+++ b/packages/docs/.vitepress/sdk-sidebar.ts
@@ -79,7 +79,7 @@ const SDK_ADVANCED_PAGES = [
{ text: 'useLayerTree', slug: 'use-layer-tree' },
{ text: 'useToolbar', slug: 'use-toolbar' },
{ text: 'usePropertyList', slug: 'use-property-list' },
- { text: 'useNumberField', slug: 'use-number-field' },
+ { text: 'useNumberField', slug: 'use-number-field', canonical: true },
{ text: 'useOkHCL', slug: 'use-okhcl' },
{ text: 'useVariables', slug: 'use-variables' },
{ text: 'useVariablesDialogState', slug: 'use-variables-dialog-state' },
diff --git a/packages/docs/.vitepress/sidebars.ts b/packages/docs/.vitepress/sidebars.ts
index b8521b24e..e53f654ec 100644
--- a/packages/docs/.vitepress/sidebars.ts
+++ b/packages/docs/.vitepress/sidebars.ts
@@ -58,13 +58,13 @@ export const programmableSidebar = (
text: labels.overview,
items: [
{ text: labels.overview, link: `${prefix}/programmable/` },
- { text: labels.cli, link: `${prefix}/reference/cli` },
+ { text: labels.cli, link: '/reference/cli' },
{ text: labels.inspecting, link: `${prefix}/programmable/cli/inspecting` },
{ text: labels.exporting, link: `${prefix}/programmable/cli/exporting` },
{ text: labels.analyzing, link: `${prefix}/programmable/cli/analyzing` },
{ text: labels.scripting, link: `${prefix}/programmable/cli/scripting` },
{ text: labels.jsxRenderer, link: `${prefix}/programmable/jsx-renderer` },
- { text: labels.mcpServer, link: `${prefix}/programmable/mcp-server` },
+ { text: labels.mcpServer, link: '/programmable/mcp-server' },
{ text: labels.aiChat, link: `${prefix}/programmable/ai-chat` },
...(!prefix
? [
@@ -87,13 +87,13 @@ export const referenceSidebar = (
{
text: label,
items: [
- { text: 'Keyboard Shortcuts', link: `${prefix}/reference/keyboard-shortcuts` },
- { text: 'CLI', link: `${prefix}/reference/cli` },
- { text: 'Node Types', link: `${prefix}/reference/node-types` },
- { text: 'Scene Graph', link: `${prefix}/reference/scene-graph` },
+ { text: 'Keyboard Shortcuts', link: '/reference/keyboard-shortcuts' },
+ { text: 'CLI', link: '/reference/cli' },
+ { text: 'Node Types', link: '/reference/node-types' },
+ { text: 'Scene Graph', link: '/reference/scene-graph' },
{ text: labels.figmaMatrix, link: `${prefix}/reference/figma-compatibility` },
...(!prefix ? [{ text: 'DOM/CSS Mapping', link: '/reference/dom-css-mapping' }] : []),
- { text: 'File Format', link: `${prefix}/reference/file-format` },
+ { text: 'File Format', link: '/reference/file-format' },
],
},
]
diff --git a/packages/docs/de/programmable/index.md b/packages/docs/de/programmable/index.md
index 36e9e61e5..4c3b1c16f 100644
--- a/packages/docs/de/programmable/index.md
+++ b/packages/docs/de/programmable/index.md
@@ -42,7 +42,7 @@ Das CLI verbindet sich auch über RPC mit der laufenden Desktop-App, sodass du d
Verbinde Claude Code, Cursor, Windsurf oder jeden MCP-kompatiblen Client mit OpenPencil. Der Server stellt 90 Werkzeuge zum Lesen, Erstellen und Bearbeiten von Designs bereit — dieselben Werkzeuge, die der integrierte KI-Chat verwendet. Läuft über stdio oder HTTP mit Session-Unterstützung.
-[MCP-Server →](./mcp-server)
+[MCP-Server →](/programmable/mcp-server)
## Warum offen?
diff --git a/packages/docs/de/programmable/mcp-server.md b/packages/docs/de/programmable/mcp-server.md
deleted file mode 100644
index 7139501d4..000000000
--- a/packages/docs/de/programmable/mcp-server.md
+++ /dev/null
@@ -1,255 +0,0 @@
-# MCP Server
-
-OpenPencil includes an MCP (Model Context Protocol) server that lets AI coding tools — Claude Code, Cursor, Windsurf, etc. — read and modify `.fig` files headlessly.
-
-Two transports: **stdio** for MCP clients, **HTTP** for everything else.
-
-## Install
-
-```sh
-npm install -g @open-pencil/mcp
-```
-
-## Stdio (Claude Code, Cursor, etc.)
-
-Add to your MCP config (e.g. `~/.claude/settings.json` or `.cursor/mcp.json`):
-
-```json
-{
- "mcpServers": {
- "open-pencil": {
- "command": "openpencil-mcp"
- }
- }
-}
-```
-
-Or run from source without installing:
-
-::: code-group
-```json [Bun]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "bun",
- "args": ["/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-```json [Node.js]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "npx",
- "args": ["tsx", "/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-:::
-
-## HTTP
-
-For browser extensions, scripts, CI, or any HTTP client:
-
-```sh
-openpencil-mcp-http
-```
-
-Or from source: `bun packages/mcp/src/index.ts` / `npx tsx packages/mcp/src/index.ts`
-
-Security defaults (HTTP transport):
-
-- Binds to `127.0.0.1` by default (`HOST` to override)
-- `eval` tool is disabled
-- File operations are limited to `OPENPENCIL_MCP_ROOT` (defaults to current working directory)
-- CORS is disabled by default; set `OPENPENCIL_MCP_CORS_ORIGIN` to allow one origin
-- Optional auth token: `OPENPENCIL_MCP_AUTH_TOKEN` (client sends `Authorization: Bearer <token>` or `x-mcp-token`)
-
-Server starts on port 7600 (override with `PORT` env var). Endpoints:
-
-- `GET /health` — server status
-- `POST /mcp` — MCP Streamable HTTP (SSE). Sessions via `mcp-session-id` header.
-
-## Workflow
-
-1. **Open** — `open_file` to load an existing `.fig`, or `new_document` for a blank canvas
-2. **Read** — `get_page_tree`, `find_nodes`, `get_node`, `list_pages`
-3. **Create** — `create_shape`, `render` (JSX)
-4. **Modify** — `set_fill`, `set_stroke`, `set_layout`, `update_node`, `set_effects`
-5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`
-6. **Save** — `save_file` to write back to `.fig`
-
-## AI Agent Skill
-
-Teach your AI coding agent to use OpenPencil tools:
-
-```sh
-npx skills add open-pencil/skills@open-pencil
-```
-
-Works with Claude Code, Cursor, Windsurf, Codex, and any agent that supports [skills](https://skills.sh). The skill covers the CLI, MCP tools, JSX rendering, eval, and the running app's automation bridge.
-
-## Tools
-
-OpenPencil currently registers 100+ shared design tools, plus MCP-only document and prompt operations when applicable.
-
-### Document
-
-| Tool | Description |
-|------|-------------|
-| `open_file` | Open a `.fig` file for editing |
-| `save_file` | Save the current document to a `.fig` file |
-| `new_document` | Create a new empty document |
-
-### Read
-
-| Tool | Description |
-|------|-------------|
-| `get_selection` | Get currently selected nodes |
-| `get_page_tree` | Get the full node tree of the current page |
-| `get_current_page` | Get the current page name and ID |
-| `get_node` | Get detailed properties of a node by ID |
-| `find_nodes` | Find nodes by name pattern and/or type |
-| `get_components` | List all components in the document |
-| `list_pages` | List all pages |
-| `list_variables` | List design variables |
-| `list_collections` | List variable collections |
-| `list_fonts` | List fonts used in the current page |
-| `list_available_fonts` | List font families the current host can render |
-| `get_font_status` | Report requested faces, loaded sources, active substitutions, and affected nodes |
-| `page_bounds` | Get bounding box of all objects on the current page |
-| `node_bounds` | Get bounding box of a node |
-| `node_ancestors` | Get ancestor chain of a node |
-| `node_children` | Get direct children of a node |
-| `node_tree` | Get the subtree rooted at a node |
-| `node_bindings` | Get variable bindings on a node |
-
-### Create
-
-| Tool | Description |
-|------|-------------|
-| `create_shape` | Create a shape (`FRAME`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `LINE`, `STAR`, `POLYGON`, `SECTION`) |
-| `create_vector` | Create a vector node from a path string |
-| `create_slice` | Create an export slice |
-| `create_page` | Create a new page |
-| `render` | Render JSX to design nodes — create entire component trees in one call |
-| `create_component` | Convert a frame/group into a component |
-| `create_instance` | Create an instance of a component |
-| `node_to_component` | Convert an existing node into a component in-place |
-
-### Modify
-
-| Tool | Description |
-|------|-------------|
-| `set_fill` | Set fill color (hex) |
-| `set_stroke` | Set stroke color, weight, alignment |
-| `set_effects` | Add shadow or blur effects |
-| `update_node` | Update position, size, opacity, corner radius, text, font |
-| `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment |
-| `set_constraints` | Set resize constraints |
-| `set_rotation` | Set rotation angle in degrees |
-| `set_opacity` | Set opacity (0–1) |
-| `set_radius` | Set corner radius (uniform or per-corner) |
-| `set_minmax` | Set min/max width and height constraints |
-| `set_text` | Set text content of a `TEXT` node |
-| `set_font` | Set font family and weight |
-| `set_font_range` | Set font properties on a character range |
-| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |
-| `set_visible` | Show or hide a node |
-| `set_blend` | Set blend mode |
-| `set_locked` | Lock or unlock a node |
-| `set_stroke_align` | Set stroke alignment (inside/center/outside) |
-| `set_text_properties` | Set text layout: alignment, auto-resize, text case, decoration, truncation |
-| `set_layout_child` | Configure auto-layout child: sizing, grow, alignment, absolute positioning |
-| `node_move` | Move a node to a new position |
-| `node_resize` | Resize a node |
-| `node_replace_with` | Replace a node with another node |
-| `arrange` | Align or distribute selected nodes |
-
-### Structure
-
-| Tool | Description |
-|------|-------------|
-| `delete_node` | Delete a node |
-| `clone_node` | Duplicate a node |
-| `rename_node` | Rename a node |
-| `reparent_node` | Move a node into a different parent |
-| `select_nodes` | Select nodes by ID |
-| `group_nodes` | Group nodes |
-| `ungroup_node` | Ungroup a group |
-| `flatten_nodes` | Flatten nodes into a single vector |
-| `boolean_union` | Boolean union of two or more nodes |
-| `boolean_subtract` | Boolean subtraction |
-| `boolean_intersect` | Boolean intersection |
-| `boolean_exclude` | Boolean exclusion |
-
-### Vector Path
-
-| Tool | Description |
-|------|-------------|
-| `path_get` | Get the path data of a vector node |
-| `path_set` | Set the path data of a vector node |
-| `path_scale` | Scale a vector path |
-| `path_flip` | Flip a vector path horizontally or vertically |
-| `path_move` | Translate a vector path |
-
-### Export
-
-| Tool | Description |
-|------|-------------|
-| `export_image` | Export nodes as PNG, JPG, or WEBP. Returns base64-encoded image data |
-| `export_svg` | Export nodes as SVG markup |
-
-### Viewport
-
-| Tool | Description |
-|------|-------------|
-| `viewport_get` | Get current viewport position and zoom level |
-| `viewport_set` | Set viewport position and zoom |
-| `viewport_zoom_to_fit` | Zoom viewport to fit specified nodes |
-
-### Variables
-
-| Tool | Description |
-|------|-------------|
-| `get_variable` | Get a variable by ID or name |
-| `find_variables` | Find variables by name pattern or type |
-| `create_variable` | Create a new variable in a collection |
-| `set_variable` | Set a variable value in a mode |
-| `delete_variable` | Delete a variable |
-| `bind_variable` | Bind a variable to a node property |
-| `get_collection` | Get a variable collection by ID or name |
-| `create_collection` | Create a new variable collection |
-| `delete_collection` | Delete a variable collection |
-
-### Analyze
-
-| Tool | Description |
-|------|-------------|
-| `analyze_colors` | Analyze color palette usage across the document |
-| `analyze_typography` | Analyze font/size/weight distribution |
-| `analyze_spacing` | Analyze gap and padding values |
-| `analyze_clusters` | Detect repeated patterns (potential components) |
-
-### Diff
-
-| Tool | Description |
-|------|-------------|
-| `diff_create` | Create a snapshot of the current document state |
-| `diff_show` | Show differences between the current state and a snapshot |
-
-### Navigation
-
-| Tool | Description |
-|------|-------------|
-| `switch_page` | Switch to a page by name or ID |
-
-### Escape Hatch
-
-| Tool | Description |
-|------|-------------|
-| `eval` | Execute JavaScript with full Figma Plugin API access |
-
-Note: `eval` is available over stdio, but disabled in HTTP mode for security.
diff --git a/packages/docs/de/programmable/sdk/api/advanced/use-number-field.md b/packages/docs/de/programmable/sdk/api/advanced/use-number-field.md
deleted file mode 100644
index 77d8a0775..000000000
--- a/packages/docs/de/programmable/sdk/api/advanced/use-number-field.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: useNumberField
-description: Context helper for custom NumberField descendants.
----
-
-# useNumberField
-
-The generated `useNumberField()` reference currently shares one canonical source.
-
-[Open the useNumberField reference](/programmable/sdk/api/advanced/use-number-field)
diff --git a/packages/docs/de/reference/cli.md b/packages/docs/de/reference/cli.md
deleted file mode 100644
index 7335121f8..000000000
--- a/packages/docs/de/reference/cli.md
+++ /dev/null
@@ -1,184 +0,0 @@
----
-title: CLI Reference
-description: Complete reference for all openpencil commands, options, and flags.
----
-
-# CLI Reference
-
-All commands accept a `.fig` file as a positional argument. When omitted, the CLI connects to the running desktop app via RPC.
-
-## info
-
-Show document info — pages, node counts, fonts, file size.
-
-```sh
-openpencil info [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## tree
-
-Print the node hierarchy.
-
-```sh
-openpencil tree [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--page` | Page name (default: first page) |
-| `--depth` | Max depth (default: unlimited) |
-| `--json` | Output as JSON |
-
-## find
-
-Search nodes by name or type.
-
-```sh
-openpencil find [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--name` | Node name (partial match, case-insensitive) |
-| `--type` | Node type: `FRAME`, `TEXT`, `RECTANGLE`, `INSTANCE`, etc. |
-| `--page` | Page name (default: all pages) |
-| `--limit` | Max results (default: 100) |
-| `--json` | Output as JSON |
-
-## node
-
-Show detailed properties of a node.
-
-```sh
-openpencil node [file] --id <id> [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--id` | **Required.** Node ID (e.g. `1:23`) |
-| `--json` | Output as JSON |
-
-## pages
-
-List all pages in the document.
-
-```sh
-openpencil pages [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## variables
-
-List design variables and collections.
-
-```sh
-openpencil variables [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--collection` | Filter by collection name |
-| `--type` | Filter by type: `COLOR`, `FLOAT`, `STRING`, `BOOLEAN` |
-| `--json` | Output as JSON |
-
-## export
-
-Export to PNG, JPG, WEBP, SVG, or JSX.
-
-```sh
-openpencil export [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--format` | `-f` | `png` (default), `jpg`, `webp`, `svg`, `jsx` |
-| `--output` | `-o` | Output file path (default: `<name>.<format>`) |
-| `--scale` | `-s` | Export scale (default: 1) |
-| `--quality` | `-q` | Quality 0–100, JPG/WEBP only (default: 90) |
-| `--page` | | Page name (default: first page) |
-| `--node` | | Node ID to export (default: all top-level nodes) |
-| `--style` | | JSX style: `openpencil` (default), `tailwind` |
-| `--thumbnail` | | Export page thumbnail instead of full render |
-| `--width` | | Thumbnail width (default: 1920) |
-| `--height` | | Thumbnail height (default: 1080) |
-
-## eval
-
-Execute JavaScript with the Figma Plugin API.
-
-```sh
-openpencil eval [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--code` | `-c` | JavaScript code to execute |
-| `--stdin` | | Read code from stdin |
-| `--write` | `-w` | Write changes back to the input file |
-| `--output` | `-o` | Write to a different file |
-| `--json` | | Output as JSON |
-| `--quiet` | `-q` | Suppress output |
-
-## analyze colors
-
-Analyze color palette usage across the document.
-
-```sh
-openpencil analyze colors [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max colors to show (default: 30) |
-| `--threshold` | Distance threshold for clustering similar colors, 0–50 (default: 15) |
-| `--similar` | Show similar color clusters |
-| `--json` | Output as JSON |
-
-## analyze typography
-
-Analyze font family, size, and weight distribution.
-
-```sh
-openpencil analyze typography [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--group-by` | Group by: `family`, `size`, `weight` (default: show all styles) |
-| `--limit` | Max styles to show (default: 30) |
-| `--json` | Output as JSON |
-
-## analyze spacing
-
-Analyze gap and padding values across auto-layout frames.
-
-```sh
-openpencil analyze spacing [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--grid` | Base grid size to check against (default: 8) |
-| `--json` | Output as JSON |
-
-## analyze clusters
-
-Find repeated node patterns — potential components.
-
-```sh
-openpencil analyze clusters [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max clusters to show (default: 20) |
-| `--min-size` | Min node size in px (default: 30) |
-| `--min-count` | Min instances to form a cluster (default: 2) |
-| `--json` | Output as JSON |
diff --git a/packages/docs/de/reference/file-format.md b/packages/docs/de/reference/file-format.md
deleted file mode 100644
index ea94b8fb6..000000000
--- a/packages/docs/de/reference/file-format.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# File Format
-
-## .fig File Structure
-
-A `.fig` file is a ZIP archive containing a Kiwi-encoded binary message:
-
-| Offset | Content |
-|--------|---------|
-| 0 | Magic header `fig-kiwi` (8 bytes) |
-| 8 | Version (4 bytes, uint32 LE) |
-| 12 | Schema length (4 bytes, uint32 LE) |
-| 16 | Compressed Kiwi schema |
-| … | Message length (4 bytes, uint32 LE) |
-| … | Compressed Kiwi message — `NodeChange[]` (entire document) |
-| … | Blob data — images, vector networks, fonts |
-
-## Import Pipeline
-
-```
-.fig file → parse header → decompress Zstd → decode Kiwi schema
- → decode message → NodeChange[] → build SceneGraph
- → resolve blob refs → render on canvas
-```
-
-## Export Pipeline
-
-```
-SceneGraph → NodeChange[] → Kiwi encode → compress (Zstd/deflate)
- → build ZIP (header + schema + message + thumbnail.png)
- → write .fig file
-```
-
-Export uses <kbd>⌘</kbd><kbd>S</kbd> (Save) and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> (Save As) with native OS dialogs on the desktop app. The exported file includes a `thumbnail.png` required by Figma for file preview.
-
-Compression uses Zstd via Tauri Rust command on desktop, with deflate fallback in the browser.
-
-## Kiwi Binary Codec
-
-The codec handles Figma's 194-definition Kiwi schema with `NodeChange` as the central type (~390 fields). Key components:
-
-| Module | Purpose |
-|--------|---------|
-| `kiwi-schema` | Kiwi parser (from [evanw/kiwi](https://github.com/nicolo-ribaudo/kiwi)), patched for ESM and sparse field IDs |
-| `codec.ts` | Encode/decode messages using the Kiwi schema |
-| `protocol.ts` | Wire format parsing and message type detection |
-| `schema.ts` | 194 message/enum/struct definitions |
-
-### Sparse Field IDs
-
-Figma's schema uses non-contiguous field IDs (e.g. 1, 2, 5, 10 with gaps). The kiwi-schema parser handles this correctly.
-
-### Compression
-
-`.fig` files use Zstd compression for both the schema and message payloads. Decompression uses the `fzstd` library. For export, Zstd compression is offloaded to a Tauri Rust command on the desktop app (better performance, correct frame headers). In the browser, deflate via `fflate` is used as a fallback.
-
-## Supported Formats
-
-| Format | Import | Export |
-|--------|--------|--------|
-| `.fig` (Figma) | ✅ | ✅ |
-| `.svg` | Planned | Planned |
-| `.png` | Planned | Planned |
-| `.pdf` | — | Planned |
-
-## Clipboard Format
-
-Copy/paste uses the same Kiwi binary encoding:
-
-1. **Copy** — encode selected `NodeChange[]` to Kiwi binary, compress, write to clipboard as `application/x-figma-design` MIME type
-2. **Paste** — read clipboard, decompress, decode Kiwi binary, create nodes in scene graph
-
-Encoding happens synchronously in the copy event handler (not async Clipboard API) for browser compatibility. This enables bidirectional clipboard between OpenPencil and Figma.
diff --git a/packages/docs/de/reference/keyboard-shortcuts.md b/packages/docs/de/reference/keyboard-shortcuts.md
deleted file mode 100644
index 8663e430a..000000000
--- a/packages/docs/de/reference/keyboard-shortcuts.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Tastenkürzel
-
-Vollständige Figma-kompatible Tastenkürzel-Übersicht.
-
-::: tip Symbol Legend
-⌘ = Cmd (Mac) / Ctrl (Win/Linux) · ⇧ = Shift · ⌥ = Alt/Option · ⌃ = Ctrl · ⌫ = Backspace
-:::
-
-## Tools
-
-| Key | Tool | Status |
-|-----|------|--------|
-| <kbd>V</kbd> | Move/Select | ✅ |
-| <kbd>K</kbd> | Scale | 🔲 |
-| <kbd>H</kbd> | Hand | ✅ |
-| <kbd>F</kbd> | Frame | ✅ |
-| <kbd>S</kbd> | Section | ✅ |
-| <kbd>R</kbd> | Rectangle | ✅ |
-| <kbd>O</kbd> | Ellipse | ✅ |
-| <kbd>L</kbd> | Line | ✅ |
-| — | Polygon | ✅ (flyout only) |
-| — | Star | ✅ (flyout only) |
-| <kbd>⇧</kbd><kbd>L</kbd> | Arrow | 🔲 |
-| <kbd>P</kbd> | Pen | ✅ |
-| <kbd>⇧</kbd><kbd>P</kbd> | Pencil | 🔲 |
-| <kbd>T</kbd> | Text | ✅ |
-| <kbd>C</kbd> | Comment | 🔲 |
-| <kbd>I</kbd> | Eyedropper | 🔲 |
-
-## File
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>N</kbd> | New Window | 🔲 |
-| <kbd>⌘</kbd><kbd>O</kbd> | Open File | ✅ |
-| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | 🔲 |
-| <kbd>⌘</kbd><kbd>S</kbd> | Save | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Save As | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Export… | ✅ |
-
-## Edit
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>Z</kbd> | Undo | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd> | Redo | ✅ |
-| <kbd>⌘</kbd><kbd>X</kbd> | Cut | ✅ |
-| <kbd>⌘</kbd><kbd>C</kbd> | Copy | ✅ |
-| <kbd>⌘</kbd><kbd>V</kbd> | Paste | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Over Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>D</kbd> | Duplicate | ✅ |
-| <kbd>⌫</kbd> | Delete | ✅ |
-| <kbd>⌘</kbd><kbd>A</kbd> | Select All | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Select Inverse | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy Properties | 🔲 |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Properties | 🔲 |
-
-## View
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>'</kbd> | Pixel Grid | 🔲 |
-| <kbd>⌃</kbd><kbd>G</kbd> | Layout Guides | 🔲 |
-| <kbd>⇧</kbd><kbd>R</kbd> | Rulers | 🔲 |
-| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | 🔲 |
-| <kbd>⌘</kbd><kbd>=</kbd> | Zoom In | ✅ |
-| <kbd>⌘</kbd><kbd>-</kbd> | Zoom Out | ✅ |
-| <kbd>⌘</kbd><kbd>0</kbd> | Zoom to 100% | ✅ |
-| <kbd>⌘</kbd><kbd>1</kbd> | Zoom to Fit | ✅ |
-| <kbd>⌘</kbd><kbd>2</kbd> | Zoom to Selection | ✅ |
-| <kbd>⇧</kbd><kbd>1</kbd> | Zoom to Fit (alt) | ✅ |
-| <kbd>⇧</kbd><kbd>2</kbd> | Zoom to Selection (alt) | ✅ |
-| <kbd>⌘</kbd><kbd>J</kbd> | Toggle AI Chat | ✅ |
-
-## Object
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>G</kbd> | Frame Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>G</kbd> | Group Selection | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>G</kbd> | Ungroup | ✅ |
-| <kbd>⇧</kbd><kbd>A</kbd> | Add Auto Layout | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component Set | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> | Detach Instance | ✅ |
-| <kbd>⌘</kbd><kbd>R</kbd> | Auswahl umbenennen | ✅ |
-| <kbd>⌘</kbd><kbd>]</kbd> | Bring Forward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | Bring to Front | 🔲 |
-| <kbd>]</kbd> | Bring to Front | ✅ |
-| <kbd>⌘</kbd><kbd>[</kbd> | Send Backward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>[</kbd> | Send to Back | 🔲 |
-| <kbd>[</kbd> | Send to Back | ✅ |
-| <kbd>⇧</kbd><kbd>H</kbd> | Flip Horizontal | ✅ |
-| <kbd>⇧</kbd><kbd>V</kbd> | Flip Vertical | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>H</kbd> | Toggle Visibility | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>L</kbd> | Toggle Lock | ✅ |
-| <kbd>⌘</kbd><kbd>E</kbd> | Flatten | 🔲 |
-
-## Text
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>B</kbd> | Bold | ✅ |
-| <kbd>⌘</kbd><kbd>I</kbd> | Italic | ✅ |
-| <kbd>⌘</kbd><kbd>U</kbd> | Underline | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>X</kbd> | Strikethrough | 🔲 |
-
-## Canvas Interaction
-
-| Input | Action | Status |
-|-------|--------|--------|
-| Click | Select node | ✅ |
-| <kbd>Shift</kbd>+Click | Add/remove from selection | ✅ |
-| <kbd>Alt</kbd>+Drag | Duplicate and move | ✅ |
-| <kbd>Shift</kbd>+Drag (draw) | Constrain to square/circle | ✅ |
-| <kbd>Shift</kbd>+Drag (resize) | Maintain aspect ratio | ✅ |
-| <kbd>Shift</kbd>+Drag (rotate) | Snap to 15° | ✅ |
-| Middle mouse drag | Pan | ✅ |
-| Scroll | Pan | ✅ |
-| <kbd>Ctrl</kbd>+Scroll / Pinch | Zoom | ✅ |
-| Double-click text | Edit text inline | ✅ |
-| Drag onto frame | Reparent into frame | ✅ |
-| <kbd>Escape</kbd> | Deselect / Cancel | ✅ |
diff --git a/packages/docs/de/reference/node-types.md b/packages/docs/de/reference/node-types.md
deleted file mode 100644
index f6024302d..000000000
--- a/packages/docs/de/reference/node-types.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# Node Types
-
-The scene graph supports 28 node types from Figma's Kiwi schema. Each node is identified by a GUID (`sessionID:localID`) and has a parent reference via `parentIndex`. The OpenPencil engine's `NodeType` union currently uses 17 of these types.
-
-## Type Table
-
-28 Figma schema types + 1 synthetic engine type. Types marked ✅ are in the engine's `NodeType` union (17 total).
-
-| Type | ID | Description | Engine |
-|------|----|-------------|--------|
-| `DOCUMENT` | 1 | Root node, one per file | — |
-| `CANVAS` | 2 | Page | ✅ |
-| `GROUP` | 3 | Group container | ✅ |
-| `FRAME` | 4 | Primary container (artboard), supports auto-layout | ✅ |
-| `BOOLEAN_OPERATION` | 5 | Union/subtract/intersect/exclude result | |
-| `VECTOR` | 6 | Freeform vector path | ✅ |
-| `STAR` | 7 | Star shape | ✅ |
-| `LINE` | 8 | Line | ✅ |
-| `ELLIPSE` | 9 | Ellipse/circle, supports arc data | ✅ |
-| `RECTANGLE` | 10 | Rectangle | ✅ |
-| `REGULAR_POLYGON` | 11 | Regular polygon (3–12 sides, engine uses `POLYGON`) | ✅ |
-| `ROUNDED_RECTANGLE` | 12 | Rectangle with smooth corners | ✅ |
-| `TEXT` | 13 | Text with rich formatting | ✅ |
-| `SLICE` | 14 | Export region | |
-| `SYMBOL` | 15 | Component (main, engine uses `COMPONENT`) | ✅ |
-| `INSTANCE` | 16 | Component instance | ✅ |
-| `STICKY` | 17 | FigJam sticky note | |
-| `SHAPE_WITH_TEXT` | 18 | FigJam shape | ✅ |
-| `CONNECTOR` | 19 | Connector line between nodes | ✅ |
-| `CODE_BLOCK` | 20 | FigJam code block | |
-| `WIDGET` | 21 | Plugin widget | |
-| `STAMP` | 22 | FigJam stamp | |
-| `MEDIA` | 23 | Video/GIF | |
-| `HIGHLIGHT` | 24 | FigJam highlight | |
-| `SECTION` | 25 | Canvas section (organizational, top-level only) | ✅ |
-| `SECTION_OVERLAY` | 26 | Section overlay | |
-| `WASHI_TAPE` | 27 | FigJam washi tape | |
-| `VARIABLE` | 28 | Variable definition node | |
-| `COMPONENT_SET` | — | Variant group container (synthetic, mapped from `SYMBOL`) | ✅ |
-
-### Engine NodeType Union (17 types)
-
-The engine's `NodeType` uses simplified names. Some differ from the Kiwi schema:
-- `COMPONENT` → Kiwi `SYMBOL` (ID 15)
-- `COMPONENT_SET` → variant group container (no dedicated Kiwi ID, mapped from `SYMBOL` with variants)
-- `POLYGON` → Kiwi `REGULAR_POLYGON` (ID 11)
-
-```typescript
-type NodeType =
- | 'CANVAS' | 'FRAME' | 'RECTANGLE' | 'ROUNDED_RECTANGLE'
- | 'ELLIPSE' | 'TEXT' | 'LINE' | 'STAR' | 'POLYGON'
- | 'VECTOR' | 'GROUP' | 'SECTION'
- | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'
- | 'CONNECTOR' | 'SHAPE_WITH_TEXT'
-```
-
-## Node Hierarchy
-
-```
-Document
-├── Canvas (Page 1)
-│ ├── Section (top-level only, title pill, auto-adopts siblings)
-│ │ ├── Frame
-│ │ │ └── ...children
-│ │ └── Rectangle
-│ ├── Frame
-│ │ ├── Rectangle
-│ │ ├── Text
-│ │ └── Frame (nested)
-│ │ ├── Ellipse
-│ │ └── Instance (→ references Component)
-│ ├── Component
-│ │ └── ...children
-│ ├── Group
-│ │ └── ...children
-│ └── BooleanOperation
-│ └── ...operand shapes
-└── Canvas (Page 2)
- └── ...
-```
-
-## Core Properties
-
-Every node carries these fields (subset of `NodeChange`):
-
-### Identity & Tree
-
-- `guid` — unique identifier (`sessionID:localID`)
-- `type` — node type enum
-- `name` — display name
-- `phase` — `CREATED` or `REMOVED`
-- `parentIndex` — parent GUID + position string for z-ordering
-
-### Transform
-
-- `size` — width/height vector
-- `transform` — 2×3 affine matrix
-- `rotation` — degrees
-
-### Appearance
-
-- `fillPaints[]` — fill colors/gradients/images
-- `strokePaints[]` — stroke colors
-- `effects[]` — shadows, blurs
-- `opacity` — 0–1
-- `blendMode` — `NORMAL`, `MULTIPLY`, `SCREEN`, etc.
-
-### Stroke
-
-- `strokeWeight` — stroke thickness
-- `strokeAlign` — `INSIDE` / `CENTER` / `OUTSIDE`
-- `strokeCap` — `NONE` / `ROUND` / `SQUARE` / `ARROW_LINES` / `ARROW_EQUILATERAL`
-- `strokeJoin` — `MITER` / `BEVEL` / `ROUND`
-- `dashPattern[]` — dash/gap lengths
-
-### Corners
-
-- `cornerRadius` — uniform radius
-- `cornerSmoothing` — squircle amount (0–1)
-- Per-corner radii when `rectangleCornerRadiiIndependent` is true
-
-### Visibility
-
-- `visible` — show/hide
-- `locked` — prevent editing
-
-## Type-Specific Properties
-
-### Text
-
-`fontSize`, `fontName`, `lineHeight`, `letterSpacing`, `textAlignHorizontal`, `textAlignVertical`, `textAutoResize`, `textData` (characters, style overrides, baselines, glyphs)
-
-### Vector
-
-`vectorData` (vectorNetworkBlob, normalizedSize), `fillGeometry[]`, `strokeGeometry[]`, `handleMirroring`, `arcData`
-
-### Layout (Frame)
-
-`stackMode`, `stackSpacing`, `stackPadding`, `stackJustify`, `stackCounterAlign`, `stackPrimarySizing`, `stackCounterSizing`, `stackChildPrimaryGrow`, `stackChildAlignSelf`
-
-### Component
-
-`symbolData`, `componentKey`, `componentPropDefs[]`, `symbolDescription`
-
-### Instance
-
-`overriddenSymbolID`, `symbolData.symbolOverrides[]`, `componentPropRefs[]`, `componentPropAssignments[]`
-
-## Paint
-
-```typescript
-interface Fill {
- type: 'SOLID' | 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' |
- 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND' | 'IMAGE'
- color: Color // {r, g, b, a} 0–1 floats
- opacity: number // 0–1
- visible: boolean
- blendMode?: BlendMode
- gradientStops?: GradientStop[] // for gradients
- gradientTransform?: GradientTransform // 2×3 matrix
- imageHash?: string // for image fills
- imageScaleMode?: 'FILL' | 'FIT' | 'CROP' | 'TILE'
- imageTransform?: GradientTransform
-}
-```
-
-## Effect
-
-```typescript
-interface Effect {
- type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' |
- 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR'
- color: Color
- offset: { x: number; y: number }
- radius: number
- spread: number
- visible: boolean
-}
-```
-
-## Stroke
-
-```typescript
-interface Stroke {
- color: Color
- weight: number
- opacity: number
- visible: boolean
- align: 'INSIDE' | 'CENTER' | 'OUTSIDE'
- cap?: 'NONE' | 'ROUND' | 'SQUARE' | 'ARROW_LINES' | 'ARROW_EQUILATERAL'
- join?: 'MITER' | 'BEVEL' | 'ROUND'
- dashPattern?: number[]
-}
-```
diff --git a/packages/docs/de/reference/scene-graph.md b/packages/docs/de/reference/scene-graph.md
deleted file mode 100644
index 0d445d189..000000000
--- a/packages/docs/de/reference/scene-graph.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Scene Graph
-
-## In-Memory Representation
-
-Nodes live in a flat `Map<string, Node>` keyed by `GUID` string. The tree structure is maintained via `parentIndex` references. This gives O(1) lookup by ID and efficient traversal.
-
-```typescript
-interface SceneGraph {
- nodes: Map<string, Node>
- root: string
-
- getNode(id: string): Node
- getChildren(id: string): Node[]
- getParent(id: string): Node | null
- getPages(): Node[]
-
- createNode(type: NodeType, parent: string, props: Partial<NodeChange>): Node
- updateNode(id: string, changes: Partial<NodeChange>): void
- deleteNode(id: string): void
- moveNode(id: string, newParent: string, position: string): void
- addPage(name: string): Node
- deletePage(id: string): void
- renamePage(id: string, name: string): void
-
- findByType(type: NodeType): Node[]
- findByName(pattern: string): Node[]
- hitTest(point: Vector, canvas: string): Node | null
- getNodesInRect(rect: Rect, canvas: string): Node[]
-}
-```
-
-## Pages
-
-Documents support multiple pages (`CANVAS` nodes as direct children of the `DOCUMENT` root). Each page has its own child tree and independent viewport state (panX, panY, zoom, pageColor). The editor tracks `currentPageId` and renders only the active page's children.
-
-## Sections
-
-`SECTION` nodes are top-level organizational containers (direct children of `CANVAS` only). They cannot nest inside frames or groups. Creating a section auto-adopts overlapping siblings. Sections display a title pill with luminance-adaptive text color.
-
-## Hover State
-
-The editor state tracks `hoveredNodeId` — the node currently under the cursor. The renderer draws a shape-aware hover outline (following actual geometry for ellipses, rounded rects, vectors) for visual feedback before selection.
-
-## Undo/Redo
-
-The system uses Figma's **inverse command** pattern. Each undo entry contains the forward changes and their automatically-computed inverse:
-
-| Operation | Forward | Inverse |
-|-----------|---------|---------|
-| Create node | `{guid, phase: CREATED, ...props}` | `{guid, phase: REMOVED}` |
-| Delete node | `{guid, phase: REMOVED}` | `{guid, phase: CREATED, ...allProps}` |
-| Change prop | `{guid, fill: "#F00"}` | `{guid, fill: "#00F"}` |
-| Move node | `{guid, parentIndex: newParent}` | `{guid, parentIndex: oldParent}` |
-
-Before applying any change, affected fields are snapshotted. The snapshot becomes the inverse.
-
-**Batching** — operations like drag-to-move produce hundreds of position changes per second. These are debounced into a single undo entry. `beginBatch`/`commitBatch` wraps multi-step operations.
-
-## Layout Engine (Yoga)
-
-Figma's auto-layout properties map to Yoga flexbox:
-
-| Figma Property | Yoga Equivalent |
-|---|---|
-| `stackMode: HORIZONTAL` | `flexDirection: row` |
-| `stackMode: VERTICAL` | `flexDirection: column` |
-| `stackSpacing` | `gap` |
-| `stackPadding` | `padding` |
-| `stackJustify: MIN/CENTER/MAX/SPACE_BETWEEN` | `justifyContent` |
-| `stackCounterAlign` | `alignItems` |
-| `stackPrimarySizing: FIXED/HUG/FILL` | width/height + flex-grow |
-| `stackChildPrimaryGrow` | `flexGrow` |
-| `stackChildAlignSelf` | `alignSelf` |
-| `stackPositioning: ABSOLUTE` | `position: absolute` |
-
-## Hit Testing
-
-Given a point in canvas coordinates, the scene graph returns the topmost visible node at that position. The algorithm:
-
-1. Traverse visible nodes in reverse z-order (top to bottom)
-2. Transform the test point into each node's local coordinate system
-3. Check if the point is within the node's bounds (including rotation)
-4. Return the first match
-
-For marquee selection, `getNodesInRect` returns all nodes whose bounds intersect the given rectangle.
-
-## Extended Fill Types
-
-Fills support six types: `SOLID`, `GRADIENT_LINEAR`, `GRADIENT_RADIAL`, `GRADIENT_ANGULAR`, `GRADIENT_DIAMOND`, and `IMAGE`. Gradient fills carry `gradientStops` (color + position pairs) and a `gradientTransform` (2×3 matrix). Image fills reference blob data via `imageHash` with scale modes (`FILL`, `FIT`, `CROP`, `TILE`).
-
-## Extended Stroke Properties
-
-Strokes support `cap` (`NONE`, `ROUND`, `SQUARE`, `ARROW_LINES`, `ARROW_EQUILATERAL`), `join` (`MITER`, `BEVEL`, `ROUND`), and `dashPattern` (array of dash/gap lengths) in addition to the base `color`, `weight`, `opacity`, `visible`, and `align` properties.
-
-## Coordinate System
-
-Nodes store position and size relative to their parent. To get absolute (canvas) coordinates, walk up the parent chain applying transforms. The renderer uses this to draw nested frames with correct positioning.
-
-Rotation is stored in degrees and applied as part of the 2×3 transform matrix. Snap guides and hit testing account for rotation when computing visual bounds.
diff --git a/packages/docs/es/programmable/index.md b/packages/docs/es/programmable/index.md
index fffdbd363..e1ebd0e8e 100644
--- a/packages/docs/es/programmable/index.md
+++ b/packages/docs/es/programmable/index.md
@@ -42,7 +42,7 @@ El CLI también se conecta a la aplicación de escritorio en ejecución vía RPC
Conecta Claude Code, Cursor, Windsurf o cualquier cliente compatible con MCP a OpenPencil. El servidor expone 90 herramientas para leer, crear y modificar diseños — las mismas herramientas que usa el chat con IA integrado. Funciona sobre stdio o HTTP con soporte de sesiones.
-[Servidor MCP →](./mcp-server)
+[Servidor MCP →](/programmable/mcp-server)
## ¿Por Qué Abierto?
diff --git a/packages/docs/es/programmable/mcp-server.md b/packages/docs/es/programmable/mcp-server.md
deleted file mode 100644
index 7139501d4..000000000
--- a/packages/docs/es/programmable/mcp-server.md
+++ /dev/null
@@ -1,255 +0,0 @@
-# MCP Server
-
-OpenPencil includes an MCP (Model Context Protocol) server that lets AI coding tools — Claude Code, Cursor, Windsurf, etc. — read and modify `.fig` files headlessly.
-
-Two transports: **stdio** for MCP clients, **HTTP** for everything else.
-
-## Install
-
-```sh
-npm install -g @open-pencil/mcp
-```
-
-## Stdio (Claude Code, Cursor, etc.)
-
-Add to your MCP config (e.g. `~/.claude/settings.json` or `.cursor/mcp.json`):
-
-```json
-{
- "mcpServers": {
- "open-pencil": {
- "command": "openpencil-mcp"
- }
- }
-}
-```
-
-Or run from source without installing:
-
-::: code-group
-```json [Bun]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "bun",
- "args": ["/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-```json [Node.js]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "npx",
- "args": ["tsx", "/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-:::
-
-## HTTP
-
-For browser extensions, scripts, CI, or any HTTP client:
-
-```sh
-openpencil-mcp-http
-```
-
-Or from source: `bun packages/mcp/src/index.ts` / `npx tsx packages/mcp/src/index.ts`
-
-Security defaults (HTTP transport):
-
-- Binds to `127.0.0.1` by default (`HOST` to override)
-- `eval` tool is disabled
-- File operations are limited to `OPENPENCIL_MCP_ROOT` (defaults to current working directory)
-- CORS is disabled by default; set `OPENPENCIL_MCP_CORS_ORIGIN` to allow one origin
-- Optional auth token: `OPENPENCIL_MCP_AUTH_TOKEN` (client sends `Authorization: Bearer <token>` or `x-mcp-token`)
-
-Server starts on port 7600 (override with `PORT` env var). Endpoints:
-
-- `GET /health` — server status
-- `POST /mcp` — MCP Streamable HTTP (SSE). Sessions via `mcp-session-id` header.
-
-## Workflow
-
-1. **Open** — `open_file` to load an existing `.fig`, or `new_document` for a blank canvas
-2. **Read** — `get_page_tree`, `find_nodes`, `get_node`, `list_pages`
-3. **Create** — `create_shape`, `render` (JSX)
-4. **Modify** — `set_fill`, `set_stroke`, `set_layout`, `update_node`, `set_effects`
-5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`
-6. **Save** — `save_file` to write back to `.fig`
-
-## AI Agent Skill
-
-Teach your AI coding agent to use OpenPencil tools:
-
-```sh
-npx skills add open-pencil/skills@open-pencil
-```
-
-Works with Claude Code, Cursor, Windsurf, Codex, and any agent that supports [skills](https://skills.sh). The skill covers the CLI, MCP tools, JSX rendering, eval, and the running app's automation bridge.
-
-## Tools
-
-OpenPencil currently registers 100+ shared design tools, plus MCP-only document and prompt operations when applicable.
-
-### Document
-
-| Tool | Description |
-|------|-------------|
-| `open_file` | Open a `.fig` file for editing |
-| `save_file` | Save the current document to a `.fig` file |
-| `new_document` | Create a new empty document |
-
-### Read
-
-| Tool | Description |
-|------|-------------|
-| `get_selection` | Get currently selected nodes |
-| `get_page_tree` | Get the full node tree of the current page |
-| `get_current_page` | Get the current page name and ID |
-| `get_node` | Get detailed properties of a node by ID |
-| `find_nodes` | Find nodes by name pattern and/or type |
-| `get_components` | List all components in the document |
-| `list_pages` | List all pages |
-| `list_variables` | List design variables |
-| `list_collections` | List variable collections |
-| `list_fonts` | List fonts used in the current page |
-| `list_available_fonts` | List font families the current host can render |
-| `get_font_status` | Report requested faces, loaded sources, active substitutions, and affected nodes |
-| `page_bounds` | Get bounding box of all objects on the current page |
-| `node_bounds` | Get bounding box of a node |
-| `node_ancestors` | Get ancestor chain of a node |
-| `node_children` | Get direct children of a node |
-| `node_tree` | Get the subtree rooted at a node |
-| `node_bindings` | Get variable bindings on a node |
-
-### Create
-
-| Tool | Description |
-|------|-------------|
-| `create_shape` | Create a shape (`FRAME`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `LINE`, `STAR`, `POLYGON`, `SECTION`) |
-| `create_vector` | Create a vector node from a path string |
-| `create_slice` | Create an export slice |
-| `create_page` | Create a new page |
-| `render` | Render JSX to design nodes — create entire component trees in one call |
-| `create_component` | Convert a frame/group into a component |
-| `create_instance` | Create an instance of a component |
-| `node_to_component` | Convert an existing node into a component in-place |
-
-### Modify
-
-| Tool | Description |
-|------|-------------|
-| `set_fill` | Set fill color (hex) |
-| `set_stroke` | Set stroke color, weight, alignment |
-| `set_effects` | Add shadow or blur effects |
-| `update_node` | Update position, size, opacity, corner radius, text, font |
-| `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment |
-| `set_constraints` | Set resize constraints |
-| `set_rotation` | Set rotation angle in degrees |
-| `set_opacity` | Set opacity (0–1) |
-| `set_radius` | Set corner radius (uniform or per-corner) |
-| `set_minmax` | Set min/max width and height constraints |
-| `set_text` | Set text content of a `TEXT` node |
-| `set_font` | Set font family and weight |
-| `set_font_range` | Set font properties on a character range |
-| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |
-| `set_visible` | Show or hide a node |
-| `set_blend` | Set blend mode |
-| `set_locked` | Lock or unlock a node |
-| `set_stroke_align` | Set stroke alignment (inside/center/outside) |
-| `set_text_properties` | Set text layout: alignment, auto-resize, text case, decoration, truncation |
-| `set_layout_child` | Configure auto-layout child: sizing, grow, alignment, absolute positioning |
-| `node_move` | Move a node to a new position |
-| `node_resize` | Resize a node |
-| `node_replace_with` | Replace a node with another node |
-| `arrange` | Align or distribute selected nodes |
-
-### Structure
-
-| Tool | Description |
-|------|-------------|
-| `delete_node` | Delete a node |
-| `clone_node` | Duplicate a node |
-| `rename_node` | Rename a node |
-| `reparent_node` | Move a node into a different parent |
-| `select_nodes` | Select nodes by ID |
-| `group_nodes` | Group nodes |
-| `ungroup_node` | Ungroup a group |
-| `flatten_nodes` | Flatten nodes into a single vector |
-| `boolean_union` | Boolean union of two or more nodes |
-| `boolean_subtract` | Boolean subtraction |
-| `boolean_intersect` | Boolean intersection |
-| `boolean_exclude` | Boolean exclusion |
-
-### Vector Path
-
-| Tool | Description |
-|------|-------------|
-| `path_get` | Get the path data of a vector node |
-| `path_set` | Set the path data of a vector node |
-| `path_scale` | Scale a vector path |
-| `path_flip` | Flip a vector path horizontally or vertically |
-| `path_move` | Translate a vector path |
-
-### Export
-
-| Tool | Description |
-|------|-------------|
-| `export_image` | Export nodes as PNG, JPG, or WEBP. Returns base64-encoded image data |
-| `export_svg` | Export nodes as SVG markup |
-
-### Viewport
-
-| Tool | Description |
-|------|-------------|
-| `viewport_get` | Get current viewport position and zoom level |
-| `viewport_set` | Set viewport position and zoom |
-| `viewport_zoom_to_fit` | Zoom viewport to fit specified nodes |
-
-### Variables
-
-| Tool | Description |
-|------|-------------|
-| `get_variable` | Get a variable by ID or name |
-| `find_variables` | Find variables by name pattern or type |
-| `create_variable` | Create a new variable in a collection |
-| `set_variable` | Set a variable value in a mode |
-| `delete_variable` | Delete a variable |
-| `bind_variable` | Bind a variable to a node property |
-| `get_collection` | Get a variable collection by ID or name |
-| `create_collection` | Create a new variable collection |
-| `delete_collection` | Delete a variable collection |
-
-### Analyze
-
-| Tool | Description |
-|------|-------------|
-| `analyze_colors` | Analyze color palette usage across the document |
-| `analyze_typography` | Analyze font/size/weight distribution |
-| `analyze_spacing` | Analyze gap and padding values |
-| `analyze_clusters` | Detect repeated patterns (potential components) |
-
-### Diff
-
-| Tool | Description |
-|------|-------------|
-| `diff_create` | Create a snapshot of the current document state |
-| `diff_show` | Show differences between the current state and a snapshot |
-
-### Navigation
-
-| Tool | Description |
-|------|-------------|
-| `switch_page` | Switch to a page by name or ID |
-
-### Escape Hatch
-
-| Tool | Description |
-|------|-------------|
-| `eval` | Execute JavaScript with full Figma Plugin API access |
-
-Note: `eval` is available over stdio, but disabled in HTTP mode for security.
diff --git a/packages/docs/es/programmable/sdk/api/advanced/use-number-field.md b/packages/docs/es/programmable/sdk/api/advanced/use-number-field.md
deleted file mode 100644
index 77d8a0775..000000000
--- a/packages/docs/es/programmable/sdk/api/advanced/use-number-field.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: useNumberField
-description: Context helper for custom NumberField descendants.
----
-
-# useNumberField
-
-The generated `useNumberField()` reference currently shares one canonical source.
-
-[Open the useNumberField reference](/programmable/sdk/api/advanced/use-number-field)
diff --git a/packages/docs/es/reference/cli.md b/packages/docs/es/reference/cli.md
deleted file mode 100644
index 7335121f8..000000000
--- a/packages/docs/es/reference/cli.md
+++ /dev/null
@@ -1,184 +0,0 @@
----
-title: CLI Reference
-description: Complete reference for all openpencil commands, options, and flags.
----
-
-# CLI Reference
-
-All commands accept a `.fig` file as a positional argument. When omitted, the CLI connects to the running desktop app via RPC.
-
-## info
-
-Show document info — pages, node counts, fonts, file size.
-
-```sh
-openpencil info [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## tree
-
-Print the node hierarchy.
-
-```sh
-openpencil tree [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--page` | Page name (default: first page) |
-| `--depth` | Max depth (default: unlimited) |
-| `--json` | Output as JSON |
-
-## find
-
-Search nodes by name or type.
-
-```sh
-openpencil find [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--name` | Node name (partial match, case-insensitive) |
-| `--type` | Node type: `FRAME`, `TEXT`, `RECTANGLE`, `INSTANCE`, etc. |
-| `--page` | Page name (default: all pages) |
-| `--limit` | Max results (default: 100) |
-| `--json` | Output as JSON |
-
-## node
-
-Show detailed properties of a node.
-
-```sh
-openpencil node [file] --id <id> [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--id` | **Required.** Node ID (e.g. `1:23`) |
-| `--json` | Output as JSON |
-
-## pages
-
-List all pages in the document.
-
-```sh
-openpencil pages [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## variables
-
-List design variables and collections.
-
-```sh
-openpencil variables [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--collection` | Filter by collection name |
-| `--type` | Filter by type: `COLOR`, `FLOAT`, `STRING`, `BOOLEAN` |
-| `--json` | Output as JSON |
-
-## export
-
-Export to PNG, JPG, WEBP, SVG, or JSX.
-
-```sh
-openpencil export [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--format` | `-f` | `png` (default), `jpg`, `webp`, `svg`, `jsx` |
-| `--output` | `-o` | Output file path (default: `<name>.<format>`) |
-| `--scale` | `-s` | Export scale (default: 1) |
-| `--quality` | `-q` | Quality 0–100, JPG/WEBP only (default: 90) |
-| `--page` | | Page name (default: first page) |
-| `--node` | | Node ID to export (default: all top-level nodes) |
-| `--style` | | JSX style: `openpencil` (default), `tailwind` |
-| `--thumbnail` | | Export page thumbnail instead of full render |
-| `--width` | | Thumbnail width (default: 1920) |
-| `--height` | | Thumbnail height (default: 1080) |
-
-## eval
-
-Execute JavaScript with the Figma Plugin API.
-
-```sh
-openpencil eval [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--code` | `-c` | JavaScript code to execute |
-| `--stdin` | | Read code from stdin |
-| `--write` | `-w` | Write changes back to the input file |
-| `--output` | `-o` | Write to a different file |
-| `--json` | | Output as JSON |
-| `--quiet` | `-q` | Suppress output |
-
-## analyze colors
-
-Analyze color palette usage across the document.
-
-```sh
-openpencil analyze colors [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max colors to show (default: 30) |
-| `--threshold` | Distance threshold for clustering similar colors, 0–50 (default: 15) |
-| `--similar` | Show similar color clusters |
-| `--json` | Output as JSON |
-
-## analyze typography
-
-Analyze font family, size, and weight distribution.
-
-```sh
-openpencil analyze typography [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--group-by` | Group by: `family`, `size`, `weight` (default: show all styles) |
-| `--limit` | Max styles to show (default: 30) |
-| `--json` | Output as JSON |
-
-## analyze spacing
-
-Analyze gap and padding values across auto-layout frames.
-
-```sh
-openpencil analyze spacing [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--grid` | Base grid size to check against (default: 8) |
-| `--json` | Output as JSON |
-
-## analyze clusters
-
-Find repeated node patterns — potential components.
-
-```sh
-openpencil analyze clusters [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max clusters to show (default: 20) |
-| `--min-size` | Min node size in px (default: 30) |
-| `--min-count` | Min instances to form a cluster (default: 2) |
-| `--json` | Output as JSON |
diff --git a/packages/docs/es/reference/file-format.md b/packages/docs/es/reference/file-format.md
deleted file mode 100644
index ea94b8fb6..000000000
--- a/packages/docs/es/reference/file-format.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# File Format
-
-## .fig File Structure
-
-A `.fig` file is a ZIP archive containing a Kiwi-encoded binary message:
-
-| Offset | Content |
-|--------|---------|
-| 0 | Magic header `fig-kiwi` (8 bytes) |
-| 8 | Version (4 bytes, uint32 LE) |
-| 12 | Schema length (4 bytes, uint32 LE) |
-| 16 | Compressed Kiwi schema |
-| … | Message length (4 bytes, uint32 LE) |
-| … | Compressed Kiwi message — `NodeChange[]` (entire document) |
-| … | Blob data — images, vector networks, fonts |
-
-## Import Pipeline
-
-```
-.fig file → parse header → decompress Zstd → decode Kiwi schema
- → decode message → NodeChange[] → build SceneGraph
- → resolve blob refs → render on canvas
-```
-
-## Export Pipeline
-
-```
-SceneGraph → NodeChange[] → Kiwi encode → compress (Zstd/deflate)
- → build ZIP (header + schema + message + thumbnail.png)
- → write .fig file
-```
-
-Export uses <kbd>⌘</kbd><kbd>S</kbd> (Save) and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> (Save As) with native OS dialogs on the desktop app. The exported file includes a `thumbnail.png` required by Figma for file preview.
-
-Compression uses Zstd via Tauri Rust command on desktop, with deflate fallback in the browser.
-
-## Kiwi Binary Codec
-
-The codec handles Figma's 194-definition Kiwi schema with `NodeChange` as the central type (~390 fields). Key components:
-
-| Module | Purpose |
-|--------|---------|
-| `kiwi-schema` | Kiwi parser (from [evanw/kiwi](https://github.com/nicolo-ribaudo/kiwi)), patched for ESM and sparse field IDs |
-| `codec.ts` | Encode/decode messages using the Kiwi schema |
-| `protocol.ts` | Wire format parsing and message type detection |
-| `schema.ts` | 194 message/enum/struct definitions |
-
-### Sparse Field IDs
-
-Figma's schema uses non-contiguous field IDs (e.g. 1, 2, 5, 10 with gaps). The kiwi-schema parser handles this correctly.
-
-### Compression
-
-`.fig` files use Zstd compression for both the schema and message payloads. Decompression uses the `fzstd` library. For export, Zstd compression is offloaded to a Tauri Rust command on the desktop app (better performance, correct frame headers). In the browser, deflate via `fflate` is used as a fallback.
-
-## Supported Formats
-
-| Format | Import | Export |
-|--------|--------|--------|
-| `.fig` (Figma) | ✅ | ✅ |
-| `.svg` | Planned | Planned |
-| `.png` | Planned | Planned |
-| `.pdf` | — | Planned |
-
-## Clipboard Format
-
-Copy/paste uses the same Kiwi binary encoding:
-
-1. **Copy** — encode selected `NodeChange[]` to Kiwi binary, compress, write to clipboard as `application/x-figma-design` MIME type
-2. **Paste** — read clipboard, decompress, decode Kiwi binary, create nodes in scene graph
-
-Encoding happens synchronously in the copy event handler (not async Clipboard API) for browser compatibility. This enables bidirectional clipboard between OpenPencil and Figma.
diff --git a/packages/docs/es/reference/keyboard-shortcuts.md b/packages/docs/es/reference/keyboard-shortcuts.md
deleted file mode 100644
index 208a6984d..000000000
--- a/packages/docs/es/reference/keyboard-shortcuts.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Atajos de teclado
-
-Mapa completo de atajos compatibles con Figma.
-
-::: tip Symbol Legend
-⌘ = Cmd (Mac) / Ctrl (Win/Linux) · ⇧ = Shift · ⌥ = Alt/Option · ⌃ = Ctrl · ⌫ = Backspace
-:::
-
-## Tools
-
-| Key | Tool | Status |
-|-----|------|--------|
-| <kbd>V</kbd> | Move/Select | ✅ |
-| <kbd>K</kbd> | Scale | 🔲 |
-| <kbd>H</kbd> | Hand | ✅ |
-| <kbd>F</kbd> | Frame | ✅ |
-| <kbd>S</kbd> | Section | ✅ |
-| <kbd>R</kbd> | Rectangle | ✅ |
-| <kbd>O</kbd> | Ellipse | ✅ |
-| <kbd>L</kbd> | Line | ✅ |
-| — | Polygon | ✅ (flyout only) |
-| — | Star | ✅ (flyout only) |
-| <kbd>⇧</kbd><kbd>L</kbd> | Arrow | 🔲 |
-| <kbd>P</kbd> | Pen | ✅ |
-| <kbd>⇧</kbd><kbd>P</kbd> | Pencil | 🔲 |
-| <kbd>T</kbd> | Text | ✅ |
-| <kbd>C</kbd> | Comment | 🔲 |
-| <kbd>I</kbd> | Eyedropper | 🔲 |
-
-## File
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>N</kbd> | New Window | 🔲 |
-| <kbd>⌘</kbd><kbd>O</kbd> | Open File | ✅ |
-| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | 🔲 |
-| <kbd>⌘</kbd><kbd>S</kbd> | Save | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Save As | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Export… | ✅ |
-
-## Edit
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>Z</kbd> | Undo | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd> | Redo | ✅ |
-| <kbd>⌘</kbd><kbd>X</kbd> | Cut | ✅ |
-| <kbd>⌘</kbd><kbd>C</kbd> | Copy | ✅ |
-| <kbd>⌘</kbd><kbd>V</kbd> | Paste | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Over Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>D</kbd> | Duplicate | ✅ |
-| <kbd>⌫</kbd> | Delete | ✅ |
-| <kbd>⌘</kbd><kbd>A</kbd> | Select All | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Select Inverse | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy Properties | 🔲 |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Properties | 🔲 |
-
-## View
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>'</kbd> | Pixel Grid | 🔲 |
-| <kbd>⌃</kbd><kbd>G</kbd> | Layout Guides | 🔲 |
-| <kbd>⇧</kbd><kbd>R</kbd> | Rulers | 🔲 |
-| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | 🔲 |
-| <kbd>⌘</kbd><kbd>=</kbd> | Zoom In | ✅ |
-| <kbd>⌘</kbd><kbd>-</kbd> | Zoom Out | ✅ |
-| <kbd>⌘</kbd><kbd>0</kbd> | Zoom to 100% | ✅ |
-| <kbd>⌘</kbd><kbd>1</kbd> | Zoom to Fit | ✅ |
-| <kbd>⌘</kbd><kbd>2</kbd> | Zoom to Selection | ✅ |
-| <kbd>⇧</kbd><kbd>1</kbd> | Zoom to Fit (alt) | ✅ |
-| <kbd>⇧</kbd><kbd>2</kbd> | Zoom to Selection (alt) | ✅ |
-| <kbd>⌘</kbd><kbd>J</kbd> | Toggle AI Chat | ✅ |
-
-## Object
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>G</kbd> | Frame Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>G</kbd> | Group Selection | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>G</kbd> | Ungroup | ✅ |
-| <kbd>⇧</kbd><kbd>A</kbd> | Add Auto Layout | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component Set | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> | Detach Instance | ✅ |
-| <kbd>⌘</kbd><kbd>R</kbd> | Renombrar selección | ✅ |
-| <kbd>⌘</kbd><kbd>]</kbd> | Bring Forward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | Bring to Front | 🔲 |
-| <kbd>]</kbd> | Bring to Front | ✅ |
-| <kbd>⌘</kbd><kbd>[</kbd> | Send Backward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>[</kbd> | Send to Back | 🔲 |
-| <kbd>[</kbd> | Send to Back | ✅ |
-| <kbd>⇧</kbd><kbd>H</kbd> | Flip Horizontal | ✅ |
-| <kbd>⇧</kbd><kbd>V</kbd> | Flip Vertical | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>H</kbd> | Toggle Visibility | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>L</kbd> | Toggle Lock | ✅ |
-| <kbd>⌘</kbd><kbd>E</kbd> | Flatten | 🔲 |
-
-## Text
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>B</kbd> | Bold | ✅ |
-| <kbd>⌘</kbd><kbd>I</kbd> | Italic | ✅ |
-| <kbd>⌘</kbd><kbd>U</kbd> | Underline | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>X</kbd> | Strikethrough | 🔲 |
-
-## Canvas Interaction
-
-| Input | Action | Status |
-|-------|--------|--------|
-| Click | Select node | ✅ |
-| <kbd>Shift</kbd>+Click | Add/remove from selection | ✅ |
-| <kbd>Alt</kbd>+Drag | Duplicate and move | ✅ |
-| <kbd>Shift</kbd>+Drag (draw) | Constrain to square/circle | ✅ |
-| <kbd>Shift</kbd>+Drag (resize) | Maintain aspect ratio | ✅ |
-| <kbd>Shift</kbd>+Drag (rotate) | Snap to 15° | ✅ |
-| Middle mouse drag | Pan | ✅ |
-| Scroll | Pan | ✅ |
-| <kbd>Ctrl</kbd>+Scroll / Pinch | Zoom | ✅ |
-| Double-click text | Edit text inline | ✅ |
-| Drag onto frame | Reparent into frame | ✅ |
-| <kbd>Escape</kbd> | Deselect / Cancel | ✅ |
diff --git a/packages/docs/es/reference/node-types.md b/packages/docs/es/reference/node-types.md
deleted file mode 100644
index f6024302d..000000000
--- a/packages/docs/es/reference/node-types.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# Node Types
-
-The scene graph supports 28 node types from Figma's Kiwi schema. Each node is identified by a GUID (`sessionID:localID`) and has a parent reference via `parentIndex`. The OpenPencil engine's `NodeType` union currently uses 17 of these types.
-
-## Type Table
-
-28 Figma schema types + 1 synthetic engine type. Types marked ✅ are in the engine's `NodeType` union (17 total).
-
-| Type | ID | Description | Engine |
-|------|----|-------------|--------|
-| `DOCUMENT` | 1 | Root node, one per file | — |
-| `CANVAS` | 2 | Page | ✅ |
-| `GROUP` | 3 | Group container | ✅ |
-| `FRAME` | 4 | Primary container (artboard), supports auto-layout | ✅ |
-| `BOOLEAN_OPERATION` | 5 | Union/subtract/intersect/exclude result | |
-| `VECTOR` | 6 | Freeform vector path | ✅ |
-| `STAR` | 7 | Star shape | ✅ |
-| `LINE` | 8 | Line | ✅ |
-| `ELLIPSE` | 9 | Ellipse/circle, supports arc data | ✅ |
-| `RECTANGLE` | 10 | Rectangle | ✅ |
-| `REGULAR_POLYGON` | 11 | Regular polygon (3–12 sides, engine uses `POLYGON`) | ✅ |
-| `ROUNDED_RECTANGLE` | 12 | Rectangle with smooth corners | ✅ |
-| `TEXT` | 13 | Text with rich formatting | ✅ |
-| `SLICE` | 14 | Export region | |
-| `SYMBOL` | 15 | Component (main, engine uses `COMPONENT`) | ✅ |
-| `INSTANCE` | 16 | Component instance | ✅ |
-| `STICKY` | 17 | FigJam sticky note | |
-| `SHAPE_WITH_TEXT` | 18 | FigJam shape | ✅ |
-| `CONNECTOR` | 19 | Connector line between nodes | ✅ |
-| `CODE_BLOCK` | 20 | FigJam code block | |
-| `WIDGET` | 21 | Plugin widget | |
-| `STAMP` | 22 | FigJam stamp | |
-| `MEDIA` | 23 | Video/GIF | |
-| `HIGHLIGHT` | 24 | FigJam highlight | |
-| `SECTION` | 25 | Canvas section (organizational, top-level only) | ✅ |
-| `SECTION_OVERLAY` | 26 | Section overlay | |
-| `WASHI_TAPE` | 27 | FigJam washi tape | |
-| `VARIABLE` | 28 | Variable definition node | |
-| `COMPONENT_SET` | — | Variant group container (synthetic, mapped from `SYMBOL`) | ✅ |
-
-### Engine NodeType Union (17 types)
-
-The engine's `NodeType` uses simplified names. Some differ from the Kiwi schema:
-- `COMPONENT` → Kiwi `SYMBOL` (ID 15)
-- `COMPONENT_SET` → variant group container (no dedicated Kiwi ID, mapped from `SYMBOL` with variants)
-- `POLYGON` → Kiwi `REGULAR_POLYGON` (ID 11)
-
-```typescript
-type NodeType =
- | 'CANVAS' | 'FRAME' | 'RECTANGLE' | 'ROUNDED_RECTANGLE'
- | 'ELLIPSE' | 'TEXT' | 'LINE' | 'STAR' | 'POLYGON'
- | 'VECTOR' | 'GROUP' | 'SECTION'
- | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'
- | 'CONNECTOR' | 'SHAPE_WITH_TEXT'
-```
-
-## Node Hierarchy
-
-```
-Document
-├── Canvas (Page 1)
-│ ├── Section (top-level only, title pill, auto-adopts siblings)
-│ │ ├── Frame
-│ │ │ └── ...children
-│ │ └── Rectangle
-│ ├── Frame
-│ │ ├── Rectangle
-│ │ ├── Text
-│ │ └── Frame (nested)
-│ │ ├── Ellipse
-│ │ └── Instance (→ references Component)
-│ ├── Component
-│ │ └── ...children
-│ ├── Group
-│ │ └── ...children
-│ └── BooleanOperation
-│ └── ...operand shapes
-└── Canvas (Page 2)
- └── ...
-```
-
-## Core Properties
-
-Every node carries these fields (subset of `NodeChange`):
-
-### Identity & Tree
-
-- `guid` — unique identifier (`sessionID:localID`)
-- `type` — node type enum
-- `name` — display name
-- `phase` — `CREATED` or `REMOVED`
-- `parentIndex` — parent GUID + position string for z-ordering
-
-### Transform
-
-- `size` — width/height vector
-- `transform` — 2×3 affine matrix
-- `rotation` — degrees
-
-### Appearance
-
-- `fillPaints[]` — fill colors/gradients/images
-- `strokePaints[]` — stroke colors
-- `effects[]` — shadows, blurs
-- `opacity` — 0–1
-- `blendMode` — `NORMAL`, `MULTIPLY`, `SCREEN`, etc.
-
-### Stroke
-
-- `strokeWeight` — stroke thickness
-- `strokeAlign` — `INSIDE` / `CENTER` / `OUTSIDE`
-- `strokeCap` — `NONE` / `ROUND` / `SQUARE` / `ARROW_LINES` / `ARROW_EQUILATERAL`
-- `strokeJoin` — `MITER` / `BEVEL` / `ROUND`
-- `dashPattern[]` — dash/gap lengths
-
-### Corners
-
-- `cornerRadius` — uniform radius
-- `cornerSmoothing` — squircle amount (0–1)
-- Per-corner radii when `rectangleCornerRadiiIndependent` is true
-
-### Visibility
-
-- `visible` — show/hide
-- `locked` — prevent editing
-
-## Type-Specific Properties
-
-### Text
-
-`fontSize`, `fontName`, `lineHeight`, `letterSpacing`, `textAlignHorizontal`, `textAlignVertical`, `textAutoResize`, `textData` (characters, style overrides, baselines, glyphs)
-
-### Vector
-
-`vectorData` (vectorNetworkBlob, normalizedSize), `fillGeometry[]`, `strokeGeometry[]`, `handleMirroring`, `arcData`
-
-### Layout (Frame)
-
-`stackMode`, `stackSpacing`, `stackPadding`, `stackJustify`, `stackCounterAlign`, `stackPrimarySizing`, `stackCounterSizing`, `stackChildPrimaryGrow`, `stackChildAlignSelf`
-
-### Component
-
-`symbolData`, `componentKey`, `componentPropDefs[]`, `symbolDescription`
-
-### Instance
-
-`overriddenSymbolID`, `symbolData.symbolOverrides[]`, `componentPropRefs[]`, `componentPropAssignments[]`
-
-## Paint
-
-```typescript
-interface Fill {
- type: 'SOLID' | 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' |
- 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND' | 'IMAGE'
- color: Color // {r, g, b, a} 0–1 floats
- opacity: number // 0–1
- visible: boolean
- blendMode?: BlendMode
- gradientStops?: GradientStop[] // for gradients
- gradientTransform?: GradientTransform // 2×3 matrix
- imageHash?: string // for image fills
- imageScaleMode?: 'FILL' | 'FIT' | 'CROP' | 'TILE'
- imageTransform?: GradientTransform
-}
-```
-
-## Effect
-
-```typescript
-interface Effect {
- type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' |
- 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR'
- color: Color
- offset: { x: number; y: number }
- radius: number
- spread: number
- visible: boolean
-}
-```
-
-## Stroke
-
-```typescript
-interface Stroke {
- color: Color
- weight: number
- opacity: number
- visible: boolean
- align: 'INSIDE' | 'CENTER' | 'OUTSIDE'
- cap?: 'NONE' | 'ROUND' | 'SQUARE' | 'ARROW_LINES' | 'ARROW_EQUILATERAL'
- join?: 'MITER' | 'BEVEL' | 'ROUND'
- dashPattern?: number[]
-}
-```
diff --git a/packages/docs/es/reference/scene-graph.md b/packages/docs/es/reference/scene-graph.md
deleted file mode 100644
index 0d445d189..000000000
--- a/packages/docs/es/reference/scene-graph.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Scene Graph
-
-## In-Memory Representation
-
-Nodes live in a flat `Map<string, Node>` keyed by `GUID` string. The tree structure is maintained via `parentIndex` references. This gives O(1) lookup by ID and efficient traversal.
-
-```typescript
-interface SceneGraph {
- nodes: Map<string, Node>
- root: string
-
- getNode(id: string): Node
- getChildren(id: string): Node[]
- getParent(id: string): Node | null
- getPages(): Node[]
-
- createNode(type: NodeType, parent: string, props: Partial<NodeChange>): Node
- updateNode(id: string, changes: Partial<NodeChange>): void
- deleteNode(id: string): void
- moveNode(id: string, newParent: string, position: string): void
- addPage(name: string): Node
- deletePage(id: string): void
- renamePage(id: string, name: string): void
-
- findByType(type: NodeType): Node[]
- findByName(pattern: string): Node[]
- hitTest(point: Vector, canvas: string): Node | null
- getNodesInRect(rect: Rect, canvas: string): Node[]
-}
-```
-
-## Pages
-
-Documents support multiple pages (`CANVAS` nodes as direct children of the `DOCUMENT` root). Each page has its own child tree and independent viewport state (panX, panY, zoom, pageColor). The editor tracks `currentPageId` and renders only the active page's children.
-
-## Sections
-
-`SECTION` nodes are top-level organizational containers (direct children of `CANVAS` only). They cannot nest inside frames or groups. Creating a section auto-adopts overlapping siblings. Sections display a title pill with luminance-adaptive text color.
-
-## Hover State
-
-The editor state tracks `hoveredNodeId` — the node currently under the cursor. The renderer draws a shape-aware hover outline (following actual geometry for ellipses, rounded rects, vectors) for visual feedback before selection.
-
-## Undo/Redo
-
-The system uses Figma's **inverse command** pattern. Each undo entry contains the forward changes and their automatically-computed inverse:
-
-| Operation | Forward | Inverse |
-|-----------|---------|---------|
-| Create node | `{guid, phase: CREATED, ...props}` | `{guid, phase: REMOVED}` |
-| Delete node | `{guid, phase: REMOVED}` | `{guid, phase: CREATED, ...allProps}` |
-| Change prop | `{guid, fill: "#F00"}` | `{guid, fill: "#00F"}` |
-| Move node | `{guid, parentIndex: newParent}` | `{guid, parentIndex: oldParent}` |
-
-Before applying any change, affected fields are snapshotted. The snapshot becomes the inverse.
-
-**Batching** — operations like drag-to-move produce hundreds of position changes per second. These are debounced into a single undo entry. `beginBatch`/`commitBatch` wraps multi-step operations.
-
-## Layout Engine (Yoga)
-
-Figma's auto-layout properties map to Yoga flexbox:
-
-| Figma Property | Yoga Equivalent |
-|---|---|
-| `stackMode: HORIZONTAL` | `flexDirection: row` |
-| `stackMode: VERTICAL` | `flexDirection: column` |
-| `stackSpacing` | `gap` |
-| `stackPadding` | `padding` |
-| `stackJustify: MIN/CENTER/MAX/SPACE_BETWEEN` | `justifyContent` |
-| `stackCounterAlign` | `alignItems` |
-| `stackPrimarySizing: FIXED/HUG/FILL` | width/height + flex-grow |
-| `stackChildPrimaryGrow` | `flexGrow` |
-| `stackChildAlignSelf` | `alignSelf` |
-| `stackPositioning: ABSOLUTE` | `position: absolute` |
-
-## Hit Testing
-
-Given a point in canvas coordinates, the scene graph returns the topmost visible node at that position. The algorithm:
-
-1. Traverse visible nodes in reverse z-order (top to bottom)
-2. Transform the test point into each node's local coordinate system
-3. Check if the point is within the node's bounds (including rotation)
-4. Return the first match
-
-For marquee selection, `getNodesInRect` returns all nodes whose bounds intersect the given rectangle.
-
-## Extended Fill Types
-
-Fills support six types: `SOLID`, `GRADIENT_LINEAR`, `GRADIENT_RADIAL`, `GRADIENT_ANGULAR`, `GRADIENT_DIAMOND`, and `IMAGE`. Gradient fills carry `gradientStops` (color + position pairs) and a `gradientTransform` (2×3 matrix). Image fills reference blob data via `imageHash` with scale modes (`FILL`, `FIT`, `CROP`, `TILE`).
-
-## Extended Stroke Properties
-
-Strokes support `cap` (`NONE`, `ROUND`, `SQUARE`, `ARROW_LINES`, `ARROW_EQUILATERAL`), `join` (`MITER`, `BEVEL`, `ROUND`), and `dashPattern` (array of dash/gap lengths) in addition to the base `color`, `weight`, `opacity`, `visible`, and `align` properties.
-
-## Coordinate System
-
-Nodes store position and size relative to their parent. To get absolute (canvas) coordinates, walk up the parent chain applying transforms. The renderer uses this to draw nested frames with correct positioning.
-
-Rotation is stored in degrees and applied as part of the 2×3 transform matrix. Snap guides and hit testing account for rotation when computing visual bounds.
diff --git a/packages/docs/fr/programmable/index.md b/packages/docs/fr/programmable/index.md
index 499606247..f11371ae8 100644
--- a/packages/docs/fr/programmable/index.md
+++ b/packages/docs/fr/programmable/index.md
@@ -42,7 +42,7 @@ Le CLI se connecte aussi à l'application de bureau en cours d'exécution via RP
Connectez Claude Code, Cursor, Windsurf ou tout client compatible MCP à OpenPencil. Le serveur expose 90 outils pour lire, créer et modifier des designs — les mêmes outils que le chat IA intégré utilise. Fonctionne via stdio ou HTTP avec support de sessions.
-[Serveur MCP →](./mcp-server)
+[Serveur MCP →](/programmable/mcp-server)
## Pourquoi ouvert ?
diff --git a/packages/docs/fr/programmable/mcp-server.md b/packages/docs/fr/programmable/mcp-server.md
deleted file mode 100644
index 7139501d4..000000000
--- a/packages/docs/fr/programmable/mcp-server.md
+++ /dev/null
@@ -1,255 +0,0 @@
-# MCP Server
-
-OpenPencil includes an MCP (Model Context Protocol) server that lets AI coding tools — Claude Code, Cursor, Windsurf, etc. — read and modify `.fig` files headlessly.
-
-Two transports: **stdio** for MCP clients, **HTTP** for everything else.
-
-## Install
-
-```sh
-npm install -g @open-pencil/mcp
-```
-
-## Stdio (Claude Code, Cursor, etc.)
-
-Add to your MCP config (e.g. `~/.claude/settings.json` or `.cursor/mcp.json`):
-
-```json
-{
- "mcpServers": {
- "open-pencil": {
- "command": "openpencil-mcp"
- }
- }
-}
-```
-
-Or run from source without installing:
-
-::: code-group
-```json [Bun]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "bun",
- "args": ["/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-```json [Node.js]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "npx",
- "args": ["tsx", "/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-:::
-
-## HTTP
-
-For browser extensions, scripts, CI, or any HTTP client:
-
-```sh
-openpencil-mcp-http
-```
-
-Or from source: `bun packages/mcp/src/index.ts` / `npx tsx packages/mcp/src/index.ts`
-
-Security defaults (HTTP transport):
-
-- Binds to `127.0.0.1` by default (`HOST` to override)
-- `eval` tool is disabled
-- File operations are limited to `OPENPENCIL_MCP_ROOT` (defaults to current working directory)
-- CORS is disabled by default; set `OPENPENCIL_MCP_CORS_ORIGIN` to allow one origin
-- Optional auth token: `OPENPENCIL_MCP_AUTH_TOKEN` (client sends `Authorization: Bearer <token>` or `x-mcp-token`)
-
-Server starts on port 7600 (override with `PORT` env var). Endpoints:
-
-- `GET /health` — server status
-- `POST /mcp` — MCP Streamable HTTP (SSE). Sessions via `mcp-session-id` header.
-
-## Workflow
-
-1. **Open** — `open_file` to load an existing `.fig`, or `new_document` for a blank canvas
-2. **Read** — `get_page_tree`, `find_nodes`, `get_node`, `list_pages`
-3. **Create** — `create_shape`, `render` (JSX)
-4. **Modify** — `set_fill`, `set_stroke`, `set_layout`, `update_node`, `set_effects`
-5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`
-6. **Save** — `save_file` to write back to `.fig`
-
-## AI Agent Skill
-
-Teach your AI coding agent to use OpenPencil tools:
-
-```sh
-npx skills add open-pencil/skills@open-pencil
-```
-
-Works with Claude Code, Cursor, Windsurf, Codex, and any agent that supports [skills](https://skills.sh). The skill covers the CLI, MCP tools, JSX rendering, eval, and the running app's automation bridge.
-
-## Tools
-
-OpenPencil currently registers 100+ shared design tools, plus MCP-only document and prompt operations when applicable.
-
-### Document
-
-| Tool | Description |
-|------|-------------|
-| `open_file` | Open a `.fig` file for editing |
-| `save_file` | Save the current document to a `.fig` file |
-| `new_document` | Create a new empty document |
-
-### Read
-
-| Tool | Description |
-|------|-------------|
-| `get_selection` | Get currently selected nodes |
-| `get_page_tree` | Get the full node tree of the current page |
-| `get_current_page` | Get the current page name and ID |
-| `get_node` | Get detailed properties of a node by ID |
-| `find_nodes` | Find nodes by name pattern and/or type |
-| `get_components` | List all components in the document |
-| `list_pages` | List all pages |
-| `list_variables` | List design variables |
-| `list_collections` | List variable collections |
-| `list_fonts` | List fonts used in the current page |
-| `list_available_fonts` | List font families the current host can render |
-| `get_font_status` | Report requested faces, loaded sources, active substitutions, and affected nodes |
-| `page_bounds` | Get bounding box of all objects on the current page |
-| `node_bounds` | Get bounding box of a node |
-| `node_ancestors` | Get ancestor chain of a node |
-| `node_children` | Get direct children of a node |
-| `node_tree` | Get the subtree rooted at a node |
-| `node_bindings` | Get variable bindings on a node |
-
-### Create
-
-| Tool | Description |
-|------|-------------|
-| `create_shape` | Create a shape (`FRAME`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `LINE`, `STAR`, `POLYGON`, `SECTION`) |
-| `create_vector` | Create a vector node from a path string |
-| `create_slice` | Create an export slice |
-| `create_page` | Create a new page |
-| `render` | Render JSX to design nodes — create entire component trees in one call |
-| `create_component` | Convert a frame/group into a component |
-| `create_instance` | Create an instance of a component |
-| `node_to_component` | Convert an existing node into a component in-place |
-
-### Modify
-
-| Tool | Description |
-|------|-------------|
-| `set_fill` | Set fill color (hex) |
-| `set_stroke` | Set stroke color, weight, alignment |
-| `set_effects` | Add shadow or blur effects |
-| `update_node` | Update position, size, opacity, corner radius, text, font |
-| `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment |
-| `set_constraints` | Set resize constraints |
-| `set_rotation` | Set rotation angle in degrees |
-| `set_opacity` | Set opacity (0–1) |
-| `set_radius` | Set corner radius (uniform or per-corner) |
-| `set_minmax` | Set min/max width and height constraints |
-| `set_text` | Set text content of a `TEXT` node |
-| `set_font` | Set font family and weight |
-| `set_font_range` | Set font properties on a character range |
-| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |
-| `set_visible` | Show or hide a node |
-| `set_blend` | Set blend mode |
-| `set_locked` | Lock or unlock a node |
-| `set_stroke_align` | Set stroke alignment (inside/center/outside) |
-| `set_text_properties` | Set text layout: alignment, auto-resize, text case, decoration, truncation |
-| `set_layout_child` | Configure auto-layout child: sizing, grow, alignment, absolute positioning |
-| `node_move` | Move a node to a new position |
-| `node_resize` | Resize a node |
-| `node_replace_with` | Replace a node with another node |
-| `arrange` | Align or distribute selected nodes |
-
-### Structure
-
-| Tool | Description |
-|------|-------------|
-| `delete_node` | Delete a node |
-| `clone_node` | Duplicate a node |
-| `rename_node` | Rename a node |
-| `reparent_node` | Move a node into a different parent |
-| `select_nodes` | Select nodes by ID |
-| `group_nodes` | Group nodes |
-| `ungroup_node` | Ungroup a group |
-| `flatten_nodes` | Flatten nodes into a single vector |
-| `boolean_union` | Boolean union of two or more nodes |
-| `boolean_subtract` | Boolean subtraction |
-| `boolean_intersect` | Boolean intersection |
-| `boolean_exclude` | Boolean exclusion |
-
-### Vector Path
-
-| Tool | Description |
-|------|-------------|
-| `path_get` | Get the path data of a vector node |
-| `path_set` | Set the path data of a vector node |
-| `path_scale` | Scale a vector path |
-| `path_flip` | Flip a vector path horizontally or vertically |
-| `path_move` | Translate a vector path |
-
-### Export
-
-| Tool | Description |
-|------|-------------|
-| `export_image` | Export nodes as PNG, JPG, or WEBP. Returns base64-encoded image data |
-| `export_svg` | Export nodes as SVG markup |
-
-### Viewport
-
-| Tool | Description |
-|------|-------------|
-| `viewport_get` | Get current viewport position and zoom level |
-| `viewport_set` | Set viewport position and zoom |
-| `viewport_zoom_to_fit` | Zoom viewport to fit specified nodes |
-
-### Variables
-
-| Tool | Description |
-|------|-------------|
-| `get_variable` | Get a variable by ID or name |
-| `find_variables` | Find variables by name pattern or type |
-| `create_variable` | Create a new variable in a collection |
-| `set_variable` | Set a variable value in a mode |
-| `delete_variable` | Delete a variable |
-| `bind_variable` | Bind a variable to a node property |
-| `get_collection` | Get a variable collection by ID or name |
-| `create_collection` | Create a new variable collection |
-| `delete_collection` | Delete a variable collection |
-
-### Analyze
-
-| Tool | Description |
-|------|-------------|
-| `analyze_colors` | Analyze color palette usage across the document |
-| `analyze_typography` | Analyze font/size/weight distribution |
-| `analyze_spacing` | Analyze gap and padding values |
-| `analyze_clusters` | Detect repeated patterns (potential components) |
-
-### Diff
-
-| Tool | Description |
-|------|-------------|
-| `diff_create` | Create a snapshot of the current document state |
-| `diff_show` | Show differences between the current state and a snapshot |
-
-### Navigation
-
-| Tool | Description |
-|------|-------------|
-| `switch_page` | Switch to a page by name or ID |
-
-### Escape Hatch
-
-| Tool | Description |
-|------|-------------|
-| `eval` | Execute JavaScript with full Figma Plugin API access |
-
-Note: `eval` is available over stdio, but disabled in HTTP mode for security.
diff --git a/packages/docs/fr/programmable/sdk/api/advanced/use-number-field.md b/packages/docs/fr/programmable/sdk/api/advanced/use-number-field.md
deleted file mode 100644
index 77d8a0775..000000000
--- a/packages/docs/fr/programmable/sdk/api/advanced/use-number-field.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: useNumberField
-description: Context helper for custom NumberField descendants.
----
-
-# useNumberField
-
-The generated `useNumberField()` reference currently shares one canonical source.
-
-[Open the useNumberField reference](/programmable/sdk/api/advanced/use-number-field)
diff --git a/packages/docs/fr/reference/cli.md b/packages/docs/fr/reference/cli.md
deleted file mode 100644
index 7335121f8..000000000
--- a/packages/docs/fr/reference/cli.md
+++ /dev/null
@@ -1,184 +0,0 @@
----
-title: CLI Reference
-description: Complete reference for all openpencil commands, options, and flags.
----
-
-# CLI Reference
-
-All commands accept a `.fig` file as a positional argument. When omitted, the CLI connects to the running desktop app via RPC.
-
-## info
-
-Show document info — pages, node counts, fonts, file size.
-
-```sh
-openpencil info [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## tree
-
-Print the node hierarchy.
-
-```sh
-openpencil tree [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--page` | Page name (default: first page) |
-| `--depth` | Max depth (default: unlimited) |
-| `--json` | Output as JSON |
-
-## find
-
-Search nodes by name or type.
-
-```sh
-openpencil find [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--name` | Node name (partial match, case-insensitive) |
-| `--type` | Node type: `FRAME`, `TEXT`, `RECTANGLE`, `INSTANCE`, etc. |
-| `--page` | Page name (default: all pages) |
-| `--limit` | Max results (default: 100) |
-| `--json` | Output as JSON |
-
-## node
-
-Show detailed properties of a node.
-
-```sh
-openpencil node [file] --id <id> [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--id` | **Required.** Node ID (e.g. `1:23`) |
-| `--json` | Output as JSON |
-
-## pages
-
-List all pages in the document.
-
-```sh
-openpencil pages [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## variables
-
-List design variables and collections.
-
-```sh
-openpencil variables [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--collection` | Filter by collection name |
-| `--type` | Filter by type: `COLOR`, `FLOAT`, `STRING`, `BOOLEAN` |
-| `--json` | Output as JSON |
-
-## export
-
-Export to PNG, JPG, WEBP, SVG, or JSX.
-
-```sh
-openpencil export [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--format` | `-f` | `png` (default), `jpg`, `webp`, `svg`, `jsx` |
-| `--output` | `-o` | Output file path (default: `<name>.<format>`) |
-| `--scale` | `-s` | Export scale (default: 1) |
-| `--quality` | `-q` | Quality 0–100, JPG/WEBP only (default: 90) |
-| `--page` | | Page name (default: first page) |
-| `--node` | | Node ID to export (default: all top-level nodes) |
-| `--style` | | JSX style: `openpencil` (default), `tailwind` |
-| `--thumbnail` | | Export page thumbnail instead of full render |
-| `--width` | | Thumbnail width (default: 1920) |
-| `--height` | | Thumbnail height (default: 1080) |
-
-## eval
-
-Execute JavaScript with the Figma Plugin API.
-
-```sh
-openpencil eval [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--code` | `-c` | JavaScript code to execute |
-| `--stdin` | | Read code from stdin |
-| `--write` | `-w` | Write changes back to the input file |
-| `--output` | `-o` | Write to a different file |
-| `--json` | | Output as JSON |
-| `--quiet` | `-q` | Suppress output |
-
-## analyze colors
-
-Analyze color palette usage across the document.
-
-```sh
-openpencil analyze colors [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max colors to show (default: 30) |
-| `--threshold` | Distance threshold for clustering similar colors, 0–50 (default: 15) |
-| `--similar` | Show similar color clusters |
-| `--json` | Output as JSON |
-
-## analyze typography
-
-Analyze font family, size, and weight distribution.
-
-```sh
-openpencil analyze typography [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--group-by` | Group by: `family`, `size`, `weight` (default: show all styles) |
-| `--limit` | Max styles to show (default: 30) |
-| `--json` | Output as JSON |
-
-## analyze spacing
-
-Analyze gap and padding values across auto-layout frames.
-
-```sh
-openpencil analyze spacing [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--grid` | Base grid size to check against (default: 8) |
-| `--json` | Output as JSON |
-
-## analyze clusters
-
-Find repeated node patterns — potential components.
-
-```sh
-openpencil analyze clusters [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max clusters to show (default: 20) |
-| `--min-size` | Min node size in px (default: 30) |
-| `--min-count` | Min instances to form a cluster (default: 2) |
-| `--json` | Output as JSON |
diff --git a/packages/docs/fr/reference/file-format.md b/packages/docs/fr/reference/file-format.md
deleted file mode 100644
index ea94b8fb6..000000000
--- a/packages/docs/fr/reference/file-format.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# File Format
-
-## .fig File Structure
-
-A `.fig` file is a ZIP archive containing a Kiwi-encoded binary message:
-
-| Offset | Content |
-|--------|---------|
-| 0 | Magic header `fig-kiwi` (8 bytes) |
-| 8 | Version (4 bytes, uint32 LE) |
-| 12 | Schema length (4 bytes, uint32 LE) |
-| 16 | Compressed Kiwi schema |
-| … | Message length (4 bytes, uint32 LE) |
-| … | Compressed Kiwi message — `NodeChange[]` (entire document) |
-| … | Blob data — images, vector networks, fonts |
-
-## Import Pipeline
-
-```
-.fig file → parse header → decompress Zstd → decode Kiwi schema
- → decode message → NodeChange[] → build SceneGraph
- → resolve blob refs → render on canvas
-```
-
-## Export Pipeline
-
-```
-SceneGraph → NodeChange[] → Kiwi encode → compress (Zstd/deflate)
- → build ZIP (header + schema + message + thumbnail.png)
- → write .fig file
-```
-
-Export uses <kbd>⌘</kbd><kbd>S</kbd> (Save) and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> (Save As) with native OS dialogs on the desktop app. The exported file includes a `thumbnail.png` required by Figma for file preview.
-
-Compression uses Zstd via Tauri Rust command on desktop, with deflate fallback in the browser.
-
-## Kiwi Binary Codec
-
-The codec handles Figma's 194-definition Kiwi schema with `NodeChange` as the central type (~390 fields). Key components:
-
-| Module | Purpose |
-|--------|---------|
-| `kiwi-schema` | Kiwi parser (from [evanw/kiwi](https://github.com/nicolo-ribaudo/kiwi)), patched for ESM and sparse field IDs |
-| `codec.ts` | Encode/decode messages using the Kiwi schema |
-| `protocol.ts` | Wire format parsing and message type detection |
-| `schema.ts` | 194 message/enum/struct definitions |
-
-### Sparse Field IDs
-
-Figma's schema uses non-contiguous field IDs (e.g. 1, 2, 5, 10 with gaps). The kiwi-schema parser handles this correctly.
-
-### Compression
-
-`.fig` files use Zstd compression for both the schema and message payloads. Decompression uses the `fzstd` library. For export, Zstd compression is offloaded to a Tauri Rust command on the desktop app (better performance, correct frame headers). In the browser, deflate via `fflate` is used as a fallback.
-
-## Supported Formats
-
-| Format | Import | Export |
-|--------|--------|--------|
-| `.fig` (Figma) | ✅ | ✅ |
-| `.svg` | Planned | Planned |
-| `.png` | Planned | Planned |
-| `.pdf` | — | Planned |
-
-## Clipboard Format
-
-Copy/paste uses the same Kiwi binary encoding:
-
-1. **Copy** — encode selected `NodeChange[]` to Kiwi binary, compress, write to clipboard as `application/x-figma-design` MIME type
-2. **Paste** — read clipboard, decompress, decode Kiwi binary, create nodes in scene graph
-
-Encoding happens synchronously in the copy event handler (not async Clipboard API) for browser compatibility. This enables bidirectional clipboard between OpenPencil and Figma.
diff --git a/packages/docs/fr/reference/keyboard-shortcuts.md b/packages/docs/fr/reference/keyboard-shortcuts.md
deleted file mode 100644
index 2c87019bc..000000000
--- a/packages/docs/fr/reference/keyboard-shortcuts.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Raccourcis clavier
-
-Carte complète des raccourcis compatibles Figma.
-
-::: tip Symbol Legend
-⌘ = Cmd (Mac) / Ctrl (Win/Linux) · ⇧ = Shift · ⌥ = Alt/Option · ⌃ = Ctrl · ⌫ = Backspace
-:::
-
-## Tools
-
-| Key | Tool | Status |
-|-----|------|--------|
-| <kbd>V</kbd> | Move/Select | ✅ |
-| <kbd>K</kbd> | Scale | 🔲 |
-| <kbd>H</kbd> | Hand | ✅ |
-| <kbd>F</kbd> | Frame | ✅ |
-| <kbd>S</kbd> | Section | ✅ |
-| <kbd>R</kbd> | Rectangle | ✅ |
-| <kbd>O</kbd> | Ellipse | ✅ |
-| <kbd>L</kbd> | Line | ✅ |
-| — | Polygon | ✅ (flyout only) |
-| — | Star | ✅ (flyout only) |
-| <kbd>⇧</kbd><kbd>L</kbd> | Arrow | 🔲 |
-| <kbd>P</kbd> | Pen | ✅ |
-| <kbd>⇧</kbd><kbd>P</kbd> | Pencil | 🔲 |
-| <kbd>T</kbd> | Text | ✅ |
-| <kbd>C</kbd> | Comment | 🔲 |
-| <kbd>I</kbd> | Eyedropper | 🔲 |
-
-## File
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>N</kbd> | New Window | 🔲 |
-| <kbd>⌘</kbd><kbd>O</kbd> | Open File | ✅ |
-| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | 🔲 |
-| <kbd>⌘</kbd><kbd>S</kbd> | Save | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Save As | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Export… | ✅ |
-
-## Edit
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>Z</kbd> | Undo | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd> | Redo | ✅ |
-| <kbd>⌘</kbd><kbd>X</kbd> | Cut | ✅ |
-| <kbd>⌘</kbd><kbd>C</kbd> | Copy | ✅ |
-| <kbd>⌘</kbd><kbd>V</kbd> | Paste | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Over Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>D</kbd> | Duplicate | ✅ |
-| <kbd>⌫</kbd> | Delete | ✅ |
-| <kbd>⌘</kbd><kbd>A</kbd> | Select All | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Select Inverse | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy Properties | 🔲 |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Properties | 🔲 |
-
-## View
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>'</kbd> | Pixel Grid | 🔲 |
-| <kbd>⌃</kbd><kbd>G</kbd> | Layout Guides | 🔲 |
-| <kbd>⇧</kbd><kbd>R</kbd> | Rulers | 🔲 |
-| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | 🔲 |
-| <kbd>⌘</kbd><kbd>=</kbd> | Zoom In | ✅ |
-| <kbd>⌘</kbd><kbd>-</kbd> | Zoom Out | ✅ |
-| <kbd>⌘</kbd><kbd>0</kbd> | Zoom to 100% | ✅ |
-| <kbd>⌘</kbd><kbd>1</kbd> | Zoom to Fit | ✅ |
-| <kbd>⌘</kbd><kbd>2</kbd> | Zoom to Selection | ✅ |
-| <kbd>⇧</kbd><kbd>1</kbd> | Zoom to Fit (alt) | ✅ |
-| <kbd>⇧</kbd><kbd>2</kbd> | Zoom to Selection (alt) | ✅ |
-| <kbd>⌘</kbd><kbd>J</kbd> | Toggle AI Chat | ✅ |
-
-## Object
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>G</kbd> | Frame Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>G</kbd> | Group Selection | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>G</kbd> | Ungroup | ✅ |
-| <kbd>⇧</kbd><kbd>A</kbd> | Add Auto Layout | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component Set | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> | Detach Instance | ✅ |
-| <kbd>⌘</kbd><kbd>R</kbd> | Renommer la sélection | ✅ |
-| <kbd>⌘</kbd><kbd>]</kbd> | Bring Forward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | Bring to Front | 🔲 |
-| <kbd>]</kbd> | Bring to Front | ✅ |
-| <kbd>⌘</kbd><kbd>[</kbd> | Send Backward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>[</kbd> | Send to Back | 🔲 |
-| <kbd>[</kbd> | Send to Back | ✅ |
-| <kbd>⇧</kbd><kbd>H</kbd> | Flip Horizontal | ✅ |
-| <kbd>⇧</kbd><kbd>V</kbd> | Flip Vertical | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>H</kbd> | Toggle Visibility | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>L</kbd> | Toggle Lock | ✅ |
-| <kbd>⌘</kbd><kbd>E</kbd> | Flatten | 🔲 |
-
-## Text
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>B</kbd> | Bold | ✅ |
-| <kbd>⌘</kbd><kbd>I</kbd> | Italic | ✅ |
-| <kbd>⌘</kbd><kbd>U</kbd> | Underline | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>X</kbd> | Strikethrough | 🔲 |
-
-## Canvas Interaction
-
-| Input | Action | Status |
-|-------|--------|--------|
-| Click | Select node | ✅ |
-| <kbd>Shift</kbd>+Click | Add/remove from selection | ✅ |
-| <kbd>Alt</kbd>+Drag | Duplicate and move | ✅ |
-| <kbd>Shift</kbd>+Drag (draw) | Constrain to square/circle | ✅ |
-| <kbd>Shift</kbd>+Drag (resize) | Maintain aspect ratio | ✅ |
-| <kbd>Shift</kbd>+Drag (rotate) | Snap to 15° | ✅ |
-| Middle mouse drag | Pan | ✅ |
-| Scroll | Pan | ✅ |
-| <kbd>Ctrl</kbd>+Scroll / Pinch | Zoom | ✅ |
-| Double-click text | Edit text inline | ✅ |
-| Drag onto frame | Reparent into frame | ✅ |
-| <kbd>Escape</kbd> | Deselect / Cancel | ✅ |
diff --git a/packages/docs/fr/reference/node-types.md b/packages/docs/fr/reference/node-types.md
deleted file mode 100644
index f6024302d..000000000
--- a/packages/docs/fr/reference/node-types.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# Node Types
-
-The scene graph supports 28 node types from Figma's Kiwi schema. Each node is identified by a GUID (`sessionID:localID`) and has a parent reference via `parentIndex`. The OpenPencil engine's `NodeType` union currently uses 17 of these types.
-
-## Type Table
-
-28 Figma schema types + 1 synthetic engine type. Types marked ✅ are in the engine's `NodeType` union (17 total).
-
-| Type | ID | Description | Engine |
-|------|----|-------------|--------|
-| `DOCUMENT` | 1 | Root node, one per file | — |
-| `CANVAS` | 2 | Page | ✅ |
-| `GROUP` | 3 | Group container | ✅ |
-| `FRAME` | 4 | Primary container (artboard), supports auto-layout | ✅ |
-| `BOOLEAN_OPERATION` | 5 | Union/subtract/intersect/exclude result | |
-| `VECTOR` | 6 | Freeform vector path | ✅ |
-| `STAR` | 7 | Star shape | ✅ |
-| `LINE` | 8 | Line | ✅ |
-| `ELLIPSE` | 9 | Ellipse/circle, supports arc data | ✅ |
-| `RECTANGLE` | 10 | Rectangle | ✅ |
-| `REGULAR_POLYGON` | 11 | Regular polygon (3–12 sides, engine uses `POLYGON`) | ✅ |
-| `ROUNDED_RECTANGLE` | 12 | Rectangle with smooth corners | ✅ |
-| `TEXT` | 13 | Text with rich formatting | ✅ |
-| `SLICE` | 14 | Export region | |
-| `SYMBOL` | 15 | Component (main, engine uses `COMPONENT`) | ✅ |
-| `INSTANCE` | 16 | Component instance | ✅ |
-| `STICKY` | 17 | FigJam sticky note | |
-| `SHAPE_WITH_TEXT` | 18 | FigJam shape | ✅ |
-| `CONNECTOR` | 19 | Connector line between nodes | ✅ |
-| `CODE_BLOCK` | 20 | FigJam code block | |
-| `WIDGET` | 21 | Plugin widget | |
-| `STAMP` | 22 | FigJam stamp | |
-| `MEDIA` | 23 | Video/GIF | |
-| `HIGHLIGHT` | 24 | FigJam highlight | |
-| `SECTION` | 25 | Canvas section (organizational, top-level only) | ✅ |
-| `SECTION_OVERLAY` | 26 | Section overlay | |
-| `WASHI_TAPE` | 27 | FigJam washi tape | |
-| `VARIABLE` | 28 | Variable definition node | |
-| `COMPONENT_SET` | — | Variant group container (synthetic, mapped from `SYMBOL`) | ✅ |
-
-### Engine NodeType Union (17 types)
-
-The engine's `NodeType` uses simplified names. Some differ from the Kiwi schema:
-- `COMPONENT` → Kiwi `SYMBOL` (ID 15)
-- `COMPONENT_SET` → variant group container (no dedicated Kiwi ID, mapped from `SYMBOL` with variants)
-- `POLYGON` → Kiwi `REGULAR_POLYGON` (ID 11)
-
-```typescript
-type NodeType =
- | 'CANVAS' | 'FRAME' | 'RECTANGLE' | 'ROUNDED_RECTANGLE'
- | 'ELLIPSE' | 'TEXT' | 'LINE' | 'STAR' | 'POLYGON'
- | 'VECTOR' | 'GROUP' | 'SECTION'
- | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'
- | 'CONNECTOR' | 'SHAPE_WITH_TEXT'
-```
-
-## Node Hierarchy
-
-```
-Document
-├── Canvas (Page 1)
-│ ├── Section (top-level only, title pill, auto-adopts siblings)
-│ │ ├── Frame
-│ │ │ └── ...children
-│ │ └── Rectangle
-│ ├── Frame
-│ │ ├── Rectangle
-│ │ ├── Text
-│ │ └── Frame (nested)
-│ │ ├── Ellipse
-│ │ └── Instance (→ references Component)
-│ ├── Component
-│ │ └── ...children
-│ ├── Group
-│ │ └── ...children
-│ └── BooleanOperation
-│ └── ...operand shapes
-└── Canvas (Page 2)
- └── ...
-```
-
-## Core Properties
-
-Every node carries these fields (subset of `NodeChange`):
-
-### Identity & Tree
-
-- `guid` — unique identifier (`sessionID:localID`)
-- `type` — node type enum
-- `name` — display name
-- `phase` — `CREATED` or `REMOVED`
-- `parentIndex` — parent GUID + position string for z-ordering
-
-### Transform
-
-- `size` — width/height vector
-- `transform` — 2×3 affine matrix
-- `rotation` — degrees
-
-### Appearance
-
-- `fillPaints[]` — fill colors/gradients/images
-- `strokePaints[]` — stroke colors
-- `effects[]` — shadows, blurs
-- `opacity` — 0–1
-- `blendMode` — `NORMAL`, `MULTIPLY`, `SCREEN`, etc.
-
-### Stroke
-
-- `strokeWeight` — stroke thickness
-- `strokeAlign` — `INSIDE` / `CENTER` / `OUTSIDE`
-- `strokeCap` — `NONE` / `ROUND` / `SQUARE` / `ARROW_LINES` / `ARROW_EQUILATERAL`
-- `strokeJoin` — `MITER` / `BEVEL` / `ROUND`
-- `dashPattern[]` — dash/gap lengths
-
-### Corners
-
-- `cornerRadius` — uniform radius
-- `cornerSmoothing` — squircle amount (0–1)
-- Per-corner radii when `rectangleCornerRadiiIndependent` is true
-
-### Visibility
-
-- `visible` — show/hide
-- `locked` — prevent editing
-
-## Type-Specific Properties
-
-### Text
-
-`fontSize`, `fontName`, `lineHeight`, `letterSpacing`, `textAlignHorizontal`, `textAlignVertical`, `textAutoResize`, `textData` (characters, style overrides, baselines, glyphs)
-
-### Vector
-
-`vectorData` (vectorNetworkBlob, normalizedSize), `fillGeometry[]`, `strokeGeometry[]`, `handleMirroring`, `arcData`
-
-### Layout (Frame)
-
-`stackMode`, `stackSpacing`, `stackPadding`, `stackJustify`, `stackCounterAlign`, `stackPrimarySizing`, `stackCounterSizing`, `stackChildPrimaryGrow`, `stackChildAlignSelf`
-
-### Component
-
-`symbolData`, `componentKey`, `componentPropDefs[]`, `symbolDescription`
-
-### Instance
-
-`overriddenSymbolID`, `symbolData.symbolOverrides[]`, `componentPropRefs[]`, `componentPropAssignments[]`
-
-## Paint
-
-```typescript
-interface Fill {
- type: 'SOLID' | 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' |
- 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND' | 'IMAGE'
- color: Color // {r, g, b, a} 0–1 floats
- opacity: number // 0–1
- visible: boolean
- blendMode?: BlendMode
- gradientStops?: GradientStop[] // for gradients
- gradientTransform?: GradientTransform // 2×3 matrix
- imageHash?: string // for image fills
- imageScaleMode?: 'FILL' | 'FIT' | 'CROP' | 'TILE'
- imageTransform?: GradientTransform
-}
-```
-
-## Effect
-
-```typescript
-interface Effect {
- type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' |
- 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR'
- color: Color
- offset: { x: number; y: number }
- radius: number
- spread: number
- visible: boolean
-}
-```
-
-## Stroke
-
-```typescript
-interface Stroke {
- color: Color
- weight: number
- opacity: number
- visible: boolean
- align: 'INSIDE' | 'CENTER' | 'OUTSIDE'
- cap?: 'NONE' | 'ROUND' | 'SQUARE' | 'ARROW_LINES' | 'ARROW_EQUILATERAL'
- join?: 'MITER' | 'BEVEL' | 'ROUND'
- dashPattern?: number[]
-}
-```
diff --git a/packages/docs/fr/reference/scene-graph.md b/packages/docs/fr/reference/scene-graph.md
deleted file mode 100644
index 0d445d189..000000000
--- a/packages/docs/fr/reference/scene-graph.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Scene Graph
-
-## In-Memory Representation
-
-Nodes live in a flat `Map<string, Node>` keyed by `GUID` string. The tree structure is maintained via `parentIndex` references. This gives O(1) lookup by ID and efficient traversal.
-
-```typescript
-interface SceneGraph {
- nodes: Map<string, Node>
- root: string
-
- getNode(id: string): Node
- getChildren(id: string): Node[]
- getParent(id: string): Node | null
- getPages(): Node[]
-
- createNode(type: NodeType, parent: string, props: Partial<NodeChange>): Node
- updateNode(id: string, changes: Partial<NodeChange>): void
- deleteNode(id: string): void
- moveNode(id: string, newParent: string, position: string): void
- addPage(name: string): Node
- deletePage(id: string): void
- renamePage(id: string, name: string): void
-
- findByType(type: NodeType): Node[]
- findByName(pattern: string): Node[]
- hitTest(point: Vector, canvas: string): Node | null
- getNodesInRect(rect: Rect, canvas: string): Node[]
-}
-```
-
-## Pages
-
-Documents support multiple pages (`CANVAS` nodes as direct children of the `DOCUMENT` root). Each page has its own child tree and independent viewport state (panX, panY, zoom, pageColor). The editor tracks `currentPageId` and renders only the active page's children.
-
-## Sections
-
-`SECTION` nodes are top-level organizational containers (direct children of `CANVAS` only). They cannot nest inside frames or groups. Creating a section auto-adopts overlapping siblings. Sections display a title pill with luminance-adaptive text color.
-
-## Hover State
-
-The editor state tracks `hoveredNodeId` — the node currently under the cursor. The renderer draws a shape-aware hover outline (following actual geometry for ellipses, rounded rects, vectors) for visual feedback before selection.
-
-## Undo/Redo
-
-The system uses Figma's **inverse command** pattern. Each undo entry contains the forward changes and their automatically-computed inverse:
-
-| Operation | Forward | Inverse |
-|-----------|---------|---------|
-| Create node | `{guid, phase: CREATED, ...props}` | `{guid, phase: REMOVED}` |
-| Delete node | `{guid, phase: REMOVED}` | `{guid, phase: CREATED, ...allProps}` |
-| Change prop | `{guid, fill: "#F00"}` | `{guid, fill: "#00F"}` |
-| Move node | `{guid, parentIndex: newParent}` | `{guid, parentIndex: oldParent}` |
-
-Before applying any change, affected fields are snapshotted. The snapshot becomes the inverse.
-
-**Batching** — operations like drag-to-move produce hundreds of position changes per second. These are debounced into a single undo entry. `beginBatch`/`commitBatch` wraps multi-step operations.
-
-## Layout Engine (Yoga)
-
-Figma's auto-layout properties map to Yoga flexbox:
-
-| Figma Property | Yoga Equivalent |
-|---|---|
-| `stackMode: HORIZONTAL` | `flexDirection: row` |
-| `stackMode: VERTICAL` | `flexDirection: column` |
-| `stackSpacing` | `gap` |
-| `stackPadding` | `padding` |
-| `stackJustify: MIN/CENTER/MAX/SPACE_BETWEEN` | `justifyContent` |
-| `stackCounterAlign` | `alignItems` |
-| `stackPrimarySizing: FIXED/HUG/FILL` | width/height + flex-grow |
-| `stackChildPrimaryGrow` | `flexGrow` |
-| `stackChildAlignSelf` | `alignSelf` |
-| `stackPositioning: ABSOLUTE` | `position: absolute` |
-
-## Hit Testing
-
-Given a point in canvas coordinates, the scene graph returns the topmost visible node at that position. The algorithm:
-
-1. Traverse visible nodes in reverse z-order (top to bottom)
-2. Transform the test point into each node's local coordinate system
-3. Check if the point is within the node's bounds (including rotation)
-4. Return the first match
-
-For marquee selection, `getNodesInRect` returns all nodes whose bounds intersect the given rectangle.
-
-## Extended Fill Types
-
-Fills support six types: `SOLID`, `GRADIENT_LINEAR`, `GRADIENT_RADIAL`, `GRADIENT_ANGULAR`, `GRADIENT_DIAMOND`, and `IMAGE`. Gradient fills carry `gradientStops` (color + position pairs) and a `gradientTransform` (2×3 matrix). Image fills reference blob data via `imageHash` with scale modes (`FILL`, `FIT`, `CROP`, `TILE`).
-
-## Extended Stroke Properties
-
-Strokes support `cap` (`NONE`, `ROUND`, `SQUARE`, `ARROW_LINES`, `ARROW_EQUILATERAL`), `join` (`MITER`, `BEVEL`, `ROUND`), and `dashPattern` (array of dash/gap lengths) in addition to the base `color`, `weight`, `opacity`, `visible`, and `align` properties.
-
-## Coordinate System
-
-Nodes store position and size relative to their parent. To get absolute (canvas) coordinates, walk up the parent chain applying transforms. The renderer uses this to draw nested frames with correct positioning.
-
-Rotation is stored in degrees and applied as part of the 2×3 transform matrix. Snap guides and hit testing account for rotation when computing visual bounds.
diff --git a/packages/docs/fr/user-guide/pen-tool.md b/packages/docs/fr/user-guide/pen-tool.md
index 7b1d9bc50..c175d1a0f 100644
--- a/packages/docs/fr/user-guide/pen-tool.md
+++ b/packages/docs/fr/user-guide/pen-tool.md
@@ -1,6 +1,6 @@
---
title: Outil plume
-description: Tracés vectoriels avec courbes de Bézier in OpenPencil.
+description: Tracés vectoriels avec courbes de Bézier dans OpenPencil.
---
# Outil plume
@@ -8,20 +8,20 @@ description: Tracés vectoriels avec courbes de Bézier in OpenPencil.
**P**
## Placer des points
-- **Click** — corner point
-- **Click + drag** — curve point with Bézier tangent handles
- - **Hold <kbd>Space</kbd>** while dragging to move the point itself
+- **Clic** — place un point d’angle
+- **Clic + glisser** — place un point de courbe avec des poignées tangentes de Bézier
+ - **Maintenir <kbd>Space</kbd>** pendant le glissement pour déplacer le point lui-même
## Fermer un tracé
-Click the first point to close into a loop.
+Cliquez sur le premier point pour fermer le tracé en boucle.
## Tracés ouverts
-<kbd>Escape</kbd> to commit as open path.
+Appuyez sur <kbd>Escape</kbd> pour valider un tracé ouvert.
## Réseaux vectoriels
Les tracés dans OpenPencil utilisent des réseaux vectoriels — un modèle plus flexible que les listes de points simples, qui prend en charge les tracés ramifiés et les topologies complexes. C'est le même modèle que Figma, les tracés sont donc parfaitement conservés dans les fichiers .fig.
| Action | Mac | Windows / Linux |
|--------|-----|-----------------|
-| Pen tool | <kbd>P</kbd> | <kbd>P</kbd> |
-| Commit | <kbd>Escape</kbd> | Escape |
+| Outil plume | <kbd>P</kbd> | <kbd>P</kbd> |
+| Valider | <kbd>Escape</kbd> | Escape |
diff --git a/packages/docs/it/programmable/index.md b/packages/docs/it/programmable/index.md
index e650cf098..9901e1011 100644
--- a/packages/docs/it/programmable/index.md
+++ b/packages/docs/it/programmable/index.md
@@ -42,7 +42,7 @@ La CLI si connette anche all'app desktop in esecuzione tramite RPC, così puoi s
Connetti Claude Code, Cursor, Windsurf o qualsiasi client compatibile con MCP a OpenPencil. Il server espone 90 strumenti per leggere, creare e modificare design — gli stessi strumenti che usa la chat IA integrata. Funziona tramite stdio o HTTP con supporto alle sessioni.
-[Server MCP →](./mcp-server)
+[Server MCP →](/programmable/mcp-server)
## Perché Open?
diff --git a/packages/docs/it/programmable/mcp-server.md b/packages/docs/it/programmable/mcp-server.md
deleted file mode 100644
index 7139501d4..000000000
--- a/packages/docs/it/programmable/mcp-server.md
+++ /dev/null
@@ -1,255 +0,0 @@
-# MCP Server
-
-OpenPencil includes an MCP (Model Context Protocol) server that lets AI coding tools — Claude Code, Cursor, Windsurf, etc. — read and modify `.fig` files headlessly.
-
-Two transports: **stdio** for MCP clients, **HTTP** for everything else.
-
-## Install
-
-```sh
-npm install -g @open-pencil/mcp
-```
-
-## Stdio (Claude Code, Cursor, etc.)
-
-Add to your MCP config (e.g. `~/.claude/settings.json` or `.cursor/mcp.json`):
-
-```json
-{
- "mcpServers": {
- "open-pencil": {
- "command": "openpencil-mcp"
- }
- }
-}
-```
-
-Or run from source without installing:
-
-::: code-group
-```json [Bun]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "bun",
- "args": ["/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-```json [Node.js]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "npx",
- "args": ["tsx", "/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-:::
-
-## HTTP
-
-For browser extensions, scripts, CI, or any HTTP client:
-
-```sh
-openpencil-mcp-http
-```
-
-Or from source: `bun packages/mcp/src/index.ts` / `npx tsx packages/mcp/src/index.ts`
-
-Security defaults (HTTP transport):
-
-- Binds to `127.0.0.1` by default (`HOST` to override)
-- `eval` tool is disabled
-- File operations are limited to `OPENPENCIL_MCP_ROOT` (defaults to current working directory)
-- CORS is disabled by default; set `OPENPENCIL_MCP_CORS_ORIGIN` to allow one origin
-- Optional auth token: `OPENPENCIL_MCP_AUTH_TOKEN` (client sends `Authorization: Bearer <token>` or `x-mcp-token`)
-
-Server starts on port 7600 (override with `PORT` env var). Endpoints:
-
-- `GET /health` — server status
-- `POST /mcp` — MCP Streamable HTTP (SSE). Sessions via `mcp-session-id` header.
-
-## Workflow
-
-1. **Open** — `open_file` to load an existing `.fig`, or `new_document` for a blank canvas
-2. **Read** — `get_page_tree`, `find_nodes`, `get_node`, `list_pages`
-3. **Create** — `create_shape`, `render` (JSX)
-4. **Modify** — `set_fill`, `set_stroke`, `set_layout`, `update_node`, `set_effects`
-5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`
-6. **Save** — `save_file` to write back to `.fig`
-
-## AI Agent Skill
-
-Teach your AI coding agent to use OpenPencil tools:
-
-```sh
-npx skills add open-pencil/skills@open-pencil
-```
-
-Works with Claude Code, Cursor, Windsurf, Codex, and any agent that supports [skills](https://skills.sh). The skill covers the CLI, MCP tools, JSX rendering, eval, and the running app's automation bridge.
-
-## Tools
-
-OpenPencil currently registers 100+ shared design tools, plus MCP-only document and prompt operations when applicable.
-
-### Document
-
-| Tool | Description |
-|------|-------------|
-| `open_file` | Open a `.fig` file for editing |
-| `save_file` | Save the current document to a `.fig` file |
-| `new_document` | Create a new empty document |
-
-### Read
-
-| Tool | Description |
-|------|-------------|
-| `get_selection` | Get currently selected nodes |
-| `get_page_tree` | Get the full node tree of the current page |
-| `get_current_page` | Get the current page name and ID |
-| `get_node` | Get detailed properties of a node by ID |
-| `find_nodes` | Find nodes by name pattern and/or type |
-| `get_components` | List all components in the document |
-| `list_pages` | List all pages |
-| `list_variables` | List design variables |
-| `list_collections` | List variable collections |
-| `list_fonts` | List fonts used in the current page |
-| `list_available_fonts` | List font families the current host can render |
-| `get_font_status` | Report requested faces, loaded sources, active substitutions, and affected nodes |
-| `page_bounds` | Get bounding box of all objects on the current page |
-| `node_bounds` | Get bounding box of a node |
-| `node_ancestors` | Get ancestor chain of a node |
-| `node_children` | Get direct children of a node |
-| `node_tree` | Get the subtree rooted at a node |
-| `node_bindings` | Get variable bindings on a node |
-
-### Create
-
-| Tool | Description |
-|------|-------------|
-| `create_shape` | Create a shape (`FRAME`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `LINE`, `STAR`, `POLYGON`, `SECTION`) |
-| `create_vector` | Create a vector node from a path string |
-| `create_slice` | Create an export slice |
-| `create_page` | Create a new page |
-| `render` | Render JSX to design nodes — create entire component trees in one call |
-| `create_component` | Convert a frame/group into a component |
-| `create_instance` | Create an instance of a component |
-| `node_to_component` | Convert an existing node into a component in-place |
-
-### Modify
-
-| Tool | Description |
-|------|-------------|
-| `set_fill` | Set fill color (hex) |
-| `set_stroke` | Set stroke color, weight, alignment |
-| `set_effects` | Add shadow or blur effects |
-| `update_node` | Update position, size, opacity, corner radius, text, font |
-| `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment |
-| `set_constraints` | Set resize constraints |
-| `set_rotation` | Set rotation angle in degrees |
-| `set_opacity` | Set opacity (0–1) |
-| `set_radius` | Set corner radius (uniform or per-corner) |
-| `set_minmax` | Set min/max width and height constraints |
-| `set_text` | Set text content of a `TEXT` node |
-| `set_font` | Set font family and weight |
-| `set_font_range` | Set font properties on a character range |
-| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |
-| `set_visible` | Show or hide a node |
-| `set_blend` | Set blend mode |
-| `set_locked` | Lock or unlock a node |
-| `set_stroke_align` | Set stroke alignment (inside/center/outside) |
-| `set_text_properties` | Set text layout: alignment, auto-resize, text case, decoration, truncation |
-| `set_layout_child` | Configure auto-layout child: sizing, grow, alignment, absolute positioning |
-| `node_move` | Move a node to a new position |
-| `node_resize` | Resize a node |
-| `node_replace_with` | Replace a node with another node |
-| `arrange` | Align or distribute selected nodes |
-
-### Structure
-
-| Tool | Description |
-|------|-------------|
-| `delete_node` | Delete a node |
-| `clone_node` | Duplicate a node |
-| `rename_node` | Rename a node |
-| `reparent_node` | Move a node into a different parent |
-| `select_nodes` | Select nodes by ID |
-| `group_nodes` | Group nodes |
-| `ungroup_node` | Ungroup a group |
-| `flatten_nodes` | Flatten nodes into a single vector |
-| `boolean_union` | Boolean union of two or more nodes |
-| `boolean_subtract` | Boolean subtraction |
-| `boolean_intersect` | Boolean intersection |
-| `boolean_exclude` | Boolean exclusion |
-
-### Vector Path
-
-| Tool | Description |
-|------|-------------|
-| `path_get` | Get the path data of a vector node |
-| `path_set` | Set the path data of a vector node |
-| `path_scale` | Scale a vector path |
-| `path_flip` | Flip a vector path horizontally or vertically |
-| `path_move` | Translate a vector path |
-
-### Export
-
-| Tool | Description |
-|------|-------------|
-| `export_image` | Export nodes as PNG, JPG, or WEBP. Returns base64-encoded image data |
-| `export_svg` | Export nodes as SVG markup |
-
-### Viewport
-
-| Tool | Description |
-|------|-------------|
-| `viewport_get` | Get current viewport position and zoom level |
-| `viewport_set` | Set viewport position and zoom |
-| `viewport_zoom_to_fit` | Zoom viewport to fit specified nodes |
-
-### Variables
-
-| Tool | Description |
-|------|-------------|
-| `get_variable` | Get a variable by ID or name |
-| `find_variables` | Find variables by name pattern or type |
-| `create_variable` | Create a new variable in a collection |
-| `set_variable` | Set a variable value in a mode |
-| `delete_variable` | Delete a variable |
-| `bind_variable` | Bind a variable to a node property |
-| `get_collection` | Get a variable collection by ID or name |
-| `create_collection` | Create a new variable collection |
-| `delete_collection` | Delete a variable collection |
-
-### Analyze
-
-| Tool | Description |
-|------|-------------|
-| `analyze_colors` | Analyze color palette usage across the document |
-| `analyze_typography` | Analyze font/size/weight distribution |
-| `analyze_spacing` | Analyze gap and padding values |
-| `analyze_clusters` | Detect repeated patterns (potential components) |
-
-### Diff
-
-| Tool | Description |
-|------|-------------|
-| `diff_create` | Create a snapshot of the current document state |
-| `diff_show` | Show differences between the current state and a snapshot |
-
-### Navigation
-
-| Tool | Description |
-|------|-------------|
-| `switch_page` | Switch to a page by name or ID |
-
-### Escape Hatch
-
-| Tool | Description |
-|------|-------------|
-| `eval` | Execute JavaScript with full Figma Plugin API access |
-
-Note: `eval` is available over stdio, but disabled in HTTP mode for security.
diff --git a/packages/docs/it/programmable/sdk/api/advanced/use-number-field.md b/packages/docs/it/programmable/sdk/api/advanced/use-number-field.md
deleted file mode 100644
index 77d8a0775..000000000
--- a/packages/docs/it/programmable/sdk/api/advanced/use-number-field.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: useNumberField
-description: Context helper for custom NumberField descendants.
----
-
-# useNumberField
-
-The generated `useNumberField()` reference currently shares one canonical source.
-
-[Open the useNumberField reference](/programmable/sdk/api/advanced/use-number-field)
diff --git a/packages/docs/it/reference/cli.md b/packages/docs/it/reference/cli.md
deleted file mode 100644
index 7335121f8..000000000
--- a/packages/docs/it/reference/cli.md
+++ /dev/null
@@ -1,184 +0,0 @@
----
-title: CLI Reference
-description: Complete reference for all openpencil commands, options, and flags.
----
-
-# CLI Reference
-
-All commands accept a `.fig` file as a positional argument. When omitted, the CLI connects to the running desktop app via RPC.
-
-## info
-
-Show document info — pages, node counts, fonts, file size.
-
-```sh
-openpencil info [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## tree
-
-Print the node hierarchy.
-
-```sh
-openpencil tree [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--page` | Page name (default: first page) |
-| `--depth` | Max depth (default: unlimited) |
-| `--json` | Output as JSON |
-
-## find
-
-Search nodes by name or type.
-
-```sh
-openpencil find [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--name` | Node name (partial match, case-insensitive) |
-| `--type` | Node type: `FRAME`, `TEXT`, `RECTANGLE`, `INSTANCE`, etc. |
-| `--page` | Page name (default: all pages) |
-| `--limit` | Max results (default: 100) |
-| `--json` | Output as JSON |
-
-## node
-
-Show detailed properties of a node.
-
-```sh
-openpencil node [file] --id <id> [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--id` | **Required.** Node ID (e.g. `1:23`) |
-| `--json` | Output as JSON |
-
-## pages
-
-List all pages in the document.
-
-```sh
-openpencil pages [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## variables
-
-List design variables and collections.
-
-```sh
-openpencil variables [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--collection` | Filter by collection name |
-| `--type` | Filter by type: `COLOR`, `FLOAT`, `STRING`, `BOOLEAN` |
-| `--json` | Output as JSON |
-
-## export
-
-Export to PNG, JPG, WEBP, SVG, or JSX.
-
-```sh
-openpencil export [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--format` | `-f` | `png` (default), `jpg`, `webp`, `svg`, `jsx` |
-| `--output` | `-o` | Output file path (default: `<name>.<format>`) |
-| `--scale` | `-s` | Export scale (default: 1) |
-| `--quality` | `-q` | Quality 0–100, JPG/WEBP only (default: 90) |
-| `--page` | | Page name (default: first page) |
-| `--node` | | Node ID to export (default: all top-level nodes) |
-| `--style` | | JSX style: `openpencil` (default), `tailwind` |
-| `--thumbnail` | | Export page thumbnail instead of full render |
-| `--width` | | Thumbnail width (default: 1920) |
-| `--height` | | Thumbnail height (default: 1080) |
-
-## eval
-
-Execute JavaScript with the Figma Plugin API.
-
-```sh
-openpencil eval [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--code` | `-c` | JavaScript code to execute |
-| `--stdin` | | Read code from stdin |
-| `--write` | `-w` | Write changes back to the input file |
-| `--output` | `-o` | Write to a different file |
-| `--json` | | Output as JSON |
-| `--quiet` | `-q` | Suppress output |
-
-## analyze colors
-
-Analyze color palette usage across the document.
-
-```sh
-openpencil analyze colors [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max colors to show (default: 30) |
-| `--threshold` | Distance threshold for clustering similar colors, 0–50 (default: 15) |
-| `--similar` | Show similar color clusters |
-| `--json` | Output as JSON |
-
-## analyze typography
-
-Analyze font family, size, and weight distribution.
-
-```sh
-openpencil analyze typography [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--group-by` | Group by: `family`, `size`, `weight` (default: show all styles) |
-| `--limit` | Max styles to show (default: 30) |
-| `--json` | Output as JSON |
-
-## analyze spacing
-
-Analyze gap and padding values across auto-layout frames.
-
-```sh
-openpencil analyze spacing [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--grid` | Base grid size to check against (default: 8) |
-| `--json` | Output as JSON |
-
-## analyze clusters
-
-Find repeated node patterns — potential components.
-
-```sh
-openpencil analyze clusters [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max clusters to show (default: 20) |
-| `--min-size` | Min node size in px (default: 30) |
-| `--min-count` | Min instances to form a cluster (default: 2) |
-| `--json` | Output as JSON |
diff --git a/packages/docs/it/reference/file-format.md b/packages/docs/it/reference/file-format.md
deleted file mode 100644
index ea94b8fb6..000000000
--- a/packages/docs/it/reference/file-format.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# File Format
-
-## .fig File Structure
-
-A `.fig` file is a ZIP archive containing a Kiwi-encoded binary message:
-
-| Offset | Content |
-|--------|---------|
-| 0 | Magic header `fig-kiwi` (8 bytes) |
-| 8 | Version (4 bytes, uint32 LE) |
-| 12 | Schema length (4 bytes, uint32 LE) |
-| 16 | Compressed Kiwi schema |
-| … | Message length (4 bytes, uint32 LE) |
-| … | Compressed Kiwi message — `NodeChange[]` (entire document) |
-| … | Blob data — images, vector networks, fonts |
-
-## Import Pipeline
-
-```
-.fig file → parse header → decompress Zstd → decode Kiwi schema
- → decode message → NodeChange[] → build SceneGraph
- → resolve blob refs → render on canvas
-```
-
-## Export Pipeline
-
-```
-SceneGraph → NodeChange[] → Kiwi encode → compress (Zstd/deflate)
- → build ZIP (header + schema + message + thumbnail.png)
- → write .fig file
-```
-
-Export uses <kbd>⌘</kbd><kbd>S</kbd> (Save) and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> (Save As) with native OS dialogs on the desktop app. The exported file includes a `thumbnail.png` required by Figma for file preview.
-
-Compression uses Zstd via Tauri Rust command on desktop, with deflate fallback in the browser.
-
-## Kiwi Binary Codec
-
-The codec handles Figma's 194-definition Kiwi schema with `NodeChange` as the central type (~390 fields). Key components:
-
-| Module | Purpose |
-|--------|---------|
-| `kiwi-schema` | Kiwi parser (from [evanw/kiwi](https://github.com/nicolo-ribaudo/kiwi)), patched for ESM and sparse field IDs |
-| `codec.ts` | Encode/decode messages using the Kiwi schema |
-| `protocol.ts` | Wire format parsing and message type detection |
-| `schema.ts` | 194 message/enum/struct definitions |
-
-### Sparse Field IDs
-
-Figma's schema uses non-contiguous field IDs (e.g. 1, 2, 5, 10 with gaps). The kiwi-schema parser handles this correctly.
-
-### Compression
-
-`.fig` files use Zstd compression for both the schema and message payloads. Decompression uses the `fzstd` library. For export, Zstd compression is offloaded to a Tauri Rust command on the desktop app (better performance, correct frame headers). In the browser, deflate via `fflate` is used as a fallback.
-
-## Supported Formats
-
-| Format | Import | Export |
-|--------|--------|--------|
-| `.fig` (Figma) | ✅ | ✅ |
-| `.svg` | Planned | Planned |
-| `.png` | Planned | Planned |
-| `.pdf` | — | Planned |
-
-## Clipboard Format
-
-Copy/paste uses the same Kiwi binary encoding:
-
-1. **Copy** — encode selected `NodeChange[]` to Kiwi binary, compress, write to clipboard as `application/x-figma-design` MIME type
-2. **Paste** — read clipboard, decompress, decode Kiwi binary, create nodes in scene graph
-
-Encoding happens synchronously in the copy event handler (not async Clipboard API) for browser compatibility. This enables bidirectional clipboard between OpenPencil and Figma.
diff --git a/packages/docs/it/reference/keyboard-shortcuts.md b/packages/docs/it/reference/keyboard-shortcuts.md
deleted file mode 100644
index ce9c81016..000000000
--- a/packages/docs/it/reference/keyboard-shortcuts.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Scorciatoie da tastiera
-
-Mappa completa delle scorciatoie compatibili con Figma.
-
-::: tip Symbol Legend
-⌘ = Cmd (Mac) / Ctrl (Win/Linux) · ⇧ = Shift · ⌥ = Alt/Option · ⌃ = Ctrl · ⌫ = Backspace
-:::
-
-## Tools
-
-| Key | Tool | Status |
-|-----|------|--------|
-| <kbd>V</kbd> | Move/Select | ✅ |
-| <kbd>K</kbd> | Scale | 🔲 |
-| <kbd>H</kbd> | Hand | ✅ |
-| <kbd>F</kbd> | Frame | ✅ |
-| <kbd>S</kbd> | Section | ✅ |
-| <kbd>R</kbd> | Rectangle | ✅ |
-| <kbd>O</kbd> | Ellipse | ✅ |
-| <kbd>L</kbd> | Line | ✅ |
-| — | Polygon | ✅ (flyout only) |
-| — | Star | ✅ (flyout only) |
-| <kbd>⇧</kbd><kbd>L</kbd> | Arrow | 🔲 |
-| <kbd>P</kbd> | Pen | ✅ |
-| <kbd>⇧</kbd><kbd>P</kbd> | Pencil | 🔲 |
-| <kbd>T</kbd> | Text | ✅ |
-| <kbd>C</kbd> | Comment | 🔲 |
-| <kbd>I</kbd> | Eyedropper | 🔲 |
-
-## File
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>N</kbd> | New Window | 🔲 |
-| <kbd>⌘</kbd><kbd>O</kbd> | Open File | ✅ |
-| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | 🔲 |
-| <kbd>⌘</kbd><kbd>S</kbd> | Save | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Save As | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Export… | ✅ |
-
-## Edit
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>Z</kbd> | Undo | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd> | Redo | ✅ |
-| <kbd>⌘</kbd><kbd>X</kbd> | Cut | ✅ |
-| <kbd>⌘</kbd><kbd>C</kbd> | Copy | ✅ |
-| <kbd>⌘</kbd><kbd>V</kbd> | Paste | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Over Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>D</kbd> | Duplicate | ✅ |
-| <kbd>⌫</kbd> | Delete | ✅ |
-| <kbd>⌘</kbd><kbd>A</kbd> | Select All | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Select Inverse | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy Properties | 🔲 |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Properties | 🔲 |
-
-## View
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>'</kbd> | Pixel Grid | 🔲 |
-| <kbd>⌃</kbd><kbd>G</kbd> | Layout Guides | 🔲 |
-| <kbd>⇧</kbd><kbd>R</kbd> | Rulers | 🔲 |
-| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | 🔲 |
-| <kbd>⌘</kbd><kbd>=</kbd> | Zoom In | ✅ |
-| <kbd>⌘</kbd><kbd>-</kbd> | Zoom Out | ✅ |
-| <kbd>⌘</kbd><kbd>0</kbd> | Zoom to 100% | ✅ |
-| <kbd>⌘</kbd><kbd>1</kbd> | Zoom to Fit | ✅ |
-| <kbd>⌘</kbd><kbd>2</kbd> | Zoom to Selection | ✅ |
-| <kbd>⇧</kbd><kbd>1</kbd> | Zoom to Fit (alt) | ✅ |
-| <kbd>⇧</kbd><kbd>2</kbd> | Zoom to Selection (alt) | ✅ |
-| <kbd>⌘</kbd><kbd>J</kbd> | Toggle AI Chat | ✅ |
-
-## Object
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>G</kbd> | Frame Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>G</kbd> | Group Selection | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>G</kbd> | Ungroup | ✅ |
-| <kbd>⇧</kbd><kbd>A</kbd> | Add Auto Layout | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component Set | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> | Detach Instance | ✅ |
-| <kbd>⌘</kbd><kbd>R</kbd> | Rinomina selezione | ✅ |
-| <kbd>⌘</kbd><kbd>]</kbd> | Bring Forward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | Bring to Front | 🔲 |
-| <kbd>]</kbd> | Bring to Front | ✅ |
-| <kbd>⌘</kbd><kbd>[</kbd> | Send Backward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>[</kbd> | Send to Back | 🔲 |
-| <kbd>[</kbd> | Send to Back | ✅ |
-| <kbd>⇧</kbd><kbd>H</kbd> | Flip Horizontal | ✅ |
-| <kbd>⇧</kbd><kbd>V</kbd> | Flip Vertical | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>H</kbd> | Toggle Visibility | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>L</kbd> | Toggle Lock | ✅ |
-| <kbd>⌘</kbd><kbd>E</kbd> | Flatten | 🔲 |
-
-## Text
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>B</kbd> | Bold | ✅ |
-| <kbd>⌘</kbd><kbd>I</kbd> | Italic | ✅ |
-| <kbd>⌘</kbd><kbd>U</kbd> | Underline | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>X</kbd> | Strikethrough | 🔲 |
-
-## Canvas Interaction
-
-| Input | Action | Status |
-|-------|--------|--------|
-| Click | Select node | ✅ |
-| <kbd>Shift</kbd>+Click | Add/remove from selection | ✅ |
-| <kbd>Alt</kbd>+Drag | Duplicate and move | ✅ |
-| <kbd>Shift</kbd>+Drag (draw) | Constrain to square/circle | ✅ |
-| <kbd>Shift</kbd>+Drag (resize) | Maintain aspect ratio | ✅ |
-| <kbd>Shift</kbd>+Drag (rotate) | Snap to 15° | ✅ |
-| Middle mouse drag | Pan | ✅ |
-| Scroll | Pan | ✅ |
-| <kbd>Ctrl</kbd>+Scroll / Pinch | Zoom | ✅ |
-| Double-click text | Edit text inline | ✅ |
-| Drag onto frame | Reparent into frame | ✅ |
-| <kbd>Escape</kbd> | Deselect / Cancel | ✅ |
diff --git a/packages/docs/it/reference/node-types.md b/packages/docs/it/reference/node-types.md
deleted file mode 100644
index f6024302d..000000000
--- a/packages/docs/it/reference/node-types.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# Node Types
-
-The scene graph supports 28 node types from Figma's Kiwi schema. Each node is identified by a GUID (`sessionID:localID`) and has a parent reference via `parentIndex`. The OpenPencil engine's `NodeType` union currently uses 17 of these types.
-
-## Type Table
-
-28 Figma schema types + 1 synthetic engine type. Types marked ✅ are in the engine's `NodeType` union (17 total).
-
-| Type | ID | Description | Engine |
-|------|----|-------------|--------|
-| `DOCUMENT` | 1 | Root node, one per file | — |
-| `CANVAS` | 2 | Page | ✅ |
-| `GROUP` | 3 | Group container | ✅ |
-| `FRAME` | 4 | Primary container (artboard), supports auto-layout | ✅ |
-| `BOOLEAN_OPERATION` | 5 | Union/subtract/intersect/exclude result | |
-| `VECTOR` | 6 | Freeform vector path | ✅ |
-| `STAR` | 7 | Star shape | ✅ |
-| `LINE` | 8 | Line | ✅ |
-| `ELLIPSE` | 9 | Ellipse/circle, supports arc data | ✅ |
-| `RECTANGLE` | 10 | Rectangle | ✅ |
-| `REGULAR_POLYGON` | 11 | Regular polygon (3–12 sides, engine uses `POLYGON`) | ✅ |
-| `ROUNDED_RECTANGLE` | 12 | Rectangle with smooth corners | ✅ |
-| `TEXT` | 13 | Text with rich formatting | ✅ |
-| `SLICE` | 14 | Export region | |
-| `SYMBOL` | 15 | Component (main, engine uses `COMPONENT`) | ✅ |
-| `INSTANCE` | 16 | Component instance | ✅ |
-| `STICKY` | 17 | FigJam sticky note | |
-| `SHAPE_WITH_TEXT` | 18 | FigJam shape | ✅ |
-| `CONNECTOR` | 19 | Connector line between nodes | ✅ |
-| `CODE_BLOCK` | 20 | FigJam code block | |
-| `WIDGET` | 21 | Plugin widget | |
-| `STAMP` | 22 | FigJam stamp | |
-| `MEDIA` | 23 | Video/GIF | |
-| `HIGHLIGHT` | 24 | FigJam highlight | |
-| `SECTION` | 25 | Canvas section (organizational, top-level only) | ✅ |
-| `SECTION_OVERLAY` | 26 | Section overlay | |
-| `WASHI_TAPE` | 27 | FigJam washi tape | |
-| `VARIABLE` | 28 | Variable definition node | |
-| `COMPONENT_SET` | — | Variant group container (synthetic, mapped from `SYMBOL`) | ✅ |
-
-### Engine NodeType Union (17 types)
-
-The engine's `NodeType` uses simplified names. Some differ from the Kiwi schema:
-- `COMPONENT` → Kiwi `SYMBOL` (ID 15)
-- `COMPONENT_SET` → variant group container (no dedicated Kiwi ID, mapped from `SYMBOL` with variants)
-- `POLYGON` → Kiwi `REGULAR_POLYGON` (ID 11)
-
-```typescript
-type NodeType =
- | 'CANVAS' | 'FRAME' | 'RECTANGLE' | 'ROUNDED_RECTANGLE'
- | 'ELLIPSE' | 'TEXT' | 'LINE' | 'STAR' | 'POLYGON'
- | 'VECTOR' | 'GROUP' | 'SECTION'
- | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'
- | 'CONNECTOR' | 'SHAPE_WITH_TEXT'
-```
-
-## Node Hierarchy
-
-```
-Document
-├── Canvas (Page 1)
-│ ├── Section (top-level only, title pill, auto-adopts siblings)
-│ │ ├── Frame
-│ │ │ └── ...children
-│ │ └── Rectangle
-│ ├── Frame
-│ │ ├── Rectangle
-│ │ ├── Text
-│ │ └── Frame (nested)
-│ │ ├── Ellipse
-│ │ └── Instance (→ references Component)
-│ ├── Component
-│ │ └── ...children
-│ ├── Group
-│ │ └── ...children
-│ └── BooleanOperation
-│ └── ...operand shapes
-└── Canvas (Page 2)
- └── ...
-```
-
-## Core Properties
-
-Every node carries these fields (subset of `NodeChange`):
-
-### Identity & Tree
-
-- `guid` — unique identifier (`sessionID:localID`)
-- `type` — node type enum
-- `name` — display name
-- `phase` — `CREATED` or `REMOVED`
-- `parentIndex` — parent GUID + position string for z-ordering
-
-### Transform
-
-- `size` — width/height vector
-- `transform` — 2×3 affine matrix
-- `rotation` — degrees
-
-### Appearance
-
-- `fillPaints[]` — fill colors/gradients/images
-- `strokePaints[]` — stroke colors
-- `effects[]` — shadows, blurs
-- `opacity` — 0–1
-- `blendMode` — `NORMAL`, `MULTIPLY`, `SCREEN`, etc.
-
-### Stroke
-
-- `strokeWeight` — stroke thickness
-- `strokeAlign` — `INSIDE` / `CENTER` / `OUTSIDE`
-- `strokeCap` — `NONE` / `ROUND` / `SQUARE` / `ARROW_LINES` / `ARROW_EQUILATERAL`
-- `strokeJoin` — `MITER` / `BEVEL` / `ROUND`
-- `dashPattern[]` — dash/gap lengths
-
-### Corners
-
-- `cornerRadius` — uniform radius
-- `cornerSmoothing` — squircle amount (0–1)
-- Per-corner radii when `rectangleCornerRadiiIndependent` is true
-
-### Visibility
-
-- `visible` — show/hide
-- `locked` — prevent editing
-
-## Type-Specific Properties
-
-### Text
-
-`fontSize`, `fontName`, `lineHeight`, `letterSpacing`, `textAlignHorizontal`, `textAlignVertical`, `textAutoResize`, `textData` (characters, style overrides, baselines, glyphs)
-
-### Vector
-
-`vectorData` (vectorNetworkBlob, normalizedSize), `fillGeometry[]`, `strokeGeometry[]`, `handleMirroring`, `arcData`
-
-### Layout (Frame)
-
-`stackMode`, `stackSpacing`, `stackPadding`, `stackJustify`, `stackCounterAlign`, `stackPrimarySizing`, `stackCounterSizing`, `stackChildPrimaryGrow`, `stackChildAlignSelf`
-
-### Component
-
-`symbolData`, `componentKey`, `componentPropDefs[]`, `symbolDescription`
-
-### Instance
-
-`overriddenSymbolID`, `symbolData.symbolOverrides[]`, `componentPropRefs[]`, `componentPropAssignments[]`
-
-## Paint
-
-```typescript
-interface Fill {
- type: 'SOLID' | 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' |
- 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND' | 'IMAGE'
- color: Color // {r, g, b, a} 0–1 floats
- opacity: number // 0–1
- visible: boolean
- blendMode?: BlendMode
- gradientStops?: GradientStop[] // for gradients
- gradientTransform?: GradientTransform // 2×3 matrix
- imageHash?: string // for image fills
- imageScaleMode?: 'FILL' | 'FIT' | 'CROP' | 'TILE'
- imageTransform?: GradientTransform
-}
-```
-
-## Effect
-
-```typescript
-interface Effect {
- type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' |
- 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR'
- color: Color
- offset: { x: number; y: number }
- radius: number
- spread: number
- visible: boolean
-}
-```
-
-## Stroke
-
-```typescript
-interface Stroke {
- color: Color
- weight: number
- opacity: number
- visible: boolean
- align: 'INSIDE' | 'CENTER' | 'OUTSIDE'
- cap?: 'NONE' | 'ROUND' | 'SQUARE' | 'ARROW_LINES' | 'ARROW_EQUILATERAL'
- join?: 'MITER' | 'BEVEL' | 'ROUND'
- dashPattern?: number[]
-}
-```
diff --git a/packages/docs/it/reference/scene-graph.md b/packages/docs/it/reference/scene-graph.md
deleted file mode 100644
index 0d445d189..000000000
--- a/packages/docs/it/reference/scene-graph.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Scene Graph
-
-## In-Memory Representation
-
-Nodes live in a flat `Map<string, Node>` keyed by `GUID` string. The tree structure is maintained via `parentIndex` references. This gives O(1) lookup by ID and efficient traversal.
-
-```typescript
-interface SceneGraph {
- nodes: Map<string, Node>
- root: string
-
- getNode(id: string): Node
- getChildren(id: string): Node[]
- getParent(id: string): Node | null
- getPages(): Node[]
-
- createNode(type: NodeType, parent: string, props: Partial<NodeChange>): Node
- updateNode(id: string, changes: Partial<NodeChange>): void
- deleteNode(id: string): void
- moveNode(id: string, newParent: string, position: string): void
- addPage(name: string): Node
- deletePage(id: string): void
- renamePage(id: string, name: string): void
-
- findByType(type: NodeType): Node[]
- findByName(pattern: string): Node[]
- hitTest(point: Vector, canvas: string): Node | null
- getNodesInRect(rect: Rect, canvas: string): Node[]
-}
-```
-
-## Pages
-
-Documents support multiple pages (`CANVAS` nodes as direct children of the `DOCUMENT` root). Each page has its own child tree and independent viewport state (panX, panY, zoom, pageColor). The editor tracks `currentPageId` and renders only the active page's children.
-
-## Sections
-
-`SECTION` nodes are top-level organizational containers (direct children of `CANVAS` only). They cannot nest inside frames or groups. Creating a section auto-adopts overlapping siblings. Sections display a title pill with luminance-adaptive text color.
-
-## Hover State
-
-The editor state tracks `hoveredNodeId` — the node currently under the cursor. The renderer draws a shape-aware hover outline (following actual geometry for ellipses, rounded rects, vectors) for visual feedback before selection.
-
-## Undo/Redo
-
-The system uses Figma's **inverse command** pattern. Each undo entry contains the forward changes and their automatically-computed inverse:
-
-| Operation | Forward | Inverse |
-|-----------|---------|---------|
-| Create node | `{guid, phase: CREATED, ...props}` | `{guid, phase: REMOVED}` |
-| Delete node | `{guid, phase: REMOVED}` | `{guid, phase: CREATED, ...allProps}` |
-| Change prop | `{guid, fill: "#F00"}` | `{guid, fill: "#00F"}` |
-| Move node | `{guid, parentIndex: newParent}` | `{guid, parentIndex: oldParent}` |
-
-Before applying any change, affected fields are snapshotted. The snapshot becomes the inverse.
-
-**Batching** — operations like drag-to-move produce hundreds of position changes per second. These are debounced into a single undo entry. `beginBatch`/`commitBatch` wraps multi-step operations.
-
-## Layout Engine (Yoga)
-
-Figma's auto-layout properties map to Yoga flexbox:
-
-| Figma Property | Yoga Equivalent |
-|---|---|
-| `stackMode: HORIZONTAL` | `flexDirection: row` |
-| `stackMode: VERTICAL` | `flexDirection: column` |
-| `stackSpacing` | `gap` |
-| `stackPadding` | `padding` |
-| `stackJustify: MIN/CENTER/MAX/SPACE_BETWEEN` | `justifyContent` |
-| `stackCounterAlign` | `alignItems` |
-| `stackPrimarySizing: FIXED/HUG/FILL` | width/height + flex-grow |
-| `stackChildPrimaryGrow` | `flexGrow` |
-| `stackChildAlignSelf` | `alignSelf` |
-| `stackPositioning: ABSOLUTE` | `position: absolute` |
-
-## Hit Testing
-
-Given a point in canvas coordinates, the scene graph returns the topmost visible node at that position. The algorithm:
-
-1. Traverse visible nodes in reverse z-order (top to bottom)
-2. Transform the test point into each node's local coordinate system
-3. Check if the point is within the node's bounds (including rotation)
-4. Return the first match
-
-For marquee selection, `getNodesInRect` returns all nodes whose bounds intersect the given rectangle.
-
-## Extended Fill Types
-
-Fills support six types: `SOLID`, `GRADIENT_LINEAR`, `GRADIENT_RADIAL`, `GRADIENT_ANGULAR`, `GRADIENT_DIAMOND`, and `IMAGE`. Gradient fills carry `gradientStops` (color + position pairs) and a `gradientTransform` (2×3 matrix). Image fills reference blob data via `imageHash` with scale modes (`FILL`, `FIT`, `CROP`, `TILE`).
-
-## Extended Stroke Properties
-
-Strokes support `cap` (`NONE`, `ROUND`, `SQUARE`, `ARROW_LINES`, `ARROW_EQUILATERAL`), `join` (`MITER`, `BEVEL`, `ROUND`), and `dashPattern` (array of dash/gap lengths) in addition to the base `color`, `weight`, `opacity`, `visible`, and `align` properties.
-
-## Coordinate System
-
-Nodes store position and size relative to their parent. To get absolute (canvas) coordinates, walk up the parent chain applying transforms. The renderer uses this to draw nested frames with correct positioning.
-
-Rotation is stored in degrees and applied as part of the 2×3 transform matrix. Snap guides and hit testing account for rotation when computing visual bounds.
diff --git a/packages/docs/it/user-guide/components.md b/packages/docs/it/user-guide/components.md
index 9b7654f11..836b6d66d 100644
--- a/packages/docs/it/user-guide/components.md
+++ b/packages/docs/it/user-guide/components.md
@@ -11,7 +11,7 @@ description: Componenti riutilizzabili, istanze, override e sincronizzazione liv
<kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> — combina 2+ componenti in un set con bordo tratteggiato viola.
## Creare istanze
-Click destro → **Crea istanza**. Appare 40 px a destra.
+Clic destro → **Crea istanza**. Appare 40 px a destra.
## Separare un'istanza
<kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> — diventa un frame senza collegamento.
@@ -22,8 +22,8 @@ Modificare un componente aggiorna tutte le istanze. Proprietà sincronizzate: di
## Override
Le istanze possono sovrascrivere proprietà specifiche senza rompere il collegamento. Proprietà sovrascrivibili: nome, testo, fontSize, fontWeight, fontFamily e proprietà visuali/layout.
-## Hit testing
-Click seleziona il componente. **Doppio click** per entrare e selezionare i figli.
+## Selezione
+Un clic seleziona il componente. **Doppio clic** per entrare e selezionare i figli.
| Azione | Mac | Windows / Linux |
|--------|-----|-----------------|
diff --git a/packages/docs/it/user-guide/context-menu.md b/packages/docs/it/user-guide/context-menu.md
index 1122fbecd..41ba53ff3 100644
--- a/packages/docs/it/user-guide/context-menu.md
+++ b/packages/docs/it/user-guide/context-menu.md
@@ -1,10 +1,10 @@
---
title: Menu contestuale
-description: Azioni del menu contestuale con click destro in OpenPencil.
+description: Azioni del menu contestuale con clic destro in OpenPencil.
---
# Menu contestuale
-Click destro sul canvas per aprire il menu contestuale. Click destro su un nodo lo seleziona prima.
+Fai clic con il pulsante destro sul canvas per aprire il menu contestuale. Se lo fai su un nodo, il nodo viene selezionato prima.
## Copia come
diff --git a/packages/docs/it/user-guide/pen-tool.md b/packages/docs/it/user-guide/pen-tool.md
index 6920c4be6..f79cb574f 100644
--- a/packages/docs/it/user-guide/pen-tool.md
+++ b/packages/docs/it/user-guide/pen-tool.md
@@ -8,8 +8,8 @@ description: Percorsi vettoriali con curve di Bézier in OpenPencil.
**P**
## Posizionare punti
-- **Click** — punto angolare (segmento rettilineo)
-- **Click + trascina** — punto curvo con maniglie tangenti di Bézier
+- **Clic** — punto angolare (segmento rettilineo)
+- **Clic + trascina** — punto curvo con maniglie tangenti di Bézier
- **Tieni premuto <kbd>Space</kbd>** mentre trascini per spostare il punto stesso
## Chiudere un percorso
diff --git a/packages/docs/pl/programmable/index.md b/packages/docs/pl/programmable/index.md
index a940d26c0..1b3509fe6 100644
--- a/packages/docs/pl/programmable/index.md
+++ b/packages/docs/pl/programmable/index.md
@@ -42,7 +42,7 @@ CLI łączy się również z uruchomioną aplikacją desktopową przez RPC, wię
Połącz Claude Code, Cursor, Windsurf lub dowolnego klienta kompatybilnego z MCP z OpenPencil. Serwer udostępnia 90 narzędzi do odczytywania, tworzenia i modyfikowania projektów — te same narzędzia, z których korzysta wbudowany czat AI. Działa przez stdio lub HTTP z obsługą sesji.
-[Serwer MCP →](./mcp-server)
+[Serwer MCP →](/programmable/mcp-server)
## Dlaczego otwarte?
diff --git a/packages/docs/pl/programmable/mcp-server.md b/packages/docs/pl/programmable/mcp-server.md
deleted file mode 100644
index 7139501d4..000000000
--- a/packages/docs/pl/programmable/mcp-server.md
+++ /dev/null
@@ -1,255 +0,0 @@
-# MCP Server
-
-OpenPencil includes an MCP (Model Context Protocol) server that lets AI coding tools — Claude Code, Cursor, Windsurf, etc. — read and modify `.fig` files headlessly.
-
-Two transports: **stdio** for MCP clients, **HTTP** for everything else.
-
-## Install
-
-```sh
-npm install -g @open-pencil/mcp
-```
-
-## Stdio (Claude Code, Cursor, etc.)
-
-Add to your MCP config (e.g. `~/.claude/settings.json` or `.cursor/mcp.json`):
-
-```json
-{
- "mcpServers": {
- "open-pencil": {
- "command": "openpencil-mcp"
- }
- }
-}
-```
-
-Or run from source without installing:
-
-::: code-group
-```json [Bun]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "bun",
- "args": ["/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-```json [Node.js]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "npx",
- "args": ["tsx", "/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-:::
-
-## HTTP
-
-For browser extensions, scripts, CI, or any HTTP client:
-
-```sh
-openpencil-mcp-http
-```
-
-Or from source: `bun packages/mcp/src/index.ts` / `npx tsx packages/mcp/src/index.ts`
-
-Security defaults (HTTP transport):
-
-- Binds to `127.0.0.1` by default (`HOST` to override)
-- `eval` tool is disabled
-- File operations are limited to `OPENPENCIL_MCP_ROOT` (defaults to current working directory)
-- CORS is disabled by default; set `OPENPENCIL_MCP_CORS_ORIGIN` to allow one origin
-- Optional auth token: `OPENPENCIL_MCP_AUTH_TOKEN` (client sends `Authorization: Bearer <token>` or `x-mcp-token`)
-
-Server starts on port 7600 (override with `PORT` env var). Endpoints:
-
-- `GET /health` — server status
-- `POST /mcp` — MCP Streamable HTTP (SSE). Sessions via `mcp-session-id` header.
-
-## Workflow
-
-1. **Open** — `open_file` to load an existing `.fig`, or `new_document` for a blank canvas
-2. **Read** — `get_page_tree`, `find_nodes`, `get_node`, `list_pages`
-3. **Create** — `create_shape`, `render` (JSX)
-4. **Modify** — `set_fill`, `set_stroke`, `set_layout`, `update_node`, `set_effects`
-5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`
-6. **Save** — `save_file` to write back to `.fig`
-
-## AI Agent Skill
-
-Teach your AI coding agent to use OpenPencil tools:
-
-```sh
-npx skills add open-pencil/skills@open-pencil
-```
-
-Works with Claude Code, Cursor, Windsurf, Codex, and any agent that supports [skills](https://skills.sh). The skill covers the CLI, MCP tools, JSX rendering, eval, and the running app's automation bridge.
-
-## Tools
-
-OpenPencil currently registers 100+ shared design tools, plus MCP-only document and prompt operations when applicable.
-
-### Document
-
-| Tool | Description |
-|------|-------------|
-| `open_file` | Open a `.fig` file for editing |
-| `save_file` | Save the current document to a `.fig` file |
-| `new_document` | Create a new empty document |
-
-### Read
-
-| Tool | Description |
-|------|-------------|
-| `get_selection` | Get currently selected nodes |
-| `get_page_tree` | Get the full node tree of the current page |
-| `get_current_page` | Get the current page name and ID |
-| `get_node` | Get detailed properties of a node by ID |
-| `find_nodes` | Find nodes by name pattern and/or type |
-| `get_components` | List all components in the document |
-| `list_pages` | List all pages |
-| `list_variables` | List design variables |
-| `list_collections` | List variable collections |
-| `list_fonts` | List fonts used in the current page |
-| `list_available_fonts` | List font families the current host can render |
-| `get_font_status` | Report requested faces, loaded sources, active substitutions, and affected nodes |
-| `page_bounds` | Get bounding box of all objects on the current page |
-| `node_bounds` | Get bounding box of a node |
-| `node_ancestors` | Get ancestor chain of a node |
-| `node_children` | Get direct children of a node |
-| `node_tree` | Get the subtree rooted at a node |
-| `node_bindings` | Get variable bindings on a node |
-
-### Create
-
-| Tool | Description |
-|------|-------------|
-| `create_shape` | Create a shape (`FRAME`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `LINE`, `STAR`, `POLYGON`, `SECTION`) |
-| `create_vector` | Create a vector node from a path string |
-| `create_slice` | Create an export slice |
-| `create_page` | Create a new page |
-| `render` | Render JSX to design nodes — create entire component trees in one call |
-| `create_component` | Convert a frame/group into a component |
-| `create_instance` | Create an instance of a component |
-| `node_to_component` | Convert an existing node into a component in-place |
-
-### Modify
-
-| Tool | Description |
-|------|-------------|
-| `set_fill` | Set fill color (hex) |
-| `set_stroke` | Set stroke color, weight, alignment |
-| `set_effects` | Add shadow or blur effects |
-| `update_node` | Update position, size, opacity, corner radius, text, font |
-| `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment |
-| `set_constraints` | Set resize constraints |
-| `set_rotation` | Set rotation angle in degrees |
-| `set_opacity` | Set opacity (0–1) |
-| `set_radius` | Set corner radius (uniform or per-corner) |
-| `set_minmax` | Set min/max width and height constraints |
-| `set_text` | Set text content of a `TEXT` node |
-| `set_font` | Set font family and weight |
-| `set_font_range` | Set font properties on a character range |
-| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |
-| `set_visible` | Show or hide a node |
-| `set_blend` | Set blend mode |
-| `set_locked` | Lock or unlock a node |
-| `set_stroke_align` | Set stroke alignment (inside/center/outside) |
-| `set_text_properties` | Set text layout: alignment, auto-resize, text case, decoration, truncation |
-| `set_layout_child` | Configure auto-layout child: sizing, grow, alignment, absolute positioning |
-| `node_move` | Move a node to a new position |
-| `node_resize` | Resize a node |
-| `node_replace_with` | Replace a node with another node |
-| `arrange` | Align or distribute selected nodes |
-
-### Structure
-
-| Tool | Description |
-|------|-------------|
-| `delete_node` | Delete a node |
-| `clone_node` | Duplicate a node |
-| `rename_node` | Rename a node |
-| `reparent_node` | Move a node into a different parent |
-| `select_nodes` | Select nodes by ID |
-| `group_nodes` | Group nodes |
-| `ungroup_node` | Ungroup a group |
-| `flatten_nodes` | Flatten nodes into a single vector |
-| `boolean_union` | Boolean union of two or more nodes |
-| `boolean_subtract` | Boolean subtraction |
-| `boolean_intersect` | Boolean intersection |
-| `boolean_exclude` | Boolean exclusion |
-
-### Vector Path
-
-| Tool | Description |
-|------|-------------|
-| `path_get` | Get the path data of a vector node |
-| `path_set` | Set the path data of a vector node |
-| `path_scale` | Scale a vector path |
-| `path_flip` | Flip a vector path horizontally or vertically |
-| `path_move` | Translate a vector path |
-
-### Export
-
-| Tool | Description |
-|------|-------------|
-| `export_image` | Export nodes as PNG, JPG, or WEBP. Returns base64-encoded image data |
-| `export_svg` | Export nodes as SVG markup |
-
-### Viewport
-
-| Tool | Description |
-|------|-------------|
-| `viewport_get` | Get current viewport position and zoom level |
-| `viewport_set` | Set viewport position and zoom |
-| `viewport_zoom_to_fit` | Zoom viewport to fit specified nodes |
-
-### Variables
-
-| Tool | Description |
-|------|-------------|
-| `get_variable` | Get a variable by ID or name |
-| `find_variables` | Find variables by name pattern or type |
-| `create_variable` | Create a new variable in a collection |
-| `set_variable` | Set a variable value in a mode |
-| `delete_variable` | Delete a variable |
-| `bind_variable` | Bind a variable to a node property |
-| `get_collection` | Get a variable collection by ID or name |
-| `create_collection` | Create a new variable collection |
-| `delete_collection` | Delete a variable collection |
-
-### Analyze
-
-| Tool | Description |
-|------|-------------|
-| `analyze_colors` | Analyze color palette usage across the document |
-| `analyze_typography` | Analyze font/size/weight distribution |
-| `analyze_spacing` | Analyze gap and padding values |
-| `analyze_clusters` | Detect repeated patterns (potential components) |
-
-### Diff
-
-| Tool | Description |
-|------|-------------|
-| `diff_create` | Create a snapshot of the current document state |
-| `diff_show` | Show differences between the current state and a snapshot |
-
-### Navigation
-
-| Tool | Description |
-|------|-------------|
-| `switch_page` | Switch to a page by name or ID |
-
-### Escape Hatch
-
-| Tool | Description |
-|------|-------------|
-| `eval` | Execute JavaScript with full Figma Plugin API access |
-
-Note: `eval` is available over stdio, but disabled in HTTP mode for security.
diff --git a/packages/docs/pl/programmable/sdk/api/advanced/use-number-field.md b/packages/docs/pl/programmable/sdk/api/advanced/use-number-field.md
deleted file mode 100644
index 77d8a0775..000000000
--- a/packages/docs/pl/programmable/sdk/api/advanced/use-number-field.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: useNumberField
-description: Context helper for custom NumberField descendants.
----
-
-# useNumberField
-
-The generated `useNumberField()` reference currently shares one canonical source.
-
-[Open the useNumberField reference](/programmable/sdk/api/advanced/use-number-field)
diff --git a/packages/docs/pl/reference/cli.md b/packages/docs/pl/reference/cli.md
deleted file mode 100644
index 7335121f8..000000000
--- a/packages/docs/pl/reference/cli.md
+++ /dev/null
@@ -1,184 +0,0 @@
----
-title: CLI Reference
-description: Complete reference for all openpencil commands, options, and flags.
----
-
-# CLI Reference
-
-All commands accept a `.fig` file as a positional argument. When omitted, the CLI connects to the running desktop app via RPC.
-
-## info
-
-Show document info — pages, node counts, fonts, file size.
-
-```sh
-openpencil info [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## tree
-
-Print the node hierarchy.
-
-```sh
-openpencil tree [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--page` | Page name (default: first page) |
-| `--depth` | Max depth (default: unlimited) |
-| `--json` | Output as JSON |
-
-## find
-
-Search nodes by name or type.
-
-```sh
-openpencil find [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--name` | Node name (partial match, case-insensitive) |
-| `--type` | Node type: `FRAME`, `TEXT`, `RECTANGLE`, `INSTANCE`, etc. |
-| `--page` | Page name (default: all pages) |
-| `--limit` | Max results (default: 100) |
-| `--json` | Output as JSON |
-
-## node
-
-Show detailed properties of a node.
-
-```sh
-openpencil node [file] --id <id> [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--id` | **Required.** Node ID (e.g. `1:23`) |
-| `--json` | Output as JSON |
-
-## pages
-
-List all pages in the document.
-
-```sh
-openpencil pages [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## variables
-
-List design variables and collections.
-
-```sh
-openpencil variables [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--collection` | Filter by collection name |
-| `--type` | Filter by type: `COLOR`, `FLOAT`, `STRING`, `BOOLEAN` |
-| `--json` | Output as JSON |
-
-## export
-
-Export to PNG, JPG, WEBP, SVG, or JSX.
-
-```sh
-openpencil export [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--format` | `-f` | `png` (default), `jpg`, `webp`, `svg`, `jsx` |
-| `--output` | `-o` | Output file path (default: `<name>.<format>`) |
-| `--scale` | `-s` | Export scale (default: 1) |
-| `--quality` | `-q` | Quality 0–100, JPG/WEBP only (default: 90) |
-| `--page` | | Page name (default: first page) |
-| `--node` | | Node ID to export (default: all top-level nodes) |
-| `--style` | | JSX style: `openpencil` (default), `tailwind` |
-| `--thumbnail` | | Export page thumbnail instead of full render |
-| `--width` | | Thumbnail width (default: 1920) |
-| `--height` | | Thumbnail height (default: 1080) |
-
-## eval
-
-Execute JavaScript with the Figma Plugin API.
-
-```sh
-openpencil eval [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--code` | `-c` | JavaScript code to execute |
-| `--stdin` | | Read code from stdin |
-| `--write` | `-w` | Write changes back to the input file |
-| `--output` | `-o` | Write to a different file |
-| `--json` | | Output as JSON |
-| `--quiet` | `-q` | Suppress output |
-
-## analyze colors
-
-Analyze color palette usage across the document.
-
-```sh
-openpencil analyze colors [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max colors to show (default: 30) |
-| `--threshold` | Distance threshold for clustering similar colors, 0–50 (default: 15) |
-| `--similar` | Show similar color clusters |
-| `--json` | Output as JSON |
-
-## analyze typography
-
-Analyze font family, size, and weight distribution.
-
-```sh
-openpencil analyze typography [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--group-by` | Group by: `family`, `size`, `weight` (default: show all styles) |
-| `--limit` | Max styles to show (default: 30) |
-| `--json` | Output as JSON |
-
-## analyze spacing
-
-Analyze gap and padding values across auto-layout frames.
-
-```sh
-openpencil analyze spacing [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--grid` | Base grid size to check against (default: 8) |
-| `--json` | Output as JSON |
-
-## analyze clusters
-
-Find repeated node patterns — potential components.
-
-```sh
-openpencil analyze clusters [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max clusters to show (default: 20) |
-| `--min-size` | Min node size in px (default: 30) |
-| `--min-count` | Min instances to form a cluster (default: 2) |
-| `--json` | Output as JSON |
diff --git a/packages/docs/pl/reference/file-format.md b/packages/docs/pl/reference/file-format.md
deleted file mode 100644
index ea94b8fb6..000000000
--- a/packages/docs/pl/reference/file-format.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# File Format
-
-## .fig File Structure
-
-A `.fig` file is a ZIP archive containing a Kiwi-encoded binary message:
-
-| Offset | Content |
-|--------|---------|
-| 0 | Magic header `fig-kiwi` (8 bytes) |
-| 8 | Version (4 bytes, uint32 LE) |
-| 12 | Schema length (4 bytes, uint32 LE) |
-| 16 | Compressed Kiwi schema |
-| … | Message length (4 bytes, uint32 LE) |
-| … | Compressed Kiwi message — `NodeChange[]` (entire document) |
-| … | Blob data — images, vector networks, fonts |
-
-## Import Pipeline
-
-```
-.fig file → parse header → decompress Zstd → decode Kiwi schema
- → decode message → NodeChange[] → build SceneGraph
- → resolve blob refs → render on canvas
-```
-
-## Export Pipeline
-
-```
-SceneGraph → NodeChange[] → Kiwi encode → compress (Zstd/deflate)
- → build ZIP (header + schema + message + thumbnail.png)
- → write .fig file
-```
-
-Export uses <kbd>⌘</kbd><kbd>S</kbd> (Save) and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> (Save As) with native OS dialogs on the desktop app. The exported file includes a `thumbnail.png` required by Figma for file preview.
-
-Compression uses Zstd via Tauri Rust command on desktop, with deflate fallback in the browser.
-
-## Kiwi Binary Codec
-
-The codec handles Figma's 194-definition Kiwi schema with `NodeChange` as the central type (~390 fields). Key components:
-
-| Module | Purpose |
-|--------|---------|
-| `kiwi-schema` | Kiwi parser (from [evanw/kiwi](https://github.com/nicolo-ribaudo/kiwi)), patched for ESM and sparse field IDs |
-| `codec.ts` | Encode/decode messages using the Kiwi schema |
-| `protocol.ts` | Wire format parsing and message type detection |
-| `schema.ts` | 194 message/enum/struct definitions |
-
-### Sparse Field IDs
-
-Figma's schema uses non-contiguous field IDs (e.g. 1, 2, 5, 10 with gaps). The kiwi-schema parser handles this correctly.
-
-### Compression
-
-`.fig` files use Zstd compression for both the schema and message payloads. Decompression uses the `fzstd` library. For export, Zstd compression is offloaded to a Tauri Rust command on the desktop app (better performance, correct frame headers). In the browser, deflate via `fflate` is used as a fallback.
-
-## Supported Formats
-
-| Format | Import | Export |
-|--------|--------|--------|
-| `.fig` (Figma) | ✅ | ✅ |
-| `.svg` | Planned | Planned |
-| `.png` | Planned | Planned |
-| `.pdf` | — | Planned |
-
-## Clipboard Format
-
-Copy/paste uses the same Kiwi binary encoding:
-
-1. **Copy** — encode selected `NodeChange[]` to Kiwi binary, compress, write to clipboard as `application/x-figma-design` MIME type
-2. **Paste** — read clipboard, decompress, decode Kiwi binary, create nodes in scene graph
-
-Encoding happens synchronously in the copy event handler (not async Clipboard API) for browser compatibility. This enables bidirectional clipboard between OpenPencil and Figma.
diff --git a/packages/docs/pl/reference/keyboard-shortcuts.md b/packages/docs/pl/reference/keyboard-shortcuts.md
deleted file mode 100644
index 727d07660..000000000
--- a/packages/docs/pl/reference/keyboard-shortcuts.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Skróty klawiszowe
-
-Pełna mapa skrótów kompatybilnych z Figmą.
-
-::: tip Symbol Legend
-⌘ = Cmd (Mac) / Ctrl (Win/Linux) · ⇧ = Shift · ⌥ = Alt/Option · ⌃ = Ctrl · ⌫ = Backspace
-:::
-
-## Tools
-
-| Key | Tool | Status |
-|-----|------|--------|
-| <kbd>V</kbd> | Move/Select | ✅ |
-| <kbd>K</kbd> | Scale | 🔲 |
-| <kbd>H</kbd> | Hand | ✅ |
-| <kbd>F</kbd> | Frame | ✅ |
-| <kbd>S</kbd> | Section | ✅ |
-| <kbd>R</kbd> | Rectangle | ✅ |
-| <kbd>O</kbd> | Ellipse | ✅ |
-| <kbd>L</kbd> | Line | ✅ |
-| — | Polygon | ✅ (flyout only) |
-| — | Star | ✅ (flyout only) |
-| <kbd>⇧</kbd><kbd>L</kbd> | Arrow | 🔲 |
-| <kbd>P</kbd> | Pen | ✅ |
-| <kbd>⇧</kbd><kbd>P</kbd> | Pencil | 🔲 |
-| <kbd>T</kbd> | Text | ✅ |
-| <kbd>C</kbd> | Comment | 🔲 |
-| <kbd>I</kbd> | Eyedropper | 🔲 |
-
-## File
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>N</kbd> | New Window | 🔲 |
-| <kbd>⌘</kbd><kbd>O</kbd> | Open File | ✅ |
-| <kbd>⌘</kbd><kbd>W</kbd> | Close Tab | 🔲 |
-| <kbd>⌘</kbd><kbd>S</kbd> | Save | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Save As | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Export… | ✅ |
-
-## Edit
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>Z</kbd> | Undo | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd> | Redo | ✅ |
-| <kbd>⌘</kbd><kbd>X</kbd> | Cut | ✅ |
-| <kbd>⌘</kbd><kbd>C</kbd> | Copy | ✅ |
-| <kbd>⌘</kbd><kbd>V</kbd> | Paste | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Over Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>D</kbd> | Duplicate | ✅ |
-| <kbd>⌫</kbd> | Delete | ✅ |
-| <kbd>⌘</kbd><kbd>A</kbd> | Select All | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Select Inverse | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Copy Properties | 🔲 |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Paste Properties | 🔲 |
-
-## View
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>'</kbd> | Pixel Grid | 🔲 |
-| <kbd>⌃</kbd><kbd>G</kbd> | Layout Guides | 🔲 |
-| <kbd>⇧</kbd><kbd>R</kbd> | Rulers | 🔲 |
-| <kbd>⌘</kbd><kbd>\\</kbd> | Show/Hide UI | 🔲 |
-| <kbd>⌘</kbd><kbd>=</kbd> | Zoom In | ✅ |
-| <kbd>⌘</kbd><kbd>-</kbd> | Zoom Out | ✅ |
-| <kbd>⌘</kbd><kbd>0</kbd> | Zoom to 100% | ✅ |
-| <kbd>⌘</kbd><kbd>1</kbd> | Zoom to Fit | ✅ |
-| <kbd>⌘</kbd><kbd>2</kbd> | Zoom to Selection | ✅ |
-| <kbd>⇧</kbd><kbd>1</kbd> | Zoom to Fit (alt) | ✅ |
-| <kbd>⇧</kbd><kbd>2</kbd> | Zoom to Selection (alt) | ✅ |
-| <kbd>⌘</kbd><kbd>J</kbd> | Toggle AI Chat | ✅ |
-
-## Object
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>G</kbd> | Frame Selection | 🔲 |
-| <kbd>⌘</kbd><kbd>G</kbd> | Group Selection | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>G</kbd> | Ungroup | ✅ |
-| <kbd>⇧</kbd><kbd>A</kbd> | Add Auto Layout | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> | Create Component Set | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> | Detach Instance | ✅ |
-| <kbd>⌘</kbd><kbd>R</kbd> | Zmień nazwę zaznaczenia | ✅ |
-| <kbd>⌘</kbd><kbd>]</kbd> | Bring Forward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | Bring to Front | 🔲 |
-| <kbd>]</kbd> | Bring to Front | ✅ |
-| <kbd>⌘</kbd><kbd>[</kbd> | Send Backward | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>[</kbd> | Send to Back | 🔲 |
-| <kbd>[</kbd> | Send to Back | ✅ |
-| <kbd>⇧</kbd><kbd>H</kbd> | Flip Horizontal | ✅ |
-| <kbd>⇧</kbd><kbd>V</kbd> | Flip Vertical | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>H</kbd> | Toggle Visibility | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>L</kbd> | Toggle Lock | ✅ |
-| <kbd>⌘</kbd><kbd>E</kbd> | Flatten | 🔲 |
-
-## Text
-
-| Shortcut | Action | Status |
-|----------|--------|--------|
-| <kbd>⌘</kbd><kbd>B</kbd> | Bold | ✅ |
-| <kbd>⌘</kbd><kbd>I</kbd> | Italic | ✅ |
-| <kbd>⌘</kbd><kbd>U</kbd> | Underline | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>X</kbd> | Strikethrough | 🔲 |
-
-## Canvas Interaction
-
-| Input | Action | Status |
-|-------|--------|--------|
-| Click | Select node | ✅ |
-| <kbd>Shift</kbd>+Click | Add/remove from selection | ✅ |
-| <kbd>Alt</kbd>+Drag | Duplicate and move | ✅ |
-| <kbd>Shift</kbd>+Drag (draw) | Constrain to square/circle | ✅ |
-| <kbd>Shift</kbd>+Drag (resize) | Maintain aspect ratio | ✅ |
-| <kbd>Shift</kbd>+Drag (rotate) | Snap to 15° | ✅ |
-| Middle mouse drag | Pan | ✅ |
-| Scroll | Pan | ✅ |
-| <kbd>Ctrl</kbd>+Scroll / Pinch | Zoom | ✅ |
-| Double-click text | Edit text inline | ✅ |
-| Drag onto frame | Reparent into frame | ✅ |
-| <kbd>Escape</kbd> | Deselect / Cancel | ✅ |
diff --git a/packages/docs/pl/reference/node-types.md b/packages/docs/pl/reference/node-types.md
deleted file mode 100644
index f6024302d..000000000
--- a/packages/docs/pl/reference/node-types.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# Node Types
-
-The scene graph supports 28 node types from Figma's Kiwi schema. Each node is identified by a GUID (`sessionID:localID`) and has a parent reference via `parentIndex`. The OpenPencil engine's `NodeType` union currently uses 17 of these types.
-
-## Type Table
-
-28 Figma schema types + 1 synthetic engine type. Types marked ✅ are in the engine's `NodeType` union (17 total).
-
-| Type | ID | Description | Engine |
-|------|----|-------------|--------|
-| `DOCUMENT` | 1 | Root node, one per file | — |
-| `CANVAS` | 2 | Page | ✅ |
-| `GROUP` | 3 | Group container | ✅ |
-| `FRAME` | 4 | Primary container (artboard), supports auto-layout | ✅ |
-| `BOOLEAN_OPERATION` | 5 | Union/subtract/intersect/exclude result | |
-| `VECTOR` | 6 | Freeform vector path | ✅ |
-| `STAR` | 7 | Star shape | ✅ |
-| `LINE` | 8 | Line | ✅ |
-| `ELLIPSE` | 9 | Ellipse/circle, supports arc data | ✅ |
-| `RECTANGLE` | 10 | Rectangle | ✅ |
-| `REGULAR_POLYGON` | 11 | Regular polygon (3–12 sides, engine uses `POLYGON`) | ✅ |
-| `ROUNDED_RECTANGLE` | 12 | Rectangle with smooth corners | ✅ |
-| `TEXT` | 13 | Text with rich formatting | ✅ |
-| `SLICE` | 14 | Export region | |
-| `SYMBOL` | 15 | Component (main, engine uses `COMPONENT`) | ✅ |
-| `INSTANCE` | 16 | Component instance | ✅ |
-| `STICKY` | 17 | FigJam sticky note | |
-| `SHAPE_WITH_TEXT` | 18 | FigJam shape | ✅ |
-| `CONNECTOR` | 19 | Connector line between nodes | ✅ |
-| `CODE_BLOCK` | 20 | FigJam code block | |
-| `WIDGET` | 21 | Plugin widget | |
-| `STAMP` | 22 | FigJam stamp | |
-| `MEDIA` | 23 | Video/GIF | |
-| `HIGHLIGHT` | 24 | FigJam highlight | |
-| `SECTION` | 25 | Canvas section (organizational, top-level only) | ✅ |
-| `SECTION_OVERLAY` | 26 | Section overlay | |
-| `WASHI_TAPE` | 27 | FigJam washi tape | |
-| `VARIABLE` | 28 | Variable definition node | |
-| `COMPONENT_SET` | — | Variant group container (synthetic, mapped from `SYMBOL`) | ✅ |
-
-### Engine NodeType Union (17 types)
-
-The engine's `NodeType` uses simplified names. Some differ from the Kiwi schema:
-- `COMPONENT` → Kiwi `SYMBOL` (ID 15)
-- `COMPONENT_SET` → variant group container (no dedicated Kiwi ID, mapped from `SYMBOL` with variants)
-- `POLYGON` → Kiwi `REGULAR_POLYGON` (ID 11)
-
-```typescript
-type NodeType =
- | 'CANVAS' | 'FRAME' | 'RECTANGLE' | 'ROUNDED_RECTANGLE'
- | 'ELLIPSE' | 'TEXT' | 'LINE' | 'STAR' | 'POLYGON'
- | 'VECTOR' | 'GROUP' | 'SECTION'
- | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'
- | 'CONNECTOR' | 'SHAPE_WITH_TEXT'
-```
-
-## Node Hierarchy
-
-```
-Document
-├── Canvas (Page 1)
-│ ├── Section (top-level only, title pill, auto-adopts siblings)
-│ │ ├── Frame
-│ │ │ └── ...children
-│ │ └── Rectangle
-│ ├── Frame
-│ │ ├── Rectangle
-│ │ ├── Text
-│ │ └── Frame (nested)
-│ │ ├── Ellipse
-│ │ └── Instance (→ references Component)
-│ ├── Component
-│ │ └── ...children
-│ ├── Group
-│ │ └── ...children
-│ └── BooleanOperation
-│ └── ...operand shapes
-└── Canvas (Page 2)
- └── ...
-```
-
-## Core Properties
-
-Every node carries these fields (subset of `NodeChange`):
-
-### Identity & Tree
-
-- `guid` — unique identifier (`sessionID:localID`)
-- `type` — node type enum
-- `name` — display name
-- `phase` — `CREATED` or `REMOVED`
-- `parentIndex` — parent GUID + position string for z-ordering
-
-### Transform
-
-- `size` — width/height vector
-- `transform` — 2×3 affine matrix
-- `rotation` — degrees
-
-### Appearance
-
-- `fillPaints[]` — fill colors/gradients/images
-- `strokePaints[]` — stroke colors
-- `effects[]` — shadows, blurs
-- `opacity` — 0–1
-- `blendMode` — `NORMAL`, `MULTIPLY`, `SCREEN`, etc.
-
-### Stroke
-
-- `strokeWeight` — stroke thickness
-- `strokeAlign` — `INSIDE` / `CENTER` / `OUTSIDE`
-- `strokeCap` — `NONE` / `ROUND` / `SQUARE` / `ARROW_LINES` / `ARROW_EQUILATERAL`
-- `strokeJoin` — `MITER` / `BEVEL` / `ROUND`
-- `dashPattern[]` — dash/gap lengths
-
-### Corners
-
-- `cornerRadius` — uniform radius
-- `cornerSmoothing` — squircle amount (0–1)
-- Per-corner radii when `rectangleCornerRadiiIndependent` is true
-
-### Visibility
-
-- `visible` — show/hide
-- `locked` — prevent editing
-
-## Type-Specific Properties
-
-### Text
-
-`fontSize`, `fontName`, `lineHeight`, `letterSpacing`, `textAlignHorizontal`, `textAlignVertical`, `textAutoResize`, `textData` (characters, style overrides, baselines, glyphs)
-
-### Vector
-
-`vectorData` (vectorNetworkBlob, normalizedSize), `fillGeometry[]`, `strokeGeometry[]`, `handleMirroring`, `arcData`
-
-### Layout (Frame)
-
-`stackMode`, `stackSpacing`, `stackPadding`, `stackJustify`, `stackCounterAlign`, `stackPrimarySizing`, `stackCounterSizing`, `stackChildPrimaryGrow`, `stackChildAlignSelf`
-
-### Component
-
-`symbolData`, `componentKey`, `componentPropDefs[]`, `symbolDescription`
-
-### Instance
-
-`overriddenSymbolID`, `symbolData.symbolOverrides[]`, `componentPropRefs[]`, `componentPropAssignments[]`
-
-## Paint
-
-```typescript
-interface Fill {
- type: 'SOLID' | 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' |
- 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND' | 'IMAGE'
- color: Color // {r, g, b, a} 0–1 floats
- opacity: number // 0–1
- visible: boolean
- blendMode?: BlendMode
- gradientStops?: GradientStop[] // for gradients
- gradientTransform?: GradientTransform // 2×3 matrix
- imageHash?: string // for image fills
- imageScaleMode?: 'FILL' | 'FIT' | 'CROP' | 'TILE'
- imageTransform?: GradientTransform
-}
-```
-
-## Effect
-
-```typescript
-interface Effect {
- type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' |
- 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR'
- color: Color
- offset: { x: number; y: number }
- radius: number
- spread: number
- visible: boolean
-}
-```
-
-## Stroke
-
-```typescript
-interface Stroke {
- color: Color
- weight: number
- opacity: number
- visible: boolean
- align: 'INSIDE' | 'CENTER' | 'OUTSIDE'
- cap?: 'NONE' | 'ROUND' | 'SQUARE' | 'ARROW_LINES' | 'ARROW_EQUILATERAL'
- join?: 'MITER' | 'BEVEL' | 'ROUND'
- dashPattern?: number[]
-}
-```
diff --git a/packages/docs/pl/reference/scene-graph.md b/packages/docs/pl/reference/scene-graph.md
deleted file mode 100644
index 0d445d189..000000000
--- a/packages/docs/pl/reference/scene-graph.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Scene Graph
-
-## In-Memory Representation
-
-Nodes live in a flat `Map<string, Node>` keyed by `GUID` string. The tree structure is maintained via `parentIndex` references. This gives O(1) lookup by ID and efficient traversal.
-
-```typescript
-interface SceneGraph {
- nodes: Map<string, Node>
- root: string
-
- getNode(id: string): Node
- getChildren(id: string): Node[]
- getParent(id: string): Node | null
- getPages(): Node[]
-
- createNode(type: NodeType, parent: string, props: Partial<NodeChange>): Node
- updateNode(id: string, changes: Partial<NodeChange>): void
- deleteNode(id: string): void
- moveNode(id: string, newParent: string, position: string): void
- addPage(name: string): Node
- deletePage(id: string): void
- renamePage(id: string, name: string): void
-
- findByType(type: NodeType): Node[]
- findByName(pattern: string): Node[]
- hitTest(point: Vector, canvas: string): Node | null
- getNodesInRect(rect: Rect, canvas: string): Node[]
-}
-```
-
-## Pages
-
-Documents support multiple pages (`CANVAS` nodes as direct children of the `DOCUMENT` root). Each page has its own child tree and independent viewport state (panX, panY, zoom, pageColor). The editor tracks `currentPageId` and renders only the active page's children.
-
-## Sections
-
-`SECTION` nodes are top-level organizational containers (direct children of `CANVAS` only). They cannot nest inside frames or groups. Creating a section auto-adopts overlapping siblings. Sections display a title pill with luminance-adaptive text color.
-
-## Hover State
-
-The editor state tracks `hoveredNodeId` — the node currently under the cursor. The renderer draws a shape-aware hover outline (following actual geometry for ellipses, rounded rects, vectors) for visual feedback before selection.
-
-## Undo/Redo
-
-The system uses Figma's **inverse command** pattern. Each undo entry contains the forward changes and their automatically-computed inverse:
-
-| Operation | Forward | Inverse |
-|-----------|---------|---------|
-| Create node | `{guid, phase: CREATED, ...props}` | `{guid, phase: REMOVED}` |
-| Delete node | `{guid, phase: REMOVED}` | `{guid, phase: CREATED, ...allProps}` |
-| Change prop | `{guid, fill: "#F00"}` | `{guid, fill: "#00F"}` |
-| Move node | `{guid, parentIndex: newParent}` | `{guid, parentIndex: oldParent}` |
-
-Before applying any change, affected fields are snapshotted. The snapshot becomes the inverse.
-
-**Batching** — operations like drag-to-move produce hundreds of position changes per second. These are debounced into a single undo entry. `beginBatch`/`commitBatch` wraps multi-step operations.
-
-## Layout Engine (Yoga)
-
-Figma's auto-layout properties map to Yoga flexbox:
-
-| Figma Property | Yoga Equivalent |
-|---|---|
-| `stackMode: HORIZONTAL` | `flexDirection: row` |
-| `stackMode: VERTICAL` | `flexDirection: column` |
-| `stackSpacing` | `gap` |
-| `stackPadding` | `padding` |
-| `stackJustify: MIN/CENTER/MAX/SPACE_BETWEEN` | `justifyContent` |
-| `stackCounterAlign` | `alignItems` |
-| `stackPrimarySizing: FIXED/HUG/FILL` | width/height + flex-grow |
-| `stackChildPrimaryGrow` | `flexGrow` |
-| `stackChildAlignSelf` | `alignSelf` |
-| `stackPositioning: ABSOLUTE` | `position: absolute` |
-
-## Hit Testing
-
-Given a point in canvas coordinates, the scene graph returns the topmost visible node at that position. The algorithm:
-
-1. Traverse visible nodes in reverse z-order (top to bottom)
-2. Transform the test point into each node's local coordinate system
-3. Check if the point is within the node's bounds (including rotation)
-4. Return the first match
-
-For marquee selection, `getNodesInRect` returns all nodes whose bounds intersect the given rectangle.
-
-## Extended Fill Types
-
-Fills support six types: `SOLID`, `GRADIENT_LINEAR`, `GRADIENT_RADIAL`, `GRADIENT_ANGULAR`, `GRADIENT_DIAMOND`, and `IMAGE`. Gradient fills carry `gradientStops` (color + position pairs) and a `gradientTransform` (2×3 matrix). Image fills reference blob data via `imageHash` with scale modes (`FILL`, `FIT`, `CROP`, `TILE`).
-
-## Extended Stroke Properties
-
-Strokes support `cap` (`NONE`, `ROUND`, `SQUARE`, `ARROW_LINES`, `ARROW_EQUILATERAL`), `join` (`MITER`, `BEVEL`, `ROUND`), and `dashPattern` (array of dash/gap lengths) in addition to the base `color`, `weight`, `opacity`, `visible`, and `align` properties.
-
-## Coordinate System
-
-Nodes store position and size relative to their parent. To get absolute (canvas) coordinates, walk up the parent chain applying transforms. The renderer uses this to draw nested frames with correct positioning.
-
-Rotation is stored in degrees and applied as part of the 2×3 transform matrix. Snap guides and hit testing account for rotation when computing visual bounds.
diff --git a/packages/docs/pl/user-guide/pen-tool.md b/packages/docs/pl/user-guide/pen-tool.md
index 310b6f6cd..36a397266 100644
--- a/packages/docs/pl/user-guide/pen-tool.md
+++ b/packages/docs/pl/user-guide/pen-tool.md
@@ -1,6 +1,6 @@
---
title: Narzędzie pióro
-description: Ścieżki wektorowe z krzywymi Béziera in OpenPencil.
+description: Ścieżki wektorowe z krzywymi Béziera w OpenPencil.
---
# Narzędzie pióro
@@ -8,15 +8,15 @@ description: Ścieżki wektorowe z krzywymi Béziera in OpenPencil.
**P**
## Stawianie punktów
-- **Click** — corner point
-- **Click + drag** — curve point with Bézier tangent handles
- - **Hold <kbd>Space</kbd>** while dragging to move the point itself
+- **Kliknięcie** — umieszcza punkt narożny
+- **Kliknięcie + przeciągnięcie** — umieszcza punkt krzywej z uchwytami stycznych Béziera
+ - **Przytrzymaj <kbd>Space</kbd>** podczas przeciągania, aby przesunąć sam punkt
## Zamykanie ścieżki
-Click the first point to close into a loop.
+Kliknij pierwszy punkt, aby zamknąć ścieżkę w pętlę.
## Otwarte ścieżki
-<kbd>Escape</kbd> to commit as open path.
+Naciśnij <kbd>Escape</kbd>, aby zatwierdzić otwartą ścieżkę.
## Sieci wektorowe
Ścieżki w OpenPencil korzystają z sieci wektorowych — elastycznego modelu obsługującego rozgałęzione ścieżki i złożoną topologię. Jest to ten sam model, co w Figmie, więc ścieżki zachowują pełną kompatybilność z plikami .fig.
diff --git a/packages/docs/ru/programmable/index.md b/packages/docs/ru/programmable/index.md
index f5f75e70e..96c73b599 100644
--- a/packages/docs/ru/programmable/index.md
+++ b/packages/docs/ru/programmable/index.md
@@ -42,7 +42,7 @@ CLI также подключается к запущенному настоль
Подключите Claude Code, Cursor, Windsurf или любой MCP-совместимый клиент к OpenPencil. Сервер предоставляет 90 инструментов для чтения, создания и изменения дизайна — те же инструменты, которые использует встроенный ИИ-чат. Работает через stdio или HTTP с поддержкой сессий.
-[MCP-сервер →](./mcp-server)
+[MCP-сервер →](/programmable/mcp-server)
## Почему открытый?
diff --git a/packages/docs/ru/programmable/mcp-server.md b/packages/docs/ru/programmable/mcp-server.md
deleted file mode 100644
index 7139501d4..000000000
--- a/packages/docs/ru/programmable/mcp-server.md
+++ /dev/null
@@ -1,255 +0,0 @@
-# MCP Server
-
-OpenPencil includes an MCP (Model Context Protocol) server that lets AI coding tools — Claude Code, Cursor, Windsurf, etc. — read and modify `.fig` files headlessly.
-
-Two transports: **stdio** for MCP clients, **HTTP** for everything else.
-
-## Install
-
-```sh
-npm install -g @open-pencil/mcp
-```
-
-## Stdio (Claude Code, Cursor, etc.)
-
-Add to your MCP config (e.g. `~/.claude/settings.json` or `.cursor/mcp.json`):
-
-```json
-{
- "mcpServers": {
- "open-pencil": {
- "command": "openpencil-mcp"
- }
- }
-}
-```
-
-Or run from source without installing:
-
-::: code-group
-```json [Bun]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "bun",
- "args": ["/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-```json [Node.js]
-{
- "mcpServers": {
- "open-pencil": {
- "command": "npx",
- "args": ["tsx", "/path/to/open-pencil/packages/mcp/src/stdio.ts"]
- }
- }
-}
-```
-:::
-
-## HTTP
-
-For browser extensions, scripts, CI, or any HTTP client:
-
-```sh
-openpencil-mcp-http
-```
-
-Or from source: `bun packages/mcp/src/index.ts` / `npx tsx packages/mcp/src/index.ts`
-
-Security defaults (HTTP transport):
-
-- Binds to `127.0.0.1` by default (`HOST` to override)
-- `eval` tool is disabled
-- File operations are limited to `OPENPENCIL_MCP_ROOT` (defaults to current working directory)
-- CORS is disabled by default; set `OPENPENCIL_MCP_CORS_ORIGIN` to allow one origin
-- Optional auth token: `OPENPENCIL_MCP_AUTH_TOKEN` (client sends `Authorization: Bearer <token>` or `x-mcp-token`)
-
-Server starts on port 7600 (override with `PORT` env var). Endpoints:
-
-- `GET /health` — server status
-- `POST /mcp` — MCP Streamable HTTP (SSE). Sessions via `mcp-session-id` header.
-
-## Workflow
-
-1. **Open** — `open_file` to load an existing `.fig`, or `new_document` for a blank canvas
-2. **Read** — `get_page_tree`, `find_nodes`, `get_node`, `list_pages`
-3. **Create** — `create_shape`, `render` (JSX)
-4. **Modify** — `set_fill`, `set_stroke`, `set_layout`, `update_node`, `set_effects`
-5. **Structure** — `reparent_node`, `group_nodes`, `clone_node`, `delete_node`
-6. **Save** — `save_file` to write back to `.fig`
-
-## AI Agent Skill
-
-Teach your AI coding agent to use OpenPencil tools:
-
-```sh
-npx skills add open-pencil/skills@open-pencil
-```
-
-Works with Claude Code, Cursor, Windsurf, Codex, and any agent that supports [skills](https://skills.sh). The skill covers the CLI, MCP tools, JSX rendering, eval, and the running app's automation bridge.
-
-## Tools
-
-OpenPencil currently registers 100+ shared design tools, plus MCP-only document and prompt operations when applicable.
-
-### Document
-
-| Tool | Description |
-|------|-------------|
-| `open_file` | Open a `.fig` file for editing |
-| `save_file` | Save the current document to a `.fig` file |
-| `new_document` | Create a new empty document |
-
-### Read
-
-| Tool | Description |
-|------|-------------|
-| `get_selection` | Get currently selected nodes |
-| `get_page_tree` | Get the full node tree of the current page |
-| `get_current_page` | Get the current page name and ID |
-| `get_node` | Get detailed properties of a node by ID |
-| `find_nodes` | Find nodes by name pattern and/or type |
-| `get_components` | List all components in the document |
-| `list_pages` | List all pages |
-| `list_variables` | List design variables |
-| `list_collections` | List variable collections |
-| `list_fonts` | List fonts used in the current page |
-| `list_available_fonts` | List font families the current host can render |
-| `get_font_status` | Report requested faces, loaded sources, active substitutions, and affected nodes |
-| `page_bounds` | Get bounding box of all objects on the current page |
-| `node_bounds` | Get bounding box of a node |
-| `node_ancestors` | Get ancestor chain of a node |
-| `node_children` | Get direct children of a node |
-| `node_tree` | Get the subtree rooted at a node |
-| `node_bindings` | Get variable bindings on a node |
-
-### Create
-
-| Tool | Description |
-|------|-------------|
-| `create_shape` | Create a shape (`FRAME`, `RECTANGLE`, `ELLIPSE`, `TEXT`, `LINE`, `STAR`, `POLYGON`, `SECTION`) |
-| `create_vector` | Create a vector node from a path string |
-| `create_slice` | Create an export slice |
-| `create_page` | Create a new page |
-| `render` | Render JSX to design nodes — create entire component trees in one call |
-| `create_component` | Convert a frame/group into a component |
-| `create_instance` | Create an instance of a component |
-| `node_to_component` | Convert an existing node into a component in-place |
-
-### Modify
-
-| Tool | Description |
-|------|-------------|
-| `set_fill` | Set fill color (hex) |
-| `set_stroke` | Set stroke color, weight, alignment |
-| `set_effects` | Add shadow or blur effects |
-| `update_node` | Update position, size, opacity, corner radius, text, font |
-| `set_layout` | Set auto-layout (flexbox) — direction, spacing, padding, alignment |
-| `set_constraints` | Set resize constraints |
-| `set_rotation` | Set rotation angle in degrees |
-| `set_opacity` | Set opacity (0–1) |
-| `set_radius` | Set corner radius (uniform or per-corner) |
-| `set_minmax` | Set min/max width and height constraints |
-| `set_text` | Set text content of a `TEXT` node |
-| `set_font` | Set font family and weight |
-| `set_font_range` | Set font properties on a character range |
-| `set_text_resize` | Set text auto-resize mode (fixed/auto-width/auto-height) |
-| `set_visible` | Show or hide a node |
-| `set_blend` | Set blend mode |
-| `set_locked` | Lock or unlock a node |
-| `set_stroke_align` | Set stroke alignment (inside/center/outside) |
-| `set_text_properties` | Set text layout: alignment, auto-resize, text case, decoration, truncation |
-| `set_layout_child` | Configure auto-layout child: sizing, grow, alignment, absolute positioning |
-| `node_move` | Move a node to a new position |
-| `node_resize` | Resize a node |
-| `node_replace_with` | Replace a node with another node |
-| `arrange` | Align or distribute selected nodes |
-
-### Structure
-
-| Tool | Description |
-|------|-------------|
-| `delete_node` | Delete a node |
-| `clone_node` | Duplicate a node |
-| `rename_node` | Rename a node |
-| `reparent_node` | Move a node into a different parent |
-| `select_nodes` | Select nodes by ID |
-| `group_nodes` | Group nodes |
-| `ungroup_node` | Ungroup a group |
-| `flatten_nodes` | Flatten nodes into a single vector |
-| `boolean_union` | Boolean union of two or more nodes |
-| `boolean_subtract` | Boolean subtraction |
-| `boolean_intersect` | Boolean intersection |
-| `boolean_exclude` | Boolean exclusion |
-
-### Vector Path
-
-| Tool | Description |
-|------|-------------|
-| `path_get` | Get the path data of a vector node |
-| `path_set` | Set the path data of a vector node |
-| `path_scale` | Scale a vector path |
-| `path_flip` | Flip a vector path horizontally or vertically |
-| `path_move` | Translate a vector path |
-
-### Export
-
-| Tool | Description |
-|------|-------------|
-| `export_image` | Export nodes as PNG, JPG, or WEBP. Returns base64-encoded image data |
-| `export_svg` | Export nodes as SVG markup |
-
-### Viewport
-
-| Tool | Description |
-|------|-------------|
-| `viewport_get` | Get current viewport position and zoom level |
-| `viewport_set` | Set viewport position and zoom |
-| `viewport_zoom_to_fit` | Zoom viewport to fit specified nodes |
-
-### Variables
-
-| Tool | Description |
-|------|-------------|
-| `get_variable` | Get a variable by ID or name |
-| `find_variables` | Find variables by name pattern or type |
-| `create_variable` | Create a new variable in a collection |
-| `set_variable` | Set a variable value in a mode |
-| `delete_variable` | Delete a variable |
-| `bind_variable` | Bind a variable to a node property |
-| `get_collection` | Get a variable collection by ID or name |
-| `create_collection` | Create a new variable collection |
-| `delete_collection` | Delete a variable collection |
-
-### Analyze
-
-| Tool | Description |
-|------|-------------|
-| `analyze_colors` | Analyze color palette usage across the document |
-| `analyze_typography` | Analyze font/size/weight distribution |
-| `analyze_spacing` | Analyze gap and padding values |
-| `analyze_clusters` | Detect repeated patterns (potential components) |
-
-### Diff
-
-| Tool | Description |
-|------|-------------|
-| `diff_create` | Create a snapshot of the current document state |
-| `diff_show` | Show differences between the current state and a snapshot |
-
-### Navigation
-
-| Tool | Description |
-|------|-------------|
-| `switch_page` | Switch to a page by name or ID |
-
-### Escape Hatch
-
-| Tool | Description |
-|------|-------------|
-| `eval` | Execute JavaScript with full Figma Plugin API access |
-
-Note: `eval` is available over stdio, but disabled in HTTP mode for security.
diff --git a/packages/docs/ru/programmable/sdk/api/advanced/use-number-field.md b/packages/docs/ru/programmable/sdk/api/advanced/use-number-field.md
deleted file mode 100644
index 77d8a0775..000000000
--- a/packages/docs/ru/programmable/sdk/api/advanced/use-number-field.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: useNumberField
-description: Context helper for custom NumberField descendants.
----
-
-# useNumberField
-
-The generated `useNumberField()` reference currently shares one canonical source.
-
-[Open the useNumberField reference](/programmable/sdk/api/advanced/use-number-field)
diff --git a/packages/docs/ru/programmable/sdk/api/components/gradient-editor-bar.md b/packages/docs/ru/programmable/sdk/api/components/gradient-editor-bar.md
index 1a34bfb74..d806dbede 100644
--- a/packages/docs/ru/programmable/sdk/api/components/gradient-editor-bar.md
+++ b/packages/docs/ru/programmable/sdk/api/components/gradient-editor-bar.md
@@ -7,7 +7,7 @@ description: Headless-примитив перетаскиваемой полос
`GradientEditorBar` — примитив перетаскиваемой полосы, используемый внутри редакторов градиента.
-## Props
+## Свойства
<SdkPropsTable
:rows="[
@@ -17,7 +17,7 @@ description: Headless-примитив перетаскиваемой полос
]"
/>
-## Events
+## События
<SdkEventsTable
:rows="[
@@ -26,7 +26,7 @@ description: Headless-примитив перетаскиваемой полос
]"
/>
-## Slots
+## Слоты
<SdkSlotsTable
:rows="[
diff --git a/packages/docs/ru/programmable/sdk/api/components/gradient-editor-stop.md b/packages/docs/ru/programmable/sdk/api/components/gradient-editor-stop.md
index 2f9ac266b..1bb4113d3 100644
--- a/packages/docs/ru/programmable/sdk/api/components/gradient-editor-stop.md
+++ b/packages/docs/ru/programmable/sdk/api/components/gradient-editor-stop.md
@@ -7,7 +7,7 @@ description: Headless-примитив слота для одной строки
`GradientEditorStop` — headless-примитив для рендеринга и редактирования одной точки градиента.
-## Props
+## Свойства
<SdkPropsTable
:rows="[
@@ -17,7 +17,7 @@ description: Headless-примитив слота для одной строки
]"
/>
-## Events
+## События
<SdkEventsTable
:rows="[
@@ -29,7 +29,7 @@ description: Headless-примитив слота для одной строки
]"
/>
-## Slots
+## Слоты
<SdkSlotsTable
:rows="[
diff --git a/packages/docs/ru/reference/cli.md b/packages/docs/ru/reference/cli.md
deleted file mode 100644
index 7335121f8..000000000
--- a/packages/docs/ru/reference/cli.md
+++ /dev/null
@@ -1,184 +0,0 @@
----
-title: CLI Reference
-description: Complete reference for all openpencil commands, options, and flags.
----
-
-# CLI Reference
-
-All commands accept a `.fig` file as a positional argument. When omitted, the CLI connects to the running desktop app via RPC.
-
-## info
-
-Show document info — pages, node counts, fonts, file size.
-
-```sh
-openpencil info [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## tree
-
-Print the node hierarchy.
-
-```sh
-openpencil tree [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--page` | Page name (default: first page) |
-| `--depth` | Max depth (default: unlimited) |
-| `--json` | Output as JSON |
-
-## find
-
-Search nodes by name or type.
-
-```sh
-openpencil find [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--name` | Node name (partial match, case-insensitive) |
-| `--type` | Node type: `FRAME`, `TEXT`, `RECTANGLE`, `INSTANCE`, etc. |
-| `--page` | Page name (default: all pages) |
-| `--limit` | Max results (default: 100) |
-| `--json` | Output as JSON |
-
-## node
-
-Show detailed properties of a node.
-
-```sh
-openpencil node [file] --id <id> [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--id` | **Required.** Node ID (e.g. `1:23`) |
-| `--json` | Output as JSON |
-
-## pages
-
-List all pages in the document.
-
-```sh
-openpencil pages [file] [--json]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--json` | Output as JSON |
-
-## variables
-
-List design variables and collections.
-
-```sh
-openpencil variables [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--collection` | Filter by collection name |
-| `--type` | Filter by type: `COLOR`, `FLOAT`, `STRING`, `BOOLEAN` |
-| `--json` | Output as JSON |
-
-## export
-
-Export to PNG, JPG, WEBP, SVG, or JSX.
-
-```sh
-openpencil export [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--format` | `-f` | `png` (default), `jpg`, `webp`, `svg`, `jsx` |
-| `--output` | `-o` | Output file path (default: `<name>.<format>`) |
-| `--scale` | `-s` | Export scale (default: 1) |
-| `--quality` | `-q` | Quality 0–100, JPG/WEBP only (default: 90) |
-| `--page` | | Page name (default: first page) |
-| `--node` | | Node ID to export (default: all top-level nodes) |
-| `--style` | | JSX style: `openpencil` (default), `tailwind` |
-| `--thumbnail` | | Export page thumbnail instead of full render |
-| `--width` | | Thumbnail width (default: 1920) |
-| `--height` | | Thumbnail height (default: 1080) |
-
-## eval
-
-Execute JavaScript with the Figma Plugin API.
-
-```sh
-openpencil eval [file] [options]
-```
-
-| Option | Alias | Description |
-|--------|-------|-------------|
-| `--code` | `-c` | JavaScript code to execute |
-| `--stdin` | | Read code from stdin |
-| `--write` | `-w` | Write changes back to the input file |
-| `--output` | `-o` | Write to a different file |
-| `--json` | | Output as JSON |
-| `--quiet` | `-q` | Suppress output |
-
-## analyze colors
-
-Analyze color palette usage across the document.
-
-```sh
-openpencil analyze colors [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max colors to show (default: 30) |
-| `--threshold` | Distance threshold for clustering similar colors, 0–50 (default: 15) |
-| `--similar` | Show similar color clusters |
-| `--json` | Output as JSON |
-
-## analyze typography
-
-Analyze font family, size, and weight distribution.
-
-```sh
-openpencil analyze typography [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--group-by` | Group by: `family`, `size`, `weight` (default: show all styles) |
-| `--limit` | Max styles to show (default: 30) |
-| `--json` | Output as JSON |
-
-## analyze spacing
-
-Analyze gap and padding values across auto-layout frames.
-
-```sh
-openpencil analyze spacing [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--grid` | Base grid size to check against (default: 8) |
-| `--json` | Output as JSON |
-
-## analyze clusters
-
-Find repeated node patterns — potential components.
-
-```sh
-openpencil analyze clusters [file] [options]
-```
-
-| Option | Description |
-|--------|-------------|
-| `--limit` | Max clusters to show (default: 20) |
-| `--min-size` | Min node size in px (default: 30) |
-| `--min-count` | Min instances to form a cluster (default: 2) |
-| `--json` | Output as JSON |
diff --git a/packages/docs/ru/reference/file-format.md b/packages/docs/ru/reference/file-format.md
deleted file mode 100644
index ea94b8fb6..000000000
--- a/packages/docs/ru/reference/file-format.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# File Format
-
-## .fig File Structure
-
-A `.fig` file is a ZIP archive containing a Kiwi-encoded binary message:
-
-| Offset | Content |
-|--------|---------|
-| 0 | Magic header `fig-kiwi` (8 bytes) |
-| 8 | Version (4 bytes, uint32 LE) |
-| 12 | Schema length (4 bytes, uint32 LE) |
-| 16 | Compressed Kiwi schema |
-| … | Message length (4 bytes, uint32 LE) |
-| … | Compressed Kiwi message — `NodeChange[]` (entire document) |
-| … | Blob data — images, vector networks, fonts |
-
-## Import Pipeline
-
-```
-.fig file → parse header → decompress Zstd → decode Kiwi schema
- → decode message → NodeChange[] → build SceneGraph
- → resolve blob refs → render on canvas
-```
-
-## Export Pipeline
-
-```
-SceneGraph → NodeChange[] → Kiwi encode → compress (Zstd/deflate)
- → build ZIP (header + schema + message + thumbnail.png)
- → write .fig file
-```
-
-Export uses <kbd>⌘</kbd><kbd>S</kbd> (Save) and <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> (Save As) with native OS dialogs on the desktop app. The exported file includes a `thumbnail.png` required by Figma for file preview.
-
-Compression uses Zstd via Tauri Rust command on desktop, with deflate fallback in the browser.
-
-## Kiwi Binary Codec
-
-The codec handles Figma's 194-definition Kiwi schema with `NodeChange` as the central type (~390 fields). Key components:
-
-| Module | Purpose |
-|--------|---------|
-| `kiwi-schema` | Kiwi parser (from [evanw/kiwi](https://github.com/nicolo-ribaudo/kiwi)), patched for ESM and sparse field IDs |
-| `codec.ts` | Encode/decode messages using the Kiwi schema |
-| `protocol.ts` | Wire format parsing and message type detection |
-| `schema.ts` | 194 message/enum/struct definitions |
-
-### Sparse Field IDs
-
-Figma's schema uses non-contiguous field IDs (e.g. 1, 2, 5, 10 with gaps). The kiwi-schema parser handles this correctly.
-
-### Compression
-
-`.fig` files use Zstd compression for both the schema and message payloads. Decompression uses the `fzstd` library. For export, Zstd compression is offloaded to a Tauri Rust command on the desktop app (better performance, correct frame headers). In the browser, deflate via `fflate` is used as a fallback.
-
-## Supported Formats
-
-| Format | Import | Export |
-|--------|--------|--------|
-| `.fig` (Figma) | ✅ | ✅ |
-| `.svg` | Planned | Planned |
-| `.png` | Planned | Planned |
-| `.pdf` | — | Planned |
-
-## Clipboard Format
-
-Copy/paste uses the same Kiwi binary encoding:
-
-1. **Copy** — encode selected `NodeChange[]` to Kiwi binary, compress, write to clipboard as `application/x-figma-design` MIME type
-2. **Paste** — read clipboard, decompress, decode Kiwi binary, create nodes in scene graph
-
-Encoding happens synchronously in the copy event handler (not async Clipboard API) for browser compatibility. This enables bidirectional clipboard between OpenPencil and Figma.
diff --git a/packages/docs/ru/reference/keyboard-shortcuts.md b/packages/docs/ru/reference/keyboard-shortcuts.md
deleted file mode 100644
index dfa5e04e0..000000000
--- a/packages/docs/ru/reference/keyboard-shortcuts.md
+++ /dev/null
@@ -1,125 +0,0 @@
-# Сочетания клавиш
-
-Полная Figma-совместимая карта сочетаний клавиш. ✅ = реализовано.
-
-::: tip Условные обозначения
-⌘ = Cmd (Mac) / Ctrl (Win/Linux) · ⇧ = Shift · ⌥ = Alt/Option · ⌃ = Ctrl · ⌫ = Backspace
-:::
-
-## Инструменты
-
-| Клавиша | Инструмент | Статус |
-|---------|------------|--------|
-| <kbd>V</kbd> | Перемещение/Выделение | ✅ |
-| <kbd>K</kbd> | Масштаб | 🔲 |
-| <kbd>H</kbd> | Рука | ✅ |
-| <kbd>F</kbd> | Фрейм | ✅ |
-| <kbd>S</kbd> | Секция | ✅ |
-| <kbd>R</kbd> | Прямоугольник | ✅ |
-| <kbd>O</kbd> | Эллипс | ✅ |
-| <kbd>L</kbd> | Линия | ✅ |
-| — | Многоугольник | ✅ (только во всплывающем меню) |
-| — | Звезда | ✅ (только во всплывающем меню) |
-| <kbd>⇧</kbd><kbd>L</kbd> | Стрелка | 🔲 |
-| <kbd>P</kbd> | Перо | ✅ |
-| <kbd>⇧</kbd><kbd>P</kbd> | Карандаш | 🔲 |
-| <kbd>T</kbd> | Текст | ✅ |
-| <kbd>C</kbd> | Комментарий | 🔲 |
-| <kbd>I</kbd> | Пипетка | 🔲 |
-
-## Файл
-
-| Сочетание | Действие | Статус |
-|-----------|----------|--------|
-| <kbd>⌘</kbd><kbd>N</kbd> | Новая вкладка | ✅ |
-| <kbd>⌘</kbd><kbd>T</kbd> | Новая вкладка | ✅ |
-| <kbd>⌘</kbd><kbd>O</kbd> | Открыть файл | ✅ |
-| <kbd>⌘</kbd><kbd>W</kbd> | Закрыть вкладку | ✅ |
-| <kbd>⌘</kbd><kbd>S</kbd> | Сохранить | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd> | Сохранить как | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>E</kbd> | Экспорт… | ✅ |
-
-## Редактирование
-
-| Сочетание | Действие | Статус |
-|-----------|----------|--------|
-| <kbd>⌘</kbd><kbd>Z</kbd> | Отменить | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>Z</kbd> | Повторить | ✅ |
-| <kbd>⌘</kbd><kbd>X</kbd> | Вырезать | ✅ |
-| <kbd>⌘</kbd><kbd>C</kbd> | Копировать | ✅ |
-| <kbd>⌘</kbd><kbd>V</kbd> | Вставить | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>V</kbd> | Вставить поверх выделения | 🔲 |
-| <kbd>⌘</kbd><kbd>D</kbd> | Дублировать | ✅ |
-| <kbd>⌫</kbd> | Удалить | ✅ |
-| <kbd>⌘</kbd><kbd>A</kbd> | Выделить всё | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>A</kbd> | Инвертировать выделение | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>C</kbd> | Копировать как PNG | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>C</kbd> | Копировать свойства | 🔲 |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>V</kbd> | Вставить свойства | 🔲 |
-
-## Вид
-
-| Сочетание | Действие | Статус |
-|-----------|----------|--------|
-| <kbd>⌘</kbd><kbd>'</kbd> | Пиксельная сетка | 🔲 |
-| <kbd>⌃</kbd><kbd>G</kbd> | Направляющие макета | 🔲 |
-| <kbd>⇧</kbd><kbd>R</kbd> | Линейки | 🔲 |
-| <kbd>⌘</kbd><kbd>\\</kbd> | Показать/скрыть интерфейс | ✅ |
-| <kbd>⌘</kbd><kbd>=</kbd> | Увеличить | ✅ |
-| <kbd>⌘</kbd><kbd>-</kbd> | Уменьшить | ✅ |
-| <kbd>⌘</kbd><kbd>0</kbd> | Масштаб 100% | ✅ |
-| <kbd>⌘</kbd><kbd>1</kbd> | Масштаб по содержимому | ✅ |
-| <kbd>⌘</kbd><kbd>2</kbd> | Масштаб по выделению | ✅ |
-| <kbd>⇧</kbd><kbd>1</kbd> | Масштаб по содержимому (альт.) | ✅ |
-| <kbd>⇧</kbd><kbd>2</kbd> | Масштаб по выделению (альт.) | ✅ |
-| <kbd>⌘</kbd><kbd>J</kbd> | AI-чат | ✅ |
-
-## Объект
-
-| Сочетание | Действие | Статус |
-|-----------|----------|--------|
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>G</kbd> | Обернуть во фрейм | 🔲 |
-| <kbd>⌘</kbd><kbd>G</kbd> | Сгруппировать | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>G</kbd> | Разгруппировать | ✅ |
-| <kbd>⇧</kbd><kbd>A</kbd> | Добавить Auto Layout | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>K</kbd> | Создать компонент | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>K</kbd> | Создать набор компонентов | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>B</kbd> | Открепить экземпляр | ✅ |
-| <kbd>⌘</kbd><kbd>R</kbd> | Переименовать выделение | ✅ |
-| <kbd>⌘</kbd><kbd>]</kbd> | Переместить вперёд | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>]</kbd> | На передний план | 🔲 |
-| <kbd>]</kbd> | На передний план | ✅ |
-| <kbd>⌘</kbd><kbd>[</kbd> | Переместить назад | ✅ |
-| <kbd>⌥</kbd><kbd>⌘</kbd><kbd>[</kbd> | На задний план | 🔲 |
-| <kbd>[</kbd> | На задний план | ✅ |
-| <kbd>⇧</kbd><kbd>H</kbd> | Отразить по горизонтали | ✅ |
-| <kbd>⇧</kbd><kbd>V</kbd> | Отразить по вертикали | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>H</kbd> | Видимость | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>L</kbd> | Блокировка | ✅ |
-| <kbd>⌘</kbd><kbd>E</kbd> | Объединить пути | 🔲 |
-
-## Текст
-
-| Сочетание | Действие | Статус |
-|-----------|----------|--------|
-| <kbd>⌘</kbd><kbd>B</kbd> | Жирный | ✅ |
-| <kbd>⌘</kbd><kbd>I</kbd> | Курсив | ✅ |
-| <kbd>⌘</kbd><kbd>U</kbd> | Подчёркнутый | ✅ |
-| <kbd>⇧</kbd><kbd>⌘</kbd><kbd>X</kbd> | Зачёркнутый | 🔲 |
-
-## Взаимодействие с холстом
-
-| Ввод | Действие | Статус |
-|------|----------|--------|
-| Клик | Выделить узел | ✅ |
-| <kbd>Shift</kbd>+клик | Добавить/убрать из выделения | ✅ |
-| <kbd>Alt</kbd>+перетаскивание | Дублировать и переместить | ✅ |
-| <kbd>Shift</kbd>+перетаскивание (рисование) | Ограничить до квадрата/круга | ✅ |
-| <kbd>Shift</kbd>+перетаскивание (масштабирование) | Сохранить пропорции | ✅ |
-| <kbd>Shift</kbd>+перетаскивание (вращение) | Привязка к 15° | ✅ |
-| Перетаскивание средней кнопкой мыши | Панорамирование | ✅ |
-| Прокрутка | Панорамирование | ✅ |
-| <kbd>Ctrl</kbd>+прокрутка / Щипок | Масштабирование | ✅ |
-| Двойной клик по тексту | Редактирование текста | ✅ |
-| Перетаскивание на фрейм | Перемещение во фрейм | ✅ |
-| <kbd>Escape</kbd> | Снять выделение / Отмена | ✅ |
diff --git a/packages/docs/ru/reference/node-types.md b/packages/docs/ru/reference/node-types.md
deleted file mode 100644
index f6024302d..000000000
--- a/packages/docs/ru/reference/node-types.md
+++ /dev/null
@@ -1,194 +0,0 @@
-# Node Types
-
-The scene graph supports 28 node types from Figma's Kiwi schema. Each node is identified by a GUID (`sessionID:localID`) and has a parent reference via `parentIndex`. The OpenPencil engine's `NodeType` union currently uses 17 of these types.
-
-## Type Table
-
-28 Figma schema types + 1 synthetic engine type. Types marked ✅ are in the engine's `NodeType` union (17 total).
-
-| Type | ID | Description | Engine |
-|------|----|-------------|--------|
-| `DOCUMENT` | 1 | Root node, one per file | — |
-| `CANVAS` | 2 | Page | ✅ |
-| `GROUP` | 3 | Group container | ✅ |
-| `FRAME` | 4 | Primary container (artboard), supports auto-layout | ✅ |
-| `BOOLEAN_OPERATION` | 5 | Union/subtract/intersect/exclude result | |
-| `VECTOR` | 6 | Freeform vector path | ✅ |
-| `STAR` | 7 | Star shape | ✅ |
-| `LINE` | 8 | Line | ✅ |
-| `ELLIPSE` | 9 | Ellipse/circle, supports arc data | ✅ |
-| `RECTANGLE` | 10 | Rectangle | ✅ |
-| `REGULAR_POLYGON` | 11 | Regular polygon (3–12 sides, engine uses `POLYGON`) | ✅ |
-| `ROUNDED_RECTANGLE` | 12 | Rectangle with smooth corners | ✅ |
-| `TEXT` | 13 | Text with rich formatting | ✅ |
-| `SLICE` | 14 | Export region | |
-| `SYMBOL` | 15 | Component (main, engine uses `COMPONENT`) | ✅ |
-| `INSTANCE` | 16 | Component instance | ✅ |
-| `STICKY` | 17 | FigJam sticky note | |
-| `SHAPE_WITH_TEXT` | 18 | FigJam shape | ✅ |
-| `CONNECTOR` | 19 | Connector line between nodes | ✅ |
-| `CODE_BLOCK` | 20 | FigJam code block | |
-| `WIDGET` | 21 | Plugin widget | |
-| `STAMP` | 22 | FigJam stamp | |
-| `MEDIA` | 23 | Video/GIF | |
-| `HIGHLIGHT` | 24 | FigJam highlight | |
-| `SECTION` | 25 | Canvas section (organizational, top-level only) | ✅ |
-| `SECTION_OVERLAY` | 26 | Section overlay | |
-| `WASHI_TAPE` | 27 | FigJam washi tape | |
-| `VARIABLE` | 28 | Variable definition node | |
-| `COMPONENT_SET` | — | Variant group container (synthetic, mapped from `SYMBOL`) | ✅ |
-
-### Engine NodeType Union (17 types)
-
-The engine's `NodeType` uses simplified names. Some differ from the Kiwi schema:
-- `COMPONENT` → Kiwi `SYMBOL` (ID 15)
-- `COMPONENT_SET` → variant group container (no dedicated Kiwi ID, mapped from `SYMBOL` with variants)
-- `POLYGON` → Kiwi `REGULAR_POLYGON` (ID 11)
-
-```typescript
-type NodeType =
- | 'CANVAS' | 'FRAME' | 'RECTANGLE' | 'ROUNDED_RECTANGLE'
- | 'ELLIPSE' | 'TEXT' | 'LINE' | 'STAR' | 'POLYGON'
- | 'VECTOR' | 'GROUP' | 'SECTION'
- | 'COMPONENT' | 'COMPONENT_SET' | 'INSTANCE'
- | 'CONNECTOR' | 'SHAPE_WITH_TEXT'
-```
-
-## Node Hierarchy
-
-```
-Document
-├── Canvas (Page 1)
-│ ├── Section (top-level only, title pill, auto-adopts siblings)
-│ │ ├── Frame
-│ │ │ └── ...children
-│ │ └── Rectangle
-│ ├── Frame
-│ │ ├── Rectangle
-│ │ ├── Text
-│ │ └── Frame (nested)
-│ │ ├── Ellipse
-│ │ └── Instance (→ references Component)
-│ ├── Component
-│ │ └── ...children
-│ ├── Group
-│ │ └── ...children
-│ └── BooleanOperation
-│ └── ...operand shapes
-└── Canvas (Page 2)
- └── ...
-```
-
-## Core Properties
-
-Every node carries these fields (subset of `NodeChange`):
-
-### Identity & Tree
-
-- `guid` — unique identifier (`sessionID:localID`)
-- `type` — node type enum
-- `name` — display name
-- `phase` — `CREATED` or `REMOVED`
-- `parentIndex` — parent GUID + position string for z-ordering
-
-### Transform
-
-- `size` — width/height vector
-- `transform` — 2×3 affine matrix
-- `rotation` — degrees
-
-### Appearance
-
-- `fillPaints[]` — fill colors/gradients/images
-- `strokePaints[]` — stroke colors
-- `effects[]` — shadows, blurs
-- `opacity` — 0–1
-- `blendMode` — `NORMAL`, `MULTIPLY`, `SCREEN`, etc.
-
-### Stroke
-
-- `strokeWeight` — stroke thickness
-- `strokeAlign` — `INSIDE` / `CENTER` / `OUTSIDE`
-- `strokeCap` — `NONE` / `ROUND` / `SQUARE` / `ARROW_LINES` / `ARROW_EQUILATERAL`
-- `strokeJoin` — `MITER` / `BEVEL` / `ROUND`
-- `dashPattern[]` — dash/gap lengths
-
-### Corners
-
-- `cornerRadius` — uniform radius
-- `cornerSmoothing` — squircle amount (0–1)
-- Per-corner radii when `rectangleCornerRadiiIndependent` is true
-
-### Visibility
-
-- `visible` — show/hide
-- `locked` — prevent editing
-
-## Type-Specific Properties
-
-### Text
-
-`fontSize`, `fontName`, `lineHeight`, `letterSpacing`, `textAlignHorizontal`, `textAlignVertical`, `textAutoResize`, `textData` (characters, style overrides, baselines, glyphs)
-
-### Vector
-
-`vectorData` (vectorNetworkBlob, normalizedSize), `fillGeometry[]`, `strokeGeometry[]`, `handleMirroring`, `arcData`
-
-### Layout (Frame)
-
-`stackMode`, `stackSpacing`, `stackPadding`, `stackJustify`, `stackCounterAlign`, `stackPrimarySizing`, `stackCounterSizing`, `stackChildPrimaryGrow`, `stackChildAlignSelf`
-
-### Component
-
-`symbolData`, `componentKey`, `componentPropDefs[]`, `symbolDescription`
-
-### Instance
-
-`overriddenSymbolID`, `symbolData.symbolOverrides[]`, `componentPropRefs[]`, `componentPropAssignments[]`
-
-## Paint
-
-```typescript
-interface Fill {
- type: 'SOLID' | 'GRADIENT_LINEAR' | 'GRADIENT_RADIAL' |
- 'GRADIENT_ANGULAR' | 'GRADIENT_DIAMOND' | 'IMAGE'
- color: Color // {r, g, b, a} 0–1 floats
- opacity: number // 0–1
- visible: boolean
- blendMode?: BlendMode
- gradientStops?: GradientStop[] // for gradients
- gradientTransform?: GradientTransform // 2×3 matrix
- imageHash?: string // for image fills
- imageScaleMode?: 'FILL' | 'FIT' | 'CROP' | 'TILE'
- imageTransform?: GradientTransform
-}
-```
-
-## Effect
-
-```typescript
-interface Effect {
- type: 'DROP_SHADOW' | 'INNER_SHADOW' | 'LAYER_BLUR' |
- 'BACKGROUND_BLUR' | 'FOREGROUND_BLUR'
- color: Color
- offset: { x: number; y: number }
- radius: number
- spread: number
- visible: boolean
-}
-```
-
-## Stroke
-
-```typescript
-interface Stroke {
- color: Color
- weight: number
- opacity: number
- visible: boolean
- align: 'INSIDE' | 'CENTER' | 'OUTSIDE'
- cap?: 'NONE' | 'ROUND' | 'SQUARE' | 'ARROW_LINES' | 'ARROW_EQUILATERAL'
- join?: 'MITER' | 'BEVEL' | 'ROUND'
- dashPattern?: number[]
-}
-```
diff --git a/packages/docs/ru/reference/scene-graph.md b/packages/docs/ru/reference/scene-graph.md
deleted file mode 100644
index 0d445d189..000000000
--- a/packages/docs/ru/reference/scene-graph.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Scene Graph
-
-## In-Memory Representation
-
-Nodes live in a flat `Map<string, Node>` keyed by `GUID` string. The tree structure is maintained via `parentIndex` references. This gives O(1) lookup by ID and efficient traversal.
-
-```typescript
-interface SceneGraph {
- nodes: Map<string, Node>
- root: string
-
- getNode(id: string): Node
- getChildren(id: string): Node[]
- getParent(id: string): Node | null
- getPages(): Node[]
-
- createNode(type: NodeType, parent: string, props: Partial<NodeChange>): Node
- updateNode(id: string, changes: Partial<NodeChange>): void
- deleteNode(id: string): void
- moveNode(id: string, newParent: string, position: string): void
- addPage(name: string): Node
- deletePage(id: string): void
- renamePage(id: string, name: string): void
-
- findByType(type: NodeType): Node[]
- findByName(pattern: string): Node[]
- hitTest(point: Vector, canvas: string): Node | null
- getNodesInRect(rect: Rect, canvas: string): Node[]
-}
-```
-
-## Pages
-
-Documents support multiple pages (`CANVAS` nodes as direct children of the `DOCUMENT` root). Each page has its own child tree and independent viewport state (panX, panY, zoom, pageColor). The editor tracks `currentPageId` and renders only the active page's children.
-
-## Sections
-
-`SECTION` nodes are top-level organizational containers (direct children of `CANVAS` only). They cannot nest inside frames or groups. Creating a section auto-adopts overlapping siblings. Sections display a title pill with luminance-adaptive text color.
-
-## Hover State
-
-The editor state tracks `hoveredNodeId` — the node currently under the cursor. The renderer draws a shape-aware hover outline (following actual geometry for ellipses, rounded rects, vectors) for visual feedback before selection.
-
-## Undo/Redo
-
-The system uses Figma's **inverse command** pattern. Each undo entry contains the forward changes and their automatically-computed inverse:
-
-| Operation | Forward | Inverse |
-|-----------|---------|---------|
-| Create node | `{guid, phase: CREATED, ...props}` | `{guid, phase: REMOVED}` |
-| Delete node | `{guid, phase: REMOVED}` | `{guid, phase: CREATED, ...allProps}` |
-| Change prop | `{guid, fill: "#F00"}` | `{guid, fill: "#00F"}` |
-| Move node | `{guid, parentIndex: newParent}` | `{guid, parentIndex: oldParent}` |
-
-Before applying any change, affected fields are snapshotted. The snapshot becomes the inverse.
-
-**Batching** — operations like drag-to-move produce hundreds of position changes per second. These are debounced into a single undo entry. `beginBatch`/`commitBatch` wraps multi-step operations.
-
-## Layout Engine (Yoga)
-
-Figma's auto-layout properties map to Yoga flexbox:
-
-| Figma Property | Yoga Equivalent |
-|---|---|
-| `stackMode: HORIZONTAL` | `flexDirection: row` |
-| `stackMode: VERTICAL` | `flexDirection: column` |
-| `stackSpacing` | `gap` |
-| `stackPadding` | `padding` |
-| `stackJustify: MIN/CENTER/MAX/SPACE_BETWEEN` | `justifyContent` |
-| `stackCounterAlign` | `alignItems` |
-| `stackPrimarySizing: FIXED/HUG/FILL` | width/height + flex-grow |
-| `stackChildPrimaryGrow` | `flexGrow` |
-| `stackChildAlignSelf` | `alignSelf` |
-| `stackPositioning: ABSOLUTE` | `position: absolute` |
-
-## Hit Testing
-
-Given a point in canvas coordinates, the scene graph returns the topmost visible node at that position. The algorithm:
-
-1. Traverse visible nodes in reverse z-order (top to bottom)
-2. Transform the test point into each node's local coordinate system
-3. Check if the point is within the node's bounds (including rotation)
-4. Return the first match
-
-For marquee selection, `getNodesInRect` returns all nodes whose bounds intersect the given rectangle.
-
-## Extended Fill Types
-
-Fills support six types: `SOLID`, `GRADIENT_LINEAR`, `GRADIENT_RADIAL`, `GRADIENT_ANGULAR`, `GRADIENT_DIAMOND`, and `IMAGE`. Gradient fills carry `gradientStops` (color + position pairs) and a `gradientTransform` (2×3 matrix). Image fills reference blob data via `imageHash` with scale modes (`FILL`, `FIT`, `CROP`, `TILE`).
-
-## Extended Stroke Properties
-
-Strokes support `cap` (`NONE`, `ROUND`, `SQUARE`, `ARROW_LINES`, `ARROW_EQUILATERAL`), `join` (`MITER`, `BEVEL`, `ROUND`), and `dashPattern` (array of dash/gap lengths) in addition to the base `color`, `weight`, `opacity`, `visible`, and `align` properties.
-
-## Coordinate System
-
-Nodes store position and size relative to their parent. To get absolute (canvas) coordinates, walk up the parent chain applying transforms. The renderer uses this to draw nested frames with correct positioning.
-
-Rotation is stored in degrees and applied as part of the 2×3 transform matrix. Snap guides and hit testing account for rotation when computing visual bounds.
diff --git a/tools/docs/src/check.ts b/tools/docs/src/check.ts
index 9e7061a9f..af7a3dff2 100644
--- a/tools/docs/src/check.ts
+++ b/tools/docs/src/check.ts
@@ -82,7 +82,7 @@ const result = checkDocsIntegrity({
const missingCounts = Object.values(result.localeMissingPages).map((pages) => pages.length)
const translationCounts = missingCounts.map((missing) => result.canonicalPageCount - missing)
console.log(
- `Translation coverage: ${Math.min(...translationCounts)}–${Math.max(...translationCounts)} of ${result.canonicalPageCount} canonical pages per locale.`
+ `Localized page presence: ${Math.min(...translationCounts)}–${Math.max(...translationCounts)} of ${result.canonicalPageCount} canonical routes per locale; content quality is audited separately.`
)
if (result.errors.length > 0) {
diff --git a/tools/docs/src/integrity.ts b/tools/docs/src/integrity.ts
index 4d35279c2..3663b326d 100644
--- a/tools/docs/src/integrity.ts
+++ b/tools/docs/src/integrity.ts
@@ -2,6 +2,7 @@ import { existsSync, readdirSync, readFileSync } from 'node:fs'
import { dirname, extname, join, normalize, relative, resolve, sep } from 'node:path'
import { parse as parseCloudflareRedirects } from 'cloudflare-redirect-parser'
+import { franc } from 'franc'
import type { Definition, Link, Root } from 'mdast'
import { fromMarkdown } from 'mdast-util-from-markdown'
import { visit } from 'unist-util-visit'
@@ -17,6 +18,8 @@ export interface DocsIntegrityResult {
canonicalPageCount: number
errors: string[]
localeMissingPages: Record<string, string[]>
+ localePlaceholderPages: Record<string, string[]>
+ localeSuspectPages: Record<string, string[]>
markdownFiles: string[]
}
@@ -36,6 +39,14 @@ const MEDIA_EXTENSIONS = new Set([
'.webp'
])
const REDIRECT_STATUSES = new Set([301, 302, 303, 307, 308])
+const LOCALE_LANGUAGE_CODES: Record<string, string> = {
+ de: 'deu',
+ es: 'spa',
+ fr: 'fra',
+ it: 'ita',
+ pl: 'pol',
+ ru: 'rus'
+}
function walkMarkdown(directory: string): string[] {
if (!existsSync(directory)) return []
@@ -150,6 +161,72 @@ function localeMissingPages(
)
}
+function localePlaceholderPages(
+ docsRoot: string,
+ localePrefixes: readonly string[],
+ canonicalPaths: string[]
+): Record<string, string[]> {
+ if (localePrefixes.length < 2) {
+ return Object.fromEntries(localePrefixes.map((locale) => [locale, []]))
+ }
+ const pathsByContent = new Map<string, Map<string, string[]>>()
+
+ for (const locale of localePrefixes) {
+ for (const path of canonicalPaths) {
+ const localizedPath = join(docsRoot, locale, path)
+ if (!existsSync(localizedPath)) continue
+ const content = readFileSync(localizedPath, 'utf8')
+ const localePaths = pathsByContent.get(content) ?? new Map<string, string[]>()
+ const locales = localePaths.get(path) ?? []
+ locales.push(locale)
+ localePaths.set(path, locales)
+ pathsByContent.set(content, localePaths)
+ }
+ }
+
+ const placeholders = Object.fromEntries(localePrefixes.map((locale) => [locale, [] as string[]]))
+ for (const localePaths of pathsByContent.values()) {
+ for (const [path, locales] of localePaths) {
+ if (locales.length !== localePrefixes.length) continue
+ for (const locale of locales) placeholders[locale]?.push(path)
+ }
+ }
+ for (const paths of Object.values(placeholders)) paths.sort()
+ return placeholders
+}
+
+function markdownProse(source: string): string {
+ const text: string[] = []
+ const tree = fromMarkdown(source) as Root
+ visit(tree, 'text', (node) => text.push(node.value))
+ return text.join(' ')
+}
+
+function localeSuspectPages(
+ docsRoot: string,
+ localePrefixes: readonly string[],
+ markdownFiles: string[]
+): Record<string, string[]> {
+ return Object.fromEntries(
+ localePrefixes.map((locale) => {
+ const expectedLanguage = LOCALE_LANGUAGE_CODES[locale]
+ if (!expectedLanguage) return [locale, []]
+ const localeRoot = join(docsRoot, locale)
+ const suspects = markdownFiles
+ .filter((file) => file.startsWith(`${localeRoot}${sep}`))
+ .filter((file) => {
+ const prose = markdownProse(readFileSync(file, 'utf8'))
+ if (prose.split(/\s+/).length < 80) return false
+ const detected = franc(prose, { minLength: 80, only: [expectedLanguage, 'eng'] })
+ return detected === 'eng'
+ })
+ .map((file) => relative(localeRoot, file))
+ .sort()
+ return [locale, suspects]
+ })
+ )
+}
+
function validateSidebarLinks(docsRoot: string, sidebarLinks: readonly string[]): string[] {
const errors: string[] = []
for (const link of new Set(sidebarLinks)) {
@@ -164,16 +241,34 @@ export function checkDocsIntegrity(options: DocsIntegrityOptions): DocsIntegrity
const docsRoot = normalize(options.docsRoot)
const markdownFiles = walkMarkdown(docsRoot)
const canonicalPaths = canonicalMarkdownPaths(docsRoot, options.localePrefixes, markdownFiles)
+ const placeholders = localePlaceholderPages(docsRoot, options.localePrefixes, canonicalPaths)
+ const placeholderErrors = Object.entries(placeholders).flatMap(([locale, paths]) =>
+ paths.map(
+ (path) =>
+ `${locale}/${path} is identical across every locale and must use the canonical English page instead.`
+ )
+ )
+ const suspects = localeSuspectPages(docsRoot, options.localePrefixes, markdownFiles)
+ const suspectErrors = Object.entries(suspects).flatMap(([locale, paths]) =>
+ paths.map(
+ (path) =>
+ `${locale}/${path} is detected as English and must be translated or use the canonical English page.`
+ )
+ )
const errors = [
...validateMarkdownLinks(docsRoot, markdownFiles),
...validateSidebarLinks(docsRoot, options.sidebarLinks),
- ...validateRedirects(docsRoot, options.redirectsPath)
+ ...validateRedirects(docsRoot, options.redirectsPath),
+ ...placeholderErrors,
+ ...suspectErrors
].sort()
return {
canonicalPageCount: canonicalPaths.length,
errors,
localeMissingPages: localeMissingPages(docsRoot, options.localePrefixes, canonicalPaths),
+ localePlaceholderPages: placeholders,
+ localeSuspectPages: suspects,
markdownFiles
}
}
diff --git a/tools/docs/tests/integrity.test.ts b/tools/docs/tests/integrity.test.ts
index e0638549d..ae55ac116 100644
--- a/tools/docs/tests/integrity.test.ts
+++ b/tools/docs/tests/integrity.test.ts
@@ -40,6 +40,52 @@ describe('checkDocsIntegrity', () => {
expect(result.localeMissingPages.ru).toEqual(['legacy.md', 'page.md'])
})
+ test('rejects pages copied identically into every locale', async () => {
+ const docsRoot = await fixture()
+ await write(join(docsRoot, 'index.md'), '# English')
+ await write(join(docsRoot, 'ru/index.md'), '# Русский')
+ await write(join(docsRoot, 'fr/index.md'), '# Français')
+ await write(join(docsRoot, 'page.md'), '# Canonical page')
+ await write(join(docsRoot, 'ru/page.md'), '# English placeholder')
+ await write(join(docsRoot, 'fr/page.md'), '# English placeholder')
+ await writeFile(join(docsRoot, 'public/_redirects'), '', 'utf8')
+
+ const result = checkDocsIntegrity({
+ docsRoot,
+ localePrefixes: ['ru', 'fr'],
+ redirectsPath: join(docsRoot, 'public/_redirects'),
+ sidebarLinks: []
+ })
+
+ expect(result.localePlaceholderPages).toEqual({ ru: ['page.md'], fr: ['page.md'] })
+ expect(result.errors).toEqual([
+ 'fr/page.md is identical across every locale and must use the canonical English page instead.',
+ 'ru/page.md is identical across every locale and must use the canonical English page instead.'
+ ])
+ })
+
+ test('rejects substantial localized pages detected as English', async () => {
+ const docsRoot = await fixture()
+ const english = Array.from(
+ { length: 20 },
+ () => 'This localized page contains English documentation that should not be published here.'
+ ).join(' ')
+ await write(join(docsRoot, 'index.md'), '# English')
+ await write(
+ join(docsRoot, 'ru/index.md'),
+ `# Русский\n\n${'Это русская документация. '.repeat(80)}`
+ )
+ await write(join(docsRoot, 'ru/page.md'), english)
+ await writeFile(join(docsRoot, 'public/_redirects'), '', 'utf8')
+
+ const result = check(docsRoot)
+
+ expect(result.localeSuspectPages.ru).toEqual(['page.md'])
+ expect(result.errors).toEqual([
+ 'ru/page.md is detected as English and must be translated or use the canonical English page.'
+ ])
+ })
+
test('uses Markdown syntax instead of treating code parentheses as links', async () => {
const docsRoot = await fixture()
const markdown = [