AI-native design editor. Open-source Figma alternative.
Sync docs with README motivation: landing, features, comparison, user guide
Anton A S5b7de9fe9915
diff --git a/docs/guide/comparison.md b/docs/guide/comparison.mdindex 0f1e2e468..de3c27fd0 100644--- a/docs/guide/comparison.md+++ b/docs/guide/comparison.md@@ -1,5 +1,7 @@# Open Pencil vs Penpot: Architecture & Performance Comparison+Why compare? OpenPencil exists because closed design platforms control what's possible. Understanding architectural differences shows what an open, local-first alternative can do differently.+## 1. Scale & Codebase Size| Metric | Open Pencil | Penpot |diff --git a/docs/guide/features.md b/docs/guide/features.mdindex 4e86a4ec7..4d250a8d9 100644--- a/docs/guide/features.md+++ b/docs/guide/features.md@@ -1,5 +1,9 @@# Features+## Why OpenPencil++Design tools are a supply chain problem. When your tool is closed-source, the vendor controls what's possible — they can break your automation overnight. OpenPencil is an open-source alternative: MIT-licensed, Figma-compatible, fully local, and programmable.+## Figma .fig File Import & ExportOpen and save native Figma files directly. Import decodes the full 194-definition Kiwi schema including NodeChange messages with ~390 fields. Export encodes the scene graph back to Kiwi binary with Zstd compression and thumbnail generation. Save (<kbd>⌘</kbd><kbd>S</kbd>) and Save As (<kbd>⇧</kbd><kbd>⌘</kbd><kbd>S</kbd>) use native OS dialogs on the desktop app. The import/export pipeline supports round-trip fidelity.diff --git a/docs/index.md b/docs/index.mdindex 51d97b206..f635d95ea 100644--- a/docs/index.md+++ b/docs/index.md@@ -1,11 +1,11 @@---layout: home-description: Open-source, AI-native design editor. Figma alternative with .fig import/export, auto-layout, gradients, effects, sections, pages, and 117 MCP tools.+description: Open-source Figma alternative. Fully local, AI-native, programmable.hero:name: OpenPenciltext: AI-Native Design Editor- tagline: Open-source Figma alternative. Self-host it, extend it, talk to it.+ tagline: Open-source Figma alternative. Fully local, AI-native, programmable.image:src: /favicon.svgalt: OpenPencil@@ -18,22 +18,19 @@ hero:link: https://github.com/dannote/open-pencilfeatures:+ - icon: 📖+ title: Open Source+ details: MIT license. Read and modify everything — the editor, the engine, the file codec.- icon: 📂- title: Figma .fig Import & Export- details: Open and save native Figma files. Kiwi codec, Zstd compression, round-trip fidelity.- - icon: 🎨- title: Advanced Rendering- details: Gradients, image fills, effects (shadows, blurs), stroke styles, arcs — full tier 1 parity.- - icon: 📄- title: Pages & Sections- details: Multi-page documents with per-page viewport. Sections for canvas organization with auto-adopt.- - icon: 📐- title: Auto-Layout- details: Yoga WASM flexbox engine. Direction, gap, padding, justify, align, child sizing.+ title: Figma-Compatible+ details: Opens .fig files natively. Copy/paste between apps. Kiwi codec with round-trip fidelity.- icon: 🤖- title: AI-Native (MCP)- details: 117 MCP tools expose the entire editor API to AI agents. Design with conversation.+ title: AI-Native+ details: Built-in chat with tool use. 10 design tools wired to the editor. No API restrictions.- icon: 🖥️- title: Desktop App- details: Tauri v2 shell — ~5MB native app with native menus and file dialogs on all platforms.+ title: Fully Local+ details: No account, no server, no internet required. ~5 MB Tauri desktop app.+ - icon: ⚡+ title: Programmable+ details: Headless CLI for .fig inspection and export. Every operation is scriptable. JSX renderer.---diff --git a/docs/user-guide/index.md b/docs/user-guide/index.mdindex fdc5d8238..07b78f101 100644--- a/docs/user-guide/index.md+++ b/docs/user-guide/index.md@@ -6,7 +6,7 @@ description: Learn how to use OpenPencil — canvas navigation, drawing, text, c# User Guide-OpenPencil is an open-source design editor with full .fig file compatibility. This guide covers everything you need to know to use the editor effectively.+OpenPencil is an open-source, Figma-compatible design editor — fully local, AI-native, and programmable. This guide covers everything you need to know to use the editor effectively.::: tip Cross-platform shortcutsThroughout this guide, keyboard shortcuts use Mac notation: **⌘** = Command (Ctrl on Windows/Linux), **⌥** = Option (Alt), **⇧** = Shift.diff --git a/openspec/changes/archive/2026-03-01-docs-motivation-sync/.openspec.yaml b/openspec/changes/archive/2026-03-01-docs-motivation-sync/.openspec.yamlnew file mode 100644index 000000000..0b4defe0e--- /dev/null+++ b/openspec/changes/archive/2026-03-01-docs-motivation-sync/.openspec.yaml@@ -0,0 +1,2 @@+schema: spec-driven+created: 2026-03-01diff --git a/openspec/changes/archive/2026-03-01-docs-motivation-sync/design.md b/openspec/changes/archive/2026-03-01-docs-motivation-sync/design.mdnew file mode 100644index 000000000..2a11f1b95--- /dev/null+++ b/openspec/changes/archive/2026-03-01-docs-motivation-sync/design.md@@ -0,0 +1,28 @@+## Context++The README now has a "Why" section with 5 bullet points: open source, Figma-compatible, AI-native, fully local, programmable. The docs site doesn't reflect this messaging.++## Goals / Non-Goals++**Goals:**+- Bring the motivation narrative from README into the docs site's key pages+- Consistent messaging across landing, features, comparison, and user guide++**Non-Goals:**+- Rewriting existing feature documentation+- Adding new feature coverage+- Changing the site structure++## Decisions++**Landing page**: Update hero tagline to "Figma-compatible, AI-first, fully local" (matches README). Update feature cards to emphasize the 5 pillars.++**Features page**: Add a brief "Why OpenPencil" intro section before the feature list, derived from README's Why section. Keep concise — 2-3 sentences max, not a copy of the full README section.++**Comparison page**: Add a motivation paragraph to the intro explaining why architectural comparison matters (open vs closed platform).++**User guide**: Light touch — update intro to mention "open-source, Figma-compatible" positioning.++## Risks / Trade-offs++- [Drift] README and docs could diverge again → docs reference the same narrative, not copy itdiff --git a/openspec/changes/archive/2026-03-01-docs-motivation-sync/proposal.md b/openspec/changes/archive/2026-03-01-docs-motivation-sync/proposal.mdnew file mode 100644index 000000000..1727b108b--- /dev/null+++ b/openspec/changes/archive/2026-03-01-docs-motivation-sync/proposal.md@@ -0,0 +1,29 @@+## Why++README gained a "Why" section explaining OpenPencil's motivation (Figma closing CDP access, supply chain problem, open-source alternative). The docs landing page, comparison page, and features page don't reflect this narrative. The docs still present OpenPencil generically as "AI-native design editor" without the motivation story.++## What Changes++- Update `docs/index.md` landing page hero tagline and features to incorporate the motivation narrative (open source, Figma-compatible, AI-native, fully local, programmable)+- Update `docs/guide/comparison.md` intro to reference the motivation (why an alternative matters)+- Update `docs/guide/features.md` to add a "Why OpenPencil" section at the top, derived from README+- Update `docs/user-guide/index.md` intro to align with the motivation messaging++## Capabilities++### New Capabilities++(none)++### Modified Capabilities++- `vitepress-docs`: Landing page hero/features and comparison intro updated to reflect the README motivation section+- `userdoc-articles`: User guide landing page intro updated with motivation messaging++## Impact++- `docs/index.md` — hero text and feature cards+- `docs/guide/comparison.md` — intro paragraph+- `docs/guide/features.md` — new intro section+- `docs/user-guide/index.md` — intro text+- No code changes, no dependency changesdiff --git a/openspec/changes/archive/2026-03-01-docs-motivation-sync/specs/userdoc-articles/spec.md b/openspec/changes/archive/2026-03-01-docs-motivation-sync/specs/userdoc-articles/spec.mdnew file mode 100644index 000000000..304beb61c--- /dev/null+++ b/openspec/changes/archive/2026-03-01-docs-motivation-sync/specs/userdoc-articles/spec.md@@ -0,0 +1,8 @@+## MODIFIED Requirements++### Requirement: User guide landing page+The docs site SHALL have an `index.md` at `docs/user-guide/` with the title "User Guide", a brief description positioning OpenPencil as an open-source, Figma-compatible design editor, and links to all user guide articles organized by category.++#### Scenario: Landing page renders+- **WHEN** user navigates to /user-guide/+- **THEN** a page with "User Guide" title, open-source/Figma-compatible positioning, and categorized links to all articles is displayeddiff --git a/openspec/changes/archive/2026-03-01-docs-motivation-sync/specs/vitepress-docs/spec.md b/openspec/changes/archive/2026-03-01-docs-motivation-sync/specs/vitepress-docs/spec.mdnew file mode 100644index 000000000..19b30ce51--- /dev/null+++ b/openspec/changes/archive/2026-03-01-docs-motivation-sync/specs/vitepress-docs/spec.md@@ -0,0 +1,34 @@+## MODIFIED Requirements++### Requirement: Landing page+The docs site SHALL have an index.md landing page with project name, tagline "Open-source Figma alternative. Fully local, AI-native, programmable.", and quick navigation to guide and reference sections. The feature cards SHALL reflect the five pillars: open source, Figma-compatible, AI-native, fully local, programmable.++#### Scenario: Landing page loads+- **WHEN** user opens the docs site root URL+- **THEN** a landing page with "OpenPencil" title, the updated tagline, and pillar-based feature highlights is displayed++### Requirement: Guide section+The docs site SHALL include a guide section with pages: Getting Started, Features, Architecture, Tech Stack. The Features page SHALL begin with a brief motivation section explaining why OpenPencil exists (open platform vs closed tooling). The Features page SHALL document components (create, instance, detach, component sets), context menu, z-order, visibility/lock toggle, move-to-page, and rendering optimizations (viewport culling, RAF coalescing).++#### Scenario: Getting started page+- **WHEN** user navigates to the Getting Started guide+- **THEN** installation instructions (`bun install`, `bun run dev`) and desktop app setup are displayed++#### Scenario: Architecture page+- **WHEN** user navigates to the Architecture guide+- **THEN** the system architecture diagram and component descriptions from PLAN.md are displayed++#### Scenario: Features page motivation section+- **WHEN** user reads the features page+- **THEN** a brief intro explains why OpenPencil exists before the feature list++#### Scenario: Features page documents components+- **WHEN** user reads the features page+- **THEN** component creation, instances, detach, component sets, and context menu are described++### Requirement: Comparison page+The docs site SHALL include a comparison page at `/guide/comparison` documenting architecture, rendering, data model, layout, file format, state management, developer experience, and performance differences between OpenPencil and Penpot. The intro SHALL reference the motivation for an open alternative to closed design platforms.++#### Scenario: Comparison page renders+- **WHEN** user navigates to /guide/comparison+- **THEN** a page with all comparison sections, the summary table, and a motivation context intro is displayeddiff --git a/openspec/changes/archive/2026-03-01-docs-motivation-sync/tasks.md b/openspec/changes/archive/2026-03-01-docs-motivation-sync/tasks.mdnew file mode 100644index 000000000..41325c8c8--- /dev/null+++ b/openspec/changes/archive/2026-03-01-docs-motivation-sync/tasks.md@@ -0,0 +1,15 @@+## 1. Landing Page++- [x] 1.1 Update `docs/index.md` — change hero `tagline` to "Open-source Figma alternative. Fully local, AI-native, programmable." Update `description` frontmatter to match. Replace 6 feature cards with 5 pillar-based cards: Open Source (MIT, read/modify everything), Figma-Compatible (.fig import/export, clipboard), AI-Native (built-in chat, 10 tools, no API restrictions), Fully Local (no account/server/internet, ~5MB Tauri), Programmable (headless CLI, scriptable operations, JSX renderer)++## 2. Features Page++- [x] 2.1 Update `docs/guide/features.md` — add "## Why OpenPencil" as first section with text: "Design tools are a supply chain problem. When your tool is closed-source, the vendor controls what's possible — they can break your automation overnight. OpenPencil is an open-source alternative: MIT-licensed, Figma-compatible, fully local, and programmable."++## 3. Comparison Page++- [x] 3.1 Update `docs/guide/comparison.md` — prepend a paragraph after the H1: "Why compare? OpenPencil exists because closed design platforms control what's possible. Understanding architectural differences shows what an open, local-first alternative can do differently."++## 4. User Guide Landing++- [x] 4.1 Update `docs/user-guide/index.md` — change intro from "OpenPencil is an open-source design editor with full .fig file compatibility." to "OpenPencil is an open-source, Figma-compatible design editor — fully local, AI-native, and programmable."diff --git a/openspec/specs/userdoc-articles/spec.md b/openspec/specs/userdoc-articles/spec.mdindex 1eb9b277d..0474a0ab7 100644--- a/openspec/specs/userdoc-articles/spec.md+++ b/openspec/specs/userdoc-articles/spec.md@@ -4,11 +4,11 @@TBD - created by archiving change vitepress-userdoc. Update Purpose after archive.## Requirements### Requirement: User guide landing page-The docs site SHALL have an `index.md` at `docs/user-guide/` with the title "User Guide", a brief description of OpenPencil's capabilities, and links to all user guide articles organized by category.+The docs site SHALL have an `index.md` at `docs/user-guide/` with the title "User Guide", a brief description positioning OpenPencil as an open-source, Figma-compatible design editor, and links to all user guide articles organized by category.#### Scenario: Landing page renders- **WHEN** user navigates to /user-guide/-- **THEN** a page with "User Guide" title and categorized links to all articles is displayed+- **THEN** a page with "User Guide" title, open-source/Figma-compatible positioning, and categorized links to all articles is displayed### Requirement: Canvas navigation articleThe docs site SHALL have a `canvas-navigation.md` article in `docs/user-guide/` documenting panning (space+drag, middle mouse, trackpad, hand tool), zooming (ctrl+scroll, pinch, keyboard shortcuts), and zoom reset.diff --git a/openspec/specs/vitepress-docs/spec.md b/openspec/specs/vitepress-docs/spec.mdindex f4e31900d..df19e78b4 100644--- a/openspec/specs/vitepress-docs/spec.md+++ b/openspec/specs/vitepress-docs/spec.md@@ -15,14 +15,14 @@ The project SHALL have a VitePress documentation site in the `docs/` directory w- **THEN** VitePress produces a static site in `docs/.vitepress/dist/`### Requirement: Landing page-The docs site SHALL have an index.md landing page with project name, tagline, and quick navigation to guide and reference sections.+The docs site SHALL have an index.md landing page with project name, tagline "Open-source Figma alternative. Fully local, AI-native, programmable.", and quick navigation to guide and reference sections. The feature cards SHALL reflect the five pillars: open source, Figma-compatible, AI-native, fully local, programmable.#### Scenario: Landing page loads- **WHEN** user opens the docs site root URL-- **THEN** a landing page with "OpenPencil" title and feature highlights is displayed+- **THEN** a landing page with "OpenPencil" title, the updated tagline, and pillar-based feature highlights is displayed### Requirement: Guide section-The docs site SHALL include a guide section with pages: Getting Started, Features, Architecture, Tech Stack. The Features page SHALL document components (create, instance, detach, component sets), context menu, z-order, visibility/lock toggle, move-to-page, and rendering optimizations (viewport culling, RAF coalescing).+The docs site SHALL include a guide section with pages: Getting Started, Features, Architecture, Tech Stack. The Features page SHALL begin with a brief motivation section explaining why OpenPencil exists (open platform vs closed tooling). The Features page SHALL document components (create, instance, detach, component sets), context menu, z-order, visibility/lock toggle, move-to-page, and rendering optimizations (viewport culling, RAF coalescing).#### Scenario: Getting started page- **WHEN** user navigates to the Getting Started guide@@ -32,6 +32,10 @@ The docs site SHALL include a guide section with pages: Getting Started, Feature- **WHEN** user navigates to the Architecture guide- **THEN** the system architecture diagram and component descriptions from PLAN.md are displayed+#### Scenario: Features page motivation section+- **WHEN** user reads the features page+- **THEN** a brief intro explains why OpenPencil exists before the feature list+#### Scenario: Features page documents components- **WHEN** user reads the features page- **THEN** component creation, instances, detach, component sets, and context menu are described@@ -133,11 +137,11 @@ The roadmap page SHALL reflect that .fig export, sections, pages, hover highligh- **THEN** Phase 3 shows delivered items and Phase 4 shows partial progress with component features### Requirement: Comparison page-The docs site SHALL include a comparison page at `/guide/comparison` documenting architecture, rendering, data model, layout, file format, state management, developer experience, and performance differences between OpenPencil and Penpot.+The docs site SHALL include a comparison page at `/guide/comparison` documenting architecture, rendering, data model, layout, file format, state management, developer experience, and performance differences between OpenPencil and Penpot. The intro SHALL reference the motivation for an open alternative to closed design platforms.#### Scenario: Comparison page renders- **WHEN** user navigates to /guide/comparison-- **THEN** a page with all 10 comparison sections and the summary table is displayed+- **THEN** a page with all comparison sections, the summary table, and a motivation context intro is displayed### Requirement: Comparison in sidebar navigationThe VitePress sidebar SHALL include a "Comparison" link in the Guide section after Tech Stack.