-
Activity diagrams: decision and merge nodes
IntroductionActivity diagrams model business processes in a system. The core elements are decision nodes (branching logic) and merge nodes (converging paths). Both are drawn as diamonds: a decision... -
Activity diagrams: parallel fork/join
IntroductionParallel activity diagrams express a scenario where multiple tasks execute concurrently and then converge. Both PlantUML and Mermaid support fork/join-style syntax, though their de... -
Activity diagrams: send signal
IntroductionIn UML activity diagrams, a signal represents an asynchronous, broadcastable event notification: the sender emits the signal and immediately continues its own flow without waiting for a... -
Activity diagrams: swimlanes / partitions
IntroductionActivity diagrams describe the flow of actions in a business process. Swimlanes group actions by responsible party or system partition, making the flow clear at a glance. PlantUML has n... -
Activity diagrams: time events
IntroductionA “time event” is one of the most frequently overlooked semantics in UML activity diagrams: a waiting activity does not wait forever, it is interrupted by a time condition and takes a d... -
ArchiMate elements and relationships
IntroductionArchiMate is an enterprise architecture modeling language that splits a system into three layers of elements — business, application, and technology — plus a set of relationship types. ... -
Architecture diagrams: icons and grouping
IntroductionArchitecture diagrams are purpose-built for software architecture documentation, supporting icons, hierarchical grouping, and cross-layer service references. PlantUML uses rectangle... -
Typesetting math formulas with PlantUML and Mermaid
IntroductionFormulas show up in architecture diagrams more often than you would expect: the quadratic formula, a discount rule, an SLA percentage, the expected wait time of a queue. The usual worka... -
Block diagrams: block-beta columns
IntroductionBlock diagrams describe the structural composition of a system, ideal for showing hardware/software layers or data flow. Both PlantUML and Mermaid support block diagrams, though th... -
C4 Model: Component Diagrams
IntroductionThe C4 model is a hierarchical approach to visualizing software system architecture — Context, Container, Component, and Code. This article focuses on Component diagrams, showing how to... -
C4 model: Container diagrams
IntroductionThe C4 model provides a layered approach to describing software architecture — Context, Container, Component, and Code — with Container diagrams focusing on the key application processe... -
C4 model: Context diagrams
IntroductionThe C4 model is a layered approach to visualising software architecture — Context → Container → Component → Code. The Context diagram is the highest level, showing system boundaries, in... -
Class diagrams: abstract vs concrete classes
IntroductionAn abstract class cannot be instantiated directly — it defines a skeleton of attributes and methods that its subclasses must implement. A concrete class inherits from the abstract class... -
Class diagrams: generics and collection types
IntroductionGenerics and collection types are core concepts in object-oriented design. In class diagrams, generics constrain the parameterized types of class members, return values, and parameters.... -
Class diagrams: associative classes
IntroductionIn a class diagram, most relationships are just “lines” — draw an association between Student and Course, put a multiplicity at each end, and you’re done. But some relationships carry a... -
Class diagrams: multiplicity
IntroductionThe little numbers you write at the end of an association line in a class diagram — 1, 0..1, * — are the multiplicity. They answer a very practical question: standing on side A, how man... -
Class diagrams: packages and namespaces
IntroductionClass diagrams don’t just show relationships — they also use packages or namespaces to organize model elements into a hierarchical structure. This article uses the same scenario to comp... -
Class diagrams: qualified associations
IntroductionAn ordinary class-diagram association only says “A is related to B”. But many relationships are more precise than that: A points at one specific member of a set of Bs via some key. A Sh... -
Class diagrams: 6 UML relationship arrows
IntroductionClass diagrams are a core part of UML, describing the static relationships between classes in a system. Both PlantUML and Mermaid make it easy to draw the six most common relationship t... -
Class diagrams: stereotypes and interfaces
IntroductionClass diagrams are the core of object-oriented modeling. Beyond ordinary classes, stereotypes (such as <<interface>>, <<abstract>>, <<service>>) mark... -
Class vs ER diagram: domain modeling
IntroductionClass diagrams and ER diagrams both describe structured data, but with different focuses: class diagrams target object-oriented design with classes, attributes, and methods; ER diagrams... -
Component diagrams: interfaces and dependencies
IntroductionComponent diagrams are a core part of architecture documentation, showing module boundaries, interface contracts, and dependency relationships. PlantUML has native component and interfa... -
Component diagrams: ports
IntroductionA component on a component diagram is rarely just “a box with one arrow” — it usually exposes a number of ports, each with its own name and direction: inbound ports receive requests fro... -
Deployment diagrams: 3D boxes
IntroductionUML deployment diagrams use a very particular kind of box: a 3D cube with a slanted lid. It is not a rounded rectangle with a drop shadow — it is an actual cube projection, with the top... -
Deployment diagrams: cloud provider icons
IntroductionWhen you draw an architecture diagram, a plain box labelled “server” rarely tells the reader which cloud it belongs to. PlantUML ships official symbol libraries (stdlib) for AWS, Azure ... -
Deployment diagrams: nodes and artifacts
IntroductionA deployment diagram visualizes the physical layout of a software system across hardware nodes and the artifacts deployed on each. This post renders the same deployment structure in bot... -
ditaa: ASCII art to diagram
Introductionditaa is a notation for “describing shapes as text”: you hand-write +---+ borders and | verticals in the source, and the backend renders them into an actual diagram. PlantUML ships the ... -
EBNF Grammar Diagrams: Turning a Formal Grammar into a Readable Derivation Chart
IntroductionEBNF is the standard notation for describing the syntax of a formal language: rule after rule, written with great precision — and read like a wall of symbols. In expr = term , { ( ... -
ER diagrams: cardinality and identifying relations
IntroductionER diagrams (Entity-Relationship diagrams) describe entities, attributes, and their connections in a data model. Cardinality expresses the numerical constraint between two entities, whi... -
ER diagrams: attributes and keys
IntroductionThe real payload of an ER diagram lives inside the entities: the attributes, and the primary / foreign / unique key constraints among them. Those constraints decide how the ta... -
ER diagrams: weak entities
IntroductionA weak entity is one that does not have a full primary key of its own and depends on a strong (owner) entity for its identification. Its primary key is composed of a partial key plus th... -
Using a flowchart as a state machine: PlantUML and Mermaid
IntroductionState machines have a dedicated diagram type, so drawing one should obviously use state diagram syntax. In practice, three things keep pushing you back to flowchart: the toolchain only ... -
Flowcharts: click events and tooltips
IntroductionFlowcharts are not just static diagrams — they can embed hyperlinks and click events, letting readers click a node to jump to a page or trigger a tooltip. This post shows how both engin... -
Flowcharts: LR / TB / RL / BT directions
IntroductionFlowcharts are one of the most commonly used diagram types. Both PlantUML and Mermaid let you specify the layout direction with a simple directive: left to right direction (or LR) and t... -
Flowcharts: edge styles and arrows
IntroductionEdges in a flowchart are the lines connecting nodes — they can be undirected, directed with arrows, dashed for optional paths, or bold for emphasis. Both PlantUML and Mermaid support th... -
Flowcharts: linkStyle interpolation
IntroductionThe connectors in a flowchart are the most overlooked and most semantically loaded part of the drawing: when the happy path, the error path and the audit path all look the same, readers... -
Flowcharts: classDef styling
IntroductionOnce a flowchart has more than a couple of branches, the “happy path” and the “failure path” start to look identical, and readers have to read every label to tell them apart. Coloring t... -
Flowcharts: Subgraph Grouping
IntroductionFlowcharts describe business or system processes. When a diagram grows large, grouping related steps into subgraph blocks makes it easier to read and maintain. This post shows how to wr... -
Gantt charts: axis formats (date / duration)
IntroductionA Gantt chart’s horizontal axis is a time axis, so how the dates are parsed and how the ticks are labelled decides whether the chart reads well. PlantUML has no dedicated axis-format di... -
Gantt charts: task dependencies
IntroductionGantt charts are one of the most widely used project management visuals, showing task start dates, durations, and dependencies. This tutorial covers how to draw Gantt charts with depend... -
Gantt charts: todayMarker
IntroductionGantt charts are a staple of project management, visualizing task schedules and progress. todayMarker draws a vertical line at the current date, making it immediately clear how each tas... -
Gantt chart vs timeline diagram
IntroductionGantt charts and timelines are two common visualizations in project management. Both PlantUML and Mermaid support these diagram types, but their syntax and output differ. This post comp... -
Git graphs: branches, merges, cherry-pick
IntroductionGit graph diagrams help developers understand branch creation, merge conflicts, and cherry-pick operations. Both PlantUML and Mermaid support text-based Git branch diagrams, making them... -
Git graphs: cherry-pick and revert
Introductioncherry-pick and revert are the two Git commands whose history is hardest to remember: the first copies a commit onto another branch, the second undoes an old commit with a new one. A br... -
Git graphs: tags
IntroductionA tag is a permanent marker on a commit — v1.0, v2.0-rc1 and so on. In a Git history graph a tag usually shows up as a labelled node, telling the reader “this line is a release point”. ... -
User journeys: sections, tasks, actors
IntroductionJourney diagrams visualize the steps different actors complete across phases of a process. Both PlantUML and Mermaid support this diagram type, but their syntax differs significantly. T... -
Render JSON / YAML as a diagram
IntroductionRaw config and API payloads are tedious to read: a single order JSON expands into a dozen indented lines, and a YAML deployment manifest into dozens of nested ones. Both engines have a ... -
Kanban boards: cards and columns
IntroductionA Kanban Board visualizes workflow stages using columns and cards. This article shows how to render the same board using PlantUML salt syntax and Mermaid’s native kanban diagram type. P... -
Mermaid Flowchart advanced: node shapes, edges, Subgraph grouping, and Layout directions
Mermaid’s Flowchart is its flagship feature — closer to hand-drawn diagrams than PlantUML’s Activity diagram. This post covers everything: shapes, edges, Subgraph, directions, styling, and how it ... -
Mermaid Gantt charts: project timelines, milestones, and dependencies
Mermaid’s Gantt chart is a project management powerhouse — describe task timelines, milestones, and dependencies in text, embed directly in docs. PlantUML’s Gantt support is weak; Mermaid is the c... -
Mermaid mindmaps: the complete syntax template
Mermaid mindmaps reached stable in Mermaid 10.5. They use indentation for hierarchy and shape prefixes for node shape — cleaner than PlantUML’s * / ** syntax. This article gives you a copy-pa... -
Mermaid State Diagram: state machines, transitions, and concurrent states
Mermaid’s State Diagram lets you describe state machines in plain text — faster than Visio, more precise than Flowchart for describing entity lifecycles. Ideal for: order status, user lifecycle, a... -
Mindmaps: node shapes
IntroductionMind maps are a popular way to organize ideas hierarchically. Both PlantUML and Mermaid support drawing them from plain text. This post compares their node shape syntax. PlantUMLPlantUM... -
When to use mindmap vs flowchart
IntroductionMind maps and flowcharts are both popular visual tools, but they serve different purposes: mind maps are best for brainstorming and organizing ideas in a hierarchical, radial structure;... -
Network topology diagrams with PlantUML and Mermaid
IntroductionA network topology diagram is one of the most common artifacts in operations and architecture docs: it shows how servers and links are arranged across the public internet, a DMZ, and th... -
Object diagrams: instance snapshots
IntroductionAn Object Diagram records concrete instances and their attribute values at a specific point in time, serving as a structural snapshot of a class diagram. While class diagrams model abst... -
Packet diagrams: fields and bits
IntroductionPacket diagrams are used to describe protocol header structures, byte layouts, and field semantics. This article compares PlantUML and Mermaid for drawing Packet diagrams. PlantUML12345... -
Pie charts: titles and data labels
IntroductionPie charts visualize proportions of parts against a whole and are a staple of data visualization. This article compares PlantUML and Mermaid syntax for drawing pie charts with titles an... -
PlantUML activity diagrams: branching to concurrent
Activity diagrams are often overlooked — they’re more powerful than flowcharts. This covers everything from basics to fork/join/exception handling. Activity vs Flowchart Dimension Flo... -
PlantUML with AI — prompt patterns for Copilot / Cursor auto-generation
In 2025-2026, LLMs can already convert a 5-sentence description into PlantUML code. This post distils the prompt templates, common errors, debugging tricks, and human-review rules I’ve tested. LL... -
7 PlantUML anti-patterns
This isn’t about how to use PlantUML. It’s about seven ways that “work, but suck” — pulled from real PR reviews and rewrites of my own old diagrams. 1. One diagram, 200 linesThe most common one. ... -
Blue/Green / Canary / Feature Flag / A/B testing: traffic shift, rollback
Releasing a new version is not “push to all” — each of the four strategies has trade-offs. This is Blue/Green / Canary / Feature Flag / A/B test architecture, traffic shif... -
Drawing clean architecture diagrams in C4 with PlantUML
C4 is a methodology that gives architecture diagrams a fixed storyboard; PlantUML is its best carrier. Here’s the shortest path from zero to productive. What is C4C4, from Simon Brown, splits arc... -
CDN and edge cache architecture: cache strategies, breakdown/avalanche/penetration, Cache-Control practice
CDN is more than “make images load fast” — it’s edge compute + cache strategy + security combined. This is CDN hierarchy, cache strategies, Cache-Control header deep-dive, three cache disasters an... -
PlantUML in CI/CD: GitHub Actions auto-render, PR checks, and drift detection
PlantUML diagrams are code, but unlike regular code they have no lint/compile checks. This post covers: auto-render on every push, PR diagram diff comments, drift detection, and full CI pipel... -
PlantUML + CI: 4 ways to keep diagrams from going stale
“Our architecture diagram is out of date” is a universal team pain. Here’s how to use CI to bind diagrams to the codebase — auto-check, auto-rerender, staleness alerts, PR thumbnails. The anti-pa... -
PlantUML CJK / Emoji / special-character rendering foot-guns and font setup
PlantUML’s default font DejaVu Sans only ships Latin glyphs. Chinese / Japanese / Korean / Emoji either render as boxes or vanish entirely. This is the font configuration field guid... -
PlantUML CLI power user — batch, stdin/stdout, CI, incremental builds
Most people stop at plantuml file.puml — but the command line can do far more than that. This post distils the “power user” play book: batching, CI, watch, pipes, custom pre-processing. The minim... -
PlantUML class diagrams: abstract, interface, association, dependency, qualifiers
The class diagram is the most-used, most-misused UML diagram. Easy to read in a single example; harder to draw when domain semantics get complex. This walks every relationship type once, end to en... -
PlantUML component & deployment diagrams: code to production
Class diagrams show “how classes relate.” Component diagrams show “how files / modules assemble.” Deployment diagrams show “how nodes connect at runtime.” Stack the three — that’s the standar... -
Embedding PlantUML in Confluence / Jira / Notion
The team wiki is the biggest consumer of PlantUML diagrams. This is the field guide for getting .puml files rendered into clickable SVG inside Confluence / Jira / Notion, including the s... -
Data-driven PlantUML — generating diagrams from a database or API
Use PlantUML + a few lines of script, so your diagrams always follow reality. Why data-driven?The most common embarrassment with business diagrams: A column gets added to the DB; the ER diagram ... -
Database schema evolution: Flyway/Liquibase/Sqitch + PlantUML ER diagrams
Database schema evolution is the backend’s most common source of breakage — add column, drop column, change type, change constraint, every time you need to plan “how to do this without downtime, h... -
PlantUML deployment diagrams: blue-green, canary, and rolling deployments
Deployment diagrams describe the physical structure of your software — which servers, containers, and networks it runs on. PlantUML’s deployment view precisely captures servers, containers, networ... -
Keeping PlantUML diagrams from rotting with unit tests
PlantUML lives in .puml files and rots like code does — broken syntax, layout drift, diagrams out of sync with the architecture. This is the three-test approach that makes diagrams a first-class C... -
PlantUML in containers: Docker / Podman / multi-version isolation
PlantUML deployment shape depends on usage scale. This is the trade-off between CLI, Docker, Podman, Kubernetes sidecar, plus security hardening, performance monitoring, and multi-version isolatio... -
PlantUML in documentation sites — Hexo, MkDocs, Sphinx and Docusaurus
Diagrams in docs sites — the best approach depends on the framework. Here are the actual configs for 4 popular tools. Why does this need a dedicated post?PlantUML source and rendered output are s... -
PlantUML in enterprise wikis — Lark / Confluence / Notion three approaches
Enterprise docs are dense, easy to search, but rendering “PlantUML source + diagram” inside Lark / Confluence / Notion differs sharply. Below are three real approaches for the most-used ... -
PlantUML ER diagrams: from database schema to entity relationship diagrams
ER (Entity Relationship) diagrams are the most important tool in database design. PlantUML’s ER diagram syntax turns your schema into a clean, version-controllable diagram that lives next to your ... -
PlantUML ER diagrams: data modeling & table relationships
ER diagrams (entity-relationship) are usually the first step in database design. PlantUML’s ER syntax is weaker than Mermaid’s, but it works and stays in the same family as your other UML diagrams... -
PlantUML export post-processing: SVG to PDF / PPT / Markdown embedding
PlantUML outputs SVG by default, but real projects need to embed diagrams in PDF, PPT, Word, Notion, and enterprise wikis. This is the post-processing script collection, foot-guns, and performance... -
Render PlantUML from code in Hexo (server-side / client-side)
Two ways to put PlantUML diagrams into a Hexo blog — server-side pre-render, or client-side live render. The questionYou have a Hexo blog. You want PlantUML diagrams to show up in your posts. How... -
PlantUML git lifecycle — pre-commit / CI / git-lfs / PR review
PlantUML source + rendered output both live in a git repo. This post distils the end-to-end practice: edit puml → validate → auto-render → commit → CI → PR review → rebase → all smooth. Two kinds... -
Putting PlantUML diagrams into PR reviews
Diagrams usually get skipped during PR review because most teams keep them in Confluence or PowerPoint. Here’s how to push them through review the same way you push code. Why we don’t put diagram... -
GraphQL API design: Schema / Resolver / N+1 / DataLoader / Federation
GraphQL solves REST’s over-fetching / under-fetching problem, but introduces N+1, caching, rate-limiting challenges. This is GraphQL Schema design principles, Resolver chains, DataLoader solv... -
PlantUML rendering engine internals: 7 Graphviz/dot tuning knobs
Most PlantUML diagrams (component, state, object, class) are laid out by Graphviz’s dot algorithm underneath. Understanding how dot works explains many “why does the diagram auto-arrange like that... -
PlantUML in your IDE — VS Code, JetBrains, and Vim — three real workflows
Writing puml code isn’t the hard part — seeing the result while you write is. This post lays out the three real workflows for VS Code / JetBrains / Vim. Pick an IDE based on scenario VS... -
PlantUML sequence diagram advanced: fragment, step, ref
Sequence-diagram grammar is interview-popular but underused in real codebases — most teams have no idea how to make these diagrams genuinely readable to reviewers. Here’s the full set. Fragment c... -
Interactive PlantUML SVG: click-through, tooltips, JS wiring
PlantUML’s output SVG is “dead” by default — view-only. But with map directives or post-process JS injection, the diagram becomes a navigation map: click a node to open docs, hover for a tooltip, ... -
Getting Started with PlantUML: Why It Belongs in Your Toolbox
This is the inaugural post on puml.online, drafted with AI assistance. It serves as a content sample — feel free to borrow its structure, tone, and pacing when you write your own pieces. ... -
PlantUML as a structured JSON renderer — turn config / API responses / any JSON into a tree
PlantUML’s underrated gem: render JSON / YAML as a structured tree diagram. One directive, zero boilerplate. Faster than hand-drawing Visio, cleaner than Graphviz dot, more truthful than Merm... -
PlantUML JSON/YAML visualization & math notation
PlantUML doesn’t only draw diagrams: it can render JSON, YAML, LaTeX math, and EBNF grammar as visual structures. These views are gold for READMEs, API docs, and syntax references. JSON visualiza... -
Auth protocol sequence diagrams: JWT / OAuth2 / SAML / OpenID Connect
The most common diagram in auth systems is the sequence diagram. This is the PlantUML sequence template for four major auth protocols (JWT, OAuth2 Authorization Code, OAuth2 PKCE, SAML 2.0, OpenID... -
Big PlantUML diagrams — subgraph, package, !include — staying fast past 1000 nodes
A big diagram looks clear to the reader, but the renderer pays the cost — 100 nodes is the watershed. This post distills how to keep big PlantUML diagrams readable and smooth to render. The 100-n... -
PlantUML in LLM Agents — visualising reasoning and human-in-the-loop
LLM agent output is a token stream that’s hostile to humans. PlantUML is the bridge between agents turning their “thinking” into structured, readable diagrams — a practical guide for LangChain ... -
PlantUML vs Mermaid: a macro comparison — two 'text-to-diagram' philosophies
PlantUML and Mermaid are the two most popular “text-to-diagram” tools today, but their origins, goals, and ecosystems are almost completely different. This article compares them across four macro ... -
PlantUML vs Mermaid pros/cons panorama + selection decision tree
This is the third article in the PlantUML vs Mermaid series. After the first two (macro comparison / syntax side-by-side), this one focuses on “which should I pick” — cut into 10 strengths + ... -
PlantUML vs Mermaid syntax side-by-side: 7 common diagrams, line by line
After the macro comparison, this article is the cheat sheet for “when you actually want to draw a diagram”. Each diagram type gives you: minimal example → key differences → common pitfalls — just ... -
Message queue architecture: Kafka / RabbitMQ / RocketMQ topology and ordering guarantees
Message queues are the glue of distributed systems — Kafka for throughput, RabbitMQ for flexibility, RocketMQ for transactions. This is the architecture topology of three mainstream MQs, consumer ... -
PlantUML cross-tool migration — D2, Mermaid, and Draw.io workflow and pitfalls
When a team re-picks its diagramming tool, migrating from PlantUML to D2 / Mermaid / Draw.io is common. This post distils the practical migration: which diagrams can be auto-converted, w... -
PlantUML mindmap & filesystem diagrams
PlantUML also draws two non-classic-UML diagrams: mindmap and filesystem. They shine when you need to outline Markdown content or sketch a file tree. MindmapBasic syntax1234567891011@startmindmap... -
Mobile app architecture diagrams: iOS / Android / Flutter / React Native modularization
Mobile app architecture diagrams differ from server-side ones — the client has UI layer, ViewModel, Domain, Data, Native Module mixing, offline sync, push pipeline. This is the PlantUML template f... -
Monorepo vs Polyrepo: dependency graphs, build orchestration, CI strategy
Monorepo or Polyrepo — the eternal backend architecture debate. This is the real cost comparison of both layouts, and how to use PlantUML to draw service / package dependency graphs, Bazel... -
PlantUML multi-language notes — CJK fonts, RTL, Unicode, emoji
PlantUML is JVM-based, theoretically Unicode-friendly — but Chinese / Japanese / Arabic / emoji each bite in different ways. This post collects all the pitfalls in one go. CJK: Chi... -
PlantUML network, Archimate, Ditaa diagrams — three special architectural views
Beyond standard UML, PlantUML draws three special-purpose diagrams: network topologies, Archimate enterprise architecture, Ditaa ASCII-to-SVG. These three cover many scenarios that standard UML cl... -
PlantUML object diagrams: runtime snapshots
The object diagram is the less-talked-about sibling of the class diagram — but for debugging, doc, and live demos it earns its keep. It’s the class diagram’s “snapshot right now.” One-line defini... -
Three pillars of observability: Logs / Metrics / Traces + OpenTelemetry + SLO
When production breaks, “just restart” doesn’t scale. Three-pillar observability (Logs + Metrics + Traces) cuts root-cause analysis from hours to minutes. This is the three-pillar architecture, Op... -
PlantUML output formats: SVG, PNG, PDF, LaTeX, ASCII compared
PlantUML defaults to SVG, but actual doc workflows — embedded in README, printed to PDF, dropped into LaTeX — have different format requirements. This article compares every output format, best-fi... -
PlantUML preprocessor directives & icon libraries
When 10 PlantUML diagrams share the same skin and palette, preprocessor directives let you extract common code. When you want intuitive icons for docs, the icon libraries do that — together they t... -
PlantUML preprocessing deep-dive: Jinja/JSON/YAML injection and dynamic generation
!include is basic preprocessing. But enterprise architecture diagrams often need to pull service lists, port numbers, AWS resource IDs from external data sources. This is the field guide for Jinja... -
PlantUML with interactive diagrams — react-flow / Vue Flow / vis.js when PlantUML alone isn't enough
PlantUML outputs SVG / PNG / PDF — but no interactivity: can’t drag, can’t highlight, can’t dynamically mutate. That’s “document”, not “tool” — many frontend projects need the latter. Th... -
Embedding PlantUML in Hexo (server vs client rendering)
Two paths to embed PlantUML in a static blog: pre-render on the server, or have the reader’s browser render on the fly. Here’s the field guide. Option A: Server-side render (hexo-renderer-plantum... -
PlantUML project case study: a microservice from 0 to 1
The ultimate exercise of PlantUML — a complete e-commerce order microservice, end to end, from requirements to production, with the full diagram suite. Project backgroundWe’re designing an e-comm... -
PlantUML Salt UI wireframes: from ASCII to UI mockups
When you need to document “what the UI looks like” inside a Markdown-friendly diff-able file, PlantUML Salt turns ASCII boxes into readable wireframes. No drawing tool, no Figma — just text. What... -
PlantUML security profiles: INTERNET vs ALCAPONE vs LEGACY
Self-hosting PlantUML means rendering attacker-supplied Java code. Two real risks: (1) OOM / arbitrary code execution inside the JVM, (2) hostile payloads burning your container’s CPU. This a... -
PlantUML information leakage and compliance — source/diagram bidirectional exposure risks
PlantUML diagrams carry both source and rendered output — two-way exposure = two-way leakage. Most teams don’t realise diagrams are a reverse data source for compliance, security, and AI trai... -
PlantUML self-hosting: from plantuml.jar to Docker to enterprise K8s
When plantuml.com’s online service isn’t reliable — flaky network, security policies — self-host the renderer. Three patterns: local jar, Docker, full microservice. Three deployment patterns Pa... -
Sequence diagrams: alt / opt / loop / par / critical / break / note
Sequence diagrams aren’t just A -> B. The control-flow keywords are what make them useful. alt / else — branchesThe most common pattern. alt is “if”, else is “else”: 1234567891011121314@s... -
Serverless event-driven architecture: Lambda / Step Functions / EventBridge / Saga
Serverless isn’t just “no servers to manage” — it’s event-driven + async orchestration. This is the production combination of AWS Lambda + Step Functions + EventBridge + SQS/SNS, plus Saga co... -
PlantUML state diagrams: four ways to model an order lifecycle
State diagrams are the most underused PlantUML type. They precisely describe all legal states of a domain object (order, login session, approval flow), transitions, guards, and entry actions. Wha... -
PlantUML SVG accessibility: screen readers, WCAG, contrast
PlantUML’s default SVG is hostile to visually impaired users — no alt text, screen readers can’t read it, contrast fails color-blind users. Compliance scenarios (government, education, finance) re... -
5 Real Ways Teams Use PlantUML
A summary of five ways PlantUML gets used inside real engineering teams, plus the gotchas that bite along the way. 1. Use case diagrams for requirement reviewsHalf an hour of whiteboarding in a m... -
5 PlantUML Diagram Templates (Copy-Paste Ready)
Same as the intro post — AI-assisted sample. The templates themselves are ready to run; feel free to rewrite the prose. 1. Sequence diagram1234567891011121314151617@startumltitle User login flowa... -
Class diagram theming: taming the default colors
Default class diagrams are too loud for company docs. Here’s how to tune skinparam for a calmer look. The default theme problemThe out-of-the-box class theme uses saturated fills and heavy border... -
PlantUML theme packs — building, distributing, and enforcing brand themes
PlantUML ships with 20+ themes, but they don’t cover corporate brand colour, dark mode, or print colour. This post walks through “DIY theme + internal publish” in full. Three flavours of a themeP... -
PlantUML timeline, Gantt, WBS: project scheduling & breakdown
PlantUML is usually seen as a UML-only tool, but it also draws three scheduling views every PM uses: timeline, Gantt, WBS. This article covers all three. TimelineA timeline records “what happened... -
PlantUML 30 small tricks and features
There are PlantUML features you always have to look up in the docs. This article collects 30 micro-features so you stop searching the manual every time. 1. Newlines in node names123456@startumlcl... -
PlantUML use case diagrams: from requirement to review
Use case diagrams are the most underused UML type. They don’t draw code; they precisely describe what value a system provides and who uses it. One-line definitionA use case diagram = a set o... -
PlantUML diagrams evolve with git: renaming, migration, archival
Writing the .puml isn’t the end. Three months later: services get renamed, architectures refactored, components deprecated — the diagram has to evolve alongside git to avoid the awkward “docs say ... -
PlantUML vs Mermaid vs Draw.io — which one to reach for
There’s no “best” diagram tool, only the right one for each situation. This is the distillation of several tool switches. One-line conclusion Type Pick Why Sequence, class, state, activity, ... -
PlantUML vs Mermaid vs Graphviz DOT vs D2 — a complete DSL comparison
There are now more “text-first diagram tools” than 5 years ago — PlantUML / Mermaid / Graphviz DOT / D2. Which to pick? This post compares them against real scenarios. One-line sum... -
Profile diagrams: stereotypes and metadata
IntroductionStereotypes extend class diagram elements with semantic labels, distinguishing roles like “interface”, “service”, “entity”, and “enum” within the same diagram. Both PlantUML and Mermaid... -
puml.online Tips: Draw Sequence Diagrams, Class Diagrams and More — Instantly
What is puml.onlinepuml.online is a free online diagram tool that bundles PlantUML, Mermaid, and Excalidraw in one place. Its key advantages: Open and start — no sign-up, no download, no second pa... -
Quadrant charts: axes and quadrants
IntroductionQuadrant charts divide the plotting area into four regions by two dimensions, commonly used for urgency vs importance, or effort vs impact analysis. This article covers how to draw quad... -
Regex Visualisation: Drawing a Regular Expression as a Railroad Diagram
IntroductionRegular expressions are easy to write and hard to read. What exactly is [a-z0-9-]+\. matching? Which parentheses are groups, and which merely widen the scope of a quantifier? Instead of... -
Requirement diagrams: elements and relations
IntroductionA Requirement Diagram visualizes the traceability between system requirements and design elements. It maps business requirements to interfaces, classes, and modules, helping teams verif... -
Salt wireframes
IntroductionA wireframe is the low-fidelity sketch used early in product design to describe “which blocks exist on the screen and how they are arranged”. It does not care about colors or fonts, onl... -
Sankey diagrams: flows and links
IntroductionA Sankey diagram uses width-encoded flow lines to show how quantities move between nodes, making it ideal for energy distribution, website visitor paths, or budget flows. PlantUML has n... -
Sequence diagrams: alt / else / opt fragments
IntroductionThe alt / else / opt fragments in sequence diagrams express conditional branching and optional interactions. Both PlantUML and Mermaid support these fragments, but with slight... -
Sequence diagrams: async messages and callbacks
IntroductionSequence diagrams visualize time-ordered interactions between objects. Synchronous (sync) messages block until a response arrives, while asynchronous (async) messages fire and forget — ... -
Sequence diagrams: critical regions
IntroductionSome steps in a sequence are “must succeed, otherwise the whole flow fails” — locking stock, debiting a balance, writing an audit log. That block is modelled as a critical region: every... -
Sequence diagrams: ...> delay notation
IntroductionSequence diagrams often need to say “a lot of time passed here”: a request goes out and the answer arrives 30 minutes later, or two systems poll each other on an interval. PlantUML has ... -
Sequence diagrams: grouping with divider/box
IntroductionWhen a sequence diagram has many messages it gets messy. Dividers / Groups / Boxes let you visually containerize related messages. PlantUML uses group and so does Mermaid — th... -
Sequence diagrams: lifeline control
IntroductionIn sequence diagrams, a participant’s lifeline becomes active at different stages and can be destroyed when its role ends. Both PlantUML and Mermaid provide clean syntax to express thes... -
Sequence diagrams: loop fragments
IntroductionBulk exports, status polling, retrying a request — in a sequence diagram these all mean the same thing: a group of messages is executed repeatedly. PlantUML and Mermaid both draw this w... -
Sequence diagrams: notes (left/right/over)
IntroductionSequence diagrams model message exchanges between objects, and notes are the primary way to add commentary to those interactions. Both PlantUML and Mermaid support notes in sequence dia... -
Sequence diagrams: parallel fragments
IntroductionWhen one request triggers several independent sub-flows at the same time, a sequence diagram should not draw them as a chain of sequential arrows — it should use a parallel fragment. Pl... -
Sequence diagrams: self-call messages
IntroductionWhen an object calls one of its own methods while handling a request, the sequence diagram shows a message going from a lifeline back to itself — a “self message”. Both engines support ... -
Sequence vs Activity: when to use which
IntroductionSequence Diagram and Activity Diagram are both essential interaction-modeling tools, but they focus on different things. Sequence diagrams emphasize who said what to whom and when; acti... -
State diagrams: choice and fork pseudostates
IntroductionState machines describe how an object transitions through a set of discrete states during its lifecycle. Two important pseudostates power most real-world models: choice — conditional b... -
State diagrams: composite states and history
IntroductionState machines describe the lifecycle of objects and protocol state transitions. Composite states bundle multiple sub-states under one high-level state, reducing diagram clutter; histor... -
State diagrams: concurrent regions
IntroductionA state machine often runs two independent things at once: an order is being paid for while the warehouse reserves stock, and the order only closes when both finish. If you chain those ... -
State diagrams: entry/exit actions
IntroductionA state machine models an object’s lifecycle as a set of states and transitions between them. An entry action fires automatically when entering a state; an exit action fires when leavin... -
State diagrams: internal transitions
IntroductionThe easiest kind of transition to get wrong in a state machine is an arrow pointing back at its own state. The UML specification splits these into two categories: an external self-trans... -
State diagrams: timeouts
IntroductionThe easiest thing to leave out of a state machine diagram is the timeout. No matter how polished the flow looks, if a waiting state has no fallback exit, production gets requests that h... -
State diagrams: transition guards
IntroductionThe easiest thing to get wrong in a state machine diagram is multiple transitions leaving the same state. If Payment can become either Paid or Payment failed, the arrows alone tell the ... -
State vs activity: which one for your workflow
IntroductionState diagrams and activity diagrams both come from UML behavioural modelling, yet they answer different questions. A state diagram answers “which state is this object in, and how does ... -
Timelines: Sections and Time Periods
IntroductionTimeline diagrams are commonly used to visualize project milestones, historical events, or phases in a business process. Both PlantUML and Mermaid support timeline syntax, with Section ... -
Timeline vs Gantt: a decision guide
IntroductionBoth visualize “things moving forward over time”, but they answer different questions. A timeline answers when did something happen; a Gantt chart answers how long does each task take a... -
Use case diagrams: actors and use cases
IntroductionUse case diagrams model system functional requirements, centering on actors and use cases, with system boundaries and relationships to express business scenarios. This article compares ... -
Use case diagrams: extend and include
Introduction<<include>> and <<extend>> are the most-confused pair of stereotypes in a use case diagram. Both are drawn as a dashed dependency arrow with a similar-looking la... -
Use case diagrams: where to draw the system boundary
IntroductionWhen drawing a use case diagram, the tricky part is rarely the connections — it is where the boundary sits. The boundary decides which use cases belong to the system you are building an... -
WBS: task decomposition
IntroductionWBS (Work Breakdown Structure) is a standard method for decomposing a project into smaller, manageable work units. This article covers how to draw WBS diagrams using both PlantUML and M...