Swift package · macOS 13+
DiagramKit
A native framework for editable, AI-assisted diagrams: a headless document model, automatic layout, an AppKit canvas, interchange, plugins, and automation.
DiagramKit
From an empty package to an editable canvas.
Import the umbrella module when you want the whole framework, or depend only on the focused products your application needs.
dependencies: [
.package(
url: "https://github.com/rivoli-ai/DiagramKit.git",
from: "0.1.0"
)
]
import DiagramKit Guides
Welcome to DiagramKit
Choose a product and put your first editable diagram on screen.
Read guide
02Installation and modules
Add the package and select focused products with deliberate dependencies.
Read guide
03Getting started
Create, connect, lay out, render, and persist your first diagram.
Read guide
04Production integration
Structure document ownership, undo, persistence, and asynchronous work.
Read guide
05Architecture
Understand module boundaries, data flow, extension points, and ownership.
Read guide
06Concurrency
Work safely with the main-actor document model and Sendable snapshots.
Read guide
07Serialization
Persist native documents and handle compatibility and interchange formats.
Read guide
08Layout
Choose deterministic strategies, constraints, and connector routing.
Read guide
09Errors and testing
Handle failure domains and verify model, UI, AI, plugin, and automation behavior.
Read guide
Focused modules
Take the framework whole, or by layer.
Model and interchange
DiagramKitCore
Graphs, documents, styles, stencils, validation, serialization, and headless import/export.
Browse reference
Automatic layout
DiagramKitLayout
Grid, hierarchy, radial and force layouts, constraints, lanes, and orthogonal routing.
Browse reference
Native AppKit canvas
DiagramKitUI
Rendering, selection, direct manipulation, snapping, commands, accessibility, and export.
Browse reference
AI-assisted diagrams
DiagramKitAI
Provider-neutral generation, structured edits, explanation, streaming, repair, and telemetry.
Browse reference
Extension contracts
DiagramKitPlugin
Register stencil packs, exporters, and layout strategies through linked Swift plugins.
Browse reference
Sandboxed scripting
DiagramKitAutomation
Drive diagrams through a curated JavaScriptCore API without file-system or network access.
Browse reference
Generated from DiagramKit’s DocC catalog and public symbols.
This preview is intentionally excluded from search indexing while the publishing workflow is reviewed.