Introducing Mermaid Sequence Diagrams
ToDiagram now supports Mermaid Sequence Diagrams. This post introduces the feature and shows how to start using it.

On this page
ToDiagram now supports Mermaid Sequence Diagrams.
Sequence diagrams are useful when the order of messages matters. They help you explain how a request moves between people, services, and systems over time.
If you already use Mermaid in docs or pull requests, you can now use the same sequence syntax directly in ToDiagram.
Where This Helps#
- API and auth flows: Show request/response order clearly.
- Microservice communication: Trace calls across services.
- Event-driven workflows: Document async handoffs and callbacks.
Example#
mermaid
sequenceDiagram
participant Client
participant APIGateway as API Gateway
participant AuthService as Auth Service
Client->>APIGateway: Request /data
APIGateway->>AuthService: Validate Token
AuthService-->>APIGateway: Token Valid
APIGateway-->>Client: 200 OK (Data)
How To Use It#
- Open the ToDiagram editor.
- Select Mermaid format.
- Paste your
sequenceDiagram.
Paste your data. Read the diagram.
JSON, YAML, XML, CSV and Mermaid open as diagrams you can edit and share.