Free
Pro

Diagram

An interactive node-and-edge architecture canvas on a dot grid. Drag any node with the pointer or nudge it with the arrow keys — smooth Bézier connectors and edge labels recompute live. Walkthrough: Ply Pro preview: an Angular Gantt chart and a node diagram.

Pro

Pro — licensed

Diagram — part of Ply Pro

Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.

Unlock Pro

Install architecture

Ply install pipeline

4 nodes · 4 edges
fetch sync copy wire

Installation

bash
npx ply-ui-cli add diagram

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash
npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)
// Install: npx ply-ui-cli add diagram
// Paths are relative to aliases.components (default: src/app/components)
import { DiagramComponent, DiagramEdge, DiagramNode } from './diagram/diagram.component';

@Component({
  selector: 'app-your-component',
  imports: [
    DiagramComponent
  ],
  template: `...`
})
export class YourComponent {}

API for diagram — generated from JSDoc in the library source.

API reference for diagram
APIMemberTypeDefaultDescription
DiagramEdgefromstring — —
DiagramEdgetostring — —
DiagramEdgelabelstring — Optional pill label drawn on the midpoint of the curve.
DiagramNodeidstring — —
DiagramNodelabelstring — —
DiagramNodecaptionstring — —
DiagramNodeiconstring — Optional `ply-icon` name rendered inside the node badge.
DiagramNodeaccentboolean — Highlights the node with the primary accent border.
DiagramNodexnumber — —
DiagramNodeynumber — —
ply-diagramclassstring''Extra host classes merged via `cn()`.
ply-diagramnodesDiagramNode[][]Nodes. Two-way bindable so dragging or arrow-key nudging updates the caller.
ply-diagramedgesDiagramEdge[][]Connectors between node ids.
ply-diagramlabelunknown'Diagram'Accessible name for the canvas.