Skip to content

Shapes

Nodes can use different shapes to visually represent their role in your architecture. If no shape is specified, rectangle is used by default.

There are 19 built-in shapes:

Shape Typical Use
rectangle Generic service or component (default)
cylinder Database or storage
barrel Data warehouse or bulk storage
document Configuration file, docs, or secrets
queue Message queue (SQS, RabbitMQ)
diamond Decision point, load balancer, or router
shield Security, authentication, or firewall
server Backend server or API
hexagon Microservice
circle Simple endpoint or status indicator
cloud Cloud provider or external service
person User or actor
browser Web application or frontend
mobile Mobile application
function Serverless function (Lambda, Cloud Function)
container Container or orchestration (Docker, K8s)
pipeline CI/CD pipeline or data pipeline
hub Event bus, message broker, or central hub
gear Processing engine, search engine, or worker
node id="web" title="Web App" shape="browser"
node id="api" title="API Server" shape="server"
node id="db" title="PostgreSQL" shape="cylinder"
node id="auth" title="Auth" shape="shield"
node id="queue" title="Task Queue" shape="queue"
node id="user" title="Customer" shape="person"
node id="lambda" title="Processor" shape="function"
node id="k8s" title="Kubernetes" shape="container"
node id="search" title="Elasticsearch" shape="gear"
node id="bus" title="Event Bus" shape="hub"

Pick shapes that match the component’s role:

  • Frontend: browser, mobile
  • Backend: server, hexagon
  • Data: cylinder, barrel, queue
  • Security: shield, diamond
  • Infrastructure: container, cloud, pipeline
  • People: person
  • Processing: gear, function
  • Integration: hub, diamond