diagrams-js/clusters-grouping
Installation
SKILL.md
This skill builds on diagrams-js/getting-started and diagrams-js/provider-nodes. Read them first for foundational concepts.
diagrams-js — Clusters & Grouping
Organize diagrams visually by grouping related nodes into clusters. Support for nested clusters with automatic themed backgrounds.
Setup
import { Diagram } from "diagrams-js";
import { ECS } from "diagrams-js/aws/compute";
import { RDS } from "diagrams-js/aws/database";
const diagram = Diagram("Clustered Services");
const webCluster = diagram.cluster("Web Tier");
const web = webCluster.add(ECS("Web Server"));