# Vyuh Diagram > API reference and examples for creating, editing, saving, and exporting drawings. Use vyuh_diagram_flutter for Flutter or vyuh_diagram_core for headless Dart. Core values live in vyuh_diagram_types; JSON and SVG have separate codec packages. Start with Getting Started and the DiagramController API. ## Agents - [Agents](/agent-docs/agents/index.md) - [Install the Vyuh Diagram agent skill](/agent-docs/agents/package-skill.md) ## Guides - [The drawing API](/agent-docs/guide/api.md) - [Build your first shape library](/agent-docs/guide/build-a-library.md) - [Canvas, camera, and grids](/agent-docs/guide/canvas.md) - [Common tasks](/agent-docs/guide/common-tasks.md) - [Build a custom shape from scratch](/agent-docs/guide/custom-shape-tutorial.md) - [Create custom shapes](/agent-docs/guide/custom-shapes.md) - [Build a flowchart editor](/agent-docs/guide/editor-getting-started.md) - [Extending it with extensions](/agent-docs/guide/extending-with-extensions.md) - [8. Share verbs and shortcuts](/agent-docs/guide/flowchart-actions.md) - [9. Control the canvas and grid](/agent-docs/guide/flowchart-canvas-controls.md) - [1. Set up the canvas](/agent-docs/guide/flowchart-canvas.md) - [7. Add a custom review node](/agent-docs/guide/flowchart-custom-shapes.md) - [6. Save and load the drawing](/agent-docs/guide/flowchart-persistence.md) - [5. Show properties and connections](/agent-docs/guide/flowchart-properties.md) - [4. Connect reactive state to your UI](/agent-docs/guide/flowchart-reactivity.md) - [2. Register and create shapes](/agent-docs/guide/flowchart-shapes.md) - [3. Create the toolbar](/agent-docs/guide/flowchart-toolbar.md) - [Getting started](/agent-docs/guide/getting-started.md) - [Hello world](/agent-docs/guide/hello-world.md) - [Live data](/agent-docs/guide/live-data.md) - [Package access](/agent-docs/guide/package-access.md) - [Properties and the inspector](/agent-docs/guide/properties.md) - [SDK licensing](/agent-docs/guide/sdk-licensing.md) - [Shape behavior](/agent-docs/guide/shape-capabilities.md) - [Shape anatomy](/agent-docs/guide/shape-composition.md) - [Plain text and rich text](/agent-docs/guide/text-definitions.md) - [Theming](/agent-docs/guide/theming.md) - [Verbs and keyboard bindings](/agent-docs/guide/verbs.md) - [Vocabulary](/agent-docs/guide/vocabulary.md) ## Elements - [Appearance and painting](/agent-docs/elements/appearance.md) - [Frames and groups](/agent-docs/elements/containers.md) - [Elements](/agent-docs/elements/index.md) - [Standard element catalog](/agent-docs/elements/standard.md) - [Tables](/agent-docs/elements/tables.md) - [Text, regions and anatomy](/agent-docs/elements/text-regions.md) ## API reference - [DiagramCanvas](/agent-docs/api/canvas.md) - [Controllers, agents and collaboration](/agent-docs/api/collaboration.md) - [Extensions and options](/agent-docs/api/configuration.md) - [Connectors and labels](/agent-docs/api/connectors.md) - [Controller reference](/agent-docs/api/controller-reference.md) - [Diagram and controller](/agent-docs/api/controller.md) - [Domain diagnostics](/agent-docs/api/diagnostics.md) - [Animation & effects](/agent-docs/api/effects.md) - [Arrowheads](/agent-docs/api/extension-arrowheads.md) - [Connector routing](/agent-docs/api/extension-connectors.md) - [Graph layout](/agent-docs/api/extension-layout.md) - [Shapes library](/agent-docs/api/extension-shapes.md) - [Extension reference](/agent-docs/api/extensions.md) - [Grids and snapping](/agent-docs/api/grids.md) - [Headless text and SVG](/agent-docs/api/headless-text.md) - [Undo and redo](/agent-docs/api/history.md) - [Rules and changes](/agent-docs/api/hooks.md) - [API reference](/agent-docs/api/index.md) - [Property inspector](/agent-docs/api/inspector.md) - [Diagram JSON format](/agent-docs/api/json-format.md) - [Graph layout](/agent-docs/api/layout.md) - [License](/agent-docs/api/license.md) - [Navigation and motion](/agent-docs/api/navigation-and-motion.md) - [Output](/agent-docs/api/output.md) - [Controller ownership and lifetime](/agent-docs/api/ownership.md) - [Persistence and imports](/agent-docs/api/persistence.md) - [Rich Text extension](/agent-docs/api/rich-text.md) - [Shapes, elements and registries](/agent-docs/api/shapes.md) - [Table extension](/agent-docs/api/tables.md) - [Plain Text](/agent-docs/api/text.md) - [Verbs](/agent-docs/api/verbs.md) - [Widgets inside shapes](/agent-docs/api/widgets.md) ## Examples - [Adjustable shapes](/agent-docs/examples/adjustable.md) - [Multi-selection and arrangement](/agent-docs/examples/arrangement.md) - [Fitted and infinite canvas](/agent-docs/examples/bounds.md) - [Locks and capabilities](/agent-docs/examples/capabilities.md) - [Copy, paste and duplicate](/agent-docs/examples/clipboard.md) - [Connected cards](/agent-docs/examples/connected-cards.md) - [Create and connect atomically](/agent-docs/examples/connected-creation.md) - [Connection admission](/agent-docs/examples/connection-admission.md) - [Connector effects](/agent-docs/examples/connector-effects.md) - [Connector labels](/agent-docs/examples/connector-labels.md) - [Construction site coordination](/agent-docs/examples/construction.md) - [Frames and ownership](/agent-docs/examples/containment.md) - [Custom effect](/agent-docs/examples/custom-effect.md) - [Make a crowded network readable](/agent-docs/examples/dense-network.md) - [Editor composition](/agent-docs/examples/editor-composition.md) - [Element motion](/agent-docs/examples/element-motion.md) - [Embedded tables](/agent-docs/examples/embedded-tables.md) - [SVG and PNG downloads](/agent-docs/examples/export.md) - [Your first drawing](/agent-docs/examples/first-drawing.md) - [Workplace floor planning](/agent-docs/examples/floor-plan.md) - [MES production routing](/agent-docs/examples/flowchart.md) - [Fonts and inheritance](/agent-docs/examples/fonts.md) - [Range and whole-story formatting](/agent-docs/examples/formatting.md) - [Drawing and erasing](/agent-docs/examples/freehand.md) - [Grids and snapping](/agent-docs/examples/grids.md) - [Transactions and undo](/agent-docs/examples/history.md) - [Events and permissions](/agent-docs/examples/hooks.md) - [Images](/agent-docs/examples/images.md) - [Examples](/agent-docs/examples/index.md) - [Controller lifetime](/agent-docs/examples/lifetime.md) - [Mermaid import](/agent-docs/examples/mermaid.md) - [Minimap policies](/agent-docs/examples/minimap.md) - [Navigation and camera animation](/agent-docs/examples/navigation.md) - [Paragraphs, lists and checklists](/agent-docs/examples/paragraphs.md) - [Live energy flow](/agent-docs/examples/path-effects.md) - [Save, restore and revision conflicts](/agent-docs/examples/persistence.md) - [Plain Text](/agent-docs/examples/plain-text.md) - [Explicit ports](/agent-docs/examples/ports.md) - [Single-line and multiline regions](/agent-docs/examples/regions.md) - [Rich Text](/agent-docs/examples/rich-text.md) - [Anchors and contour routing](/agent-docs/examples/routing.md) - [Shape effects](/agent-docs/examples/shape-effects.md) - [Snap guides](/agent-docs/examples/snap-guides.md) - [Snap guide policy](/agent-docs/examples/snap-policy.md) - [Departmental swimlanes](/agent-docs/examples/swimlanes.md) - [Table styling](/agent-docs/examples/table-styling.md) - [Basic tables](/agent-docs/examples/tables.md) - [Register a custom tool](/agent-docs/examples/tools.md) - [Connected building topology](/agent-docs/examples/topology.md) - [Transform modifiers](/agent-docs/examples/transforms.md) - [Regional transport network](/agent-docs/examples/transportation.md) - [View-only diagrams](/agent-docs/examples/view-only.md) - [Warehouse execution flow](/agent-docs/examples/warehouse.md) - [Portable widget content](/agent-docs/examples/widget-fallback.md) - [Widget clipping and layering](/agent-docs/examples/widget-layers.md) - [Widget properties](/agent-docs/examples/widget-properties.md) - [Widgets inside shapes](/agent-docs/examples/widgets.md) ## Domain extensions - [Domain extensions](/agent-docs/extensions/index.md) - [Layout](/agent-docs/extensions/layouts.md) - [Application compositions](/agent-docs/extensions/starters.md) ## Reference - [Capabilities](/agent-docs/reference/capabilities.md) ## Optional - [Complete reference](/llms-full.txt): Combined documentation; use individual pages for smaller context.