{"id":94,"date":"2026-05-26T08:05:43","date_gmt":"2026-05-26T08:05:43","guid":{"rendered":"https:\/\/www.vpascode.com\/es\/docs\/uncategorized\/mermaid-js-playbook\/mermaid-js-sequence-diagram-guide\/"},"modified":"2026-07-30T01:21:28","modified_gmt":"2026-07-30T01:21:28","slug":"mermaid-js-sequence-diagram-syntax-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/","title":{"rendered":"Mermaid.js Sequence Diagram Syntax Guide"},"content":{"rendered":"<h2>What is a Sequence Diagram?<\/h2>\n<p>A <strong>Sequence Diagram<\/strong> is an essential behavioral <strong>UML diagram<\/strong> designed to visualize the chronological flow of messages, function calls, and data payloads between different system entities over a linear timeline. Recognized as a core <strong>UML diagram type<\/strong>, it maps out runtime interactions by stacking system components along the X-axis as vertical lifelines and tracking message exchanges down the Y-axis. This blueprint is invaluable for developers debugging distributed API handshakes, microservice orchestration paths, or real-time user authentication flows.<\/p>\n<p>With <strong>Mermaid.js<\/strong>, you can script complex temporal processes using an intuitive text structure. The engine automatically handles vertical spacing, manages message arrow alignments, and draws runtime activation blocks cleanly across your canvas.<\/p>\n<h2>Core Syntax Guide: Elements and Constructs<\/h2>\n<p>To design an accurate, highly scannable UML sequence diagram in Mermaid, you must master participant declarations, message arrow variants, explicit lifelines, and conditional block structures.<\/p>\n<h3>1. Declaring Participants and Actors<\/h3>\n<p>You declare a standard system entity using the <code>participant<\/code> keyword. If the entity represents a human end-user or an external operator, use the <code>actor<\/code> keyword to render a standard stick-figure icon on the canvas canvas:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgsTkkvwiBeeczNS8EohIQWJRSWZyZkFiXomCY4CnQmKxgntiSWp5YqVCUH5pSWoRAF8GF\/U=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    actor Client\r\n    participant API as Gateway Router<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgsTkkvwiBeeczNS8EohIQWJRSWZyZkFiXomCY4CnQmKxgntiSWp5YqVCUH5pSWoRAF8GF\/U=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"WdDXIln\"><img fetchpriority=\"high\" decoding=\"async\" width=\"450\" height=\"171\" class=\"alignnone size-full wp-image-623 \" src=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190364bd762.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190364bd762.png 450w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190364bd762-300x114.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<p><em>Pro Tip:<\/em> Use the <code>as<\/code> keyword to map long component names to compact internal aliases, keeping your message scripts concise and readable.<\/p>\n<h3>2. Formatting Message Arrows<\/h3>\n<p>The type of line and arrowhead you use dictates the communication style between your system participants:<\/p>\n<ul>\n<li><code>-&gt;&gt;<\/code> **Synchronous Call:** A solid line with a filled arrowhead. Represents a blocking request that waits for an execution completion.<\/li>\n<li><code>--&gt;<\/code> **Response Line:** A dashed line with an open arrowhead. Used to return data payloads or acknowledgment tokens.<\/li>\n<li><code>-&gt;<\/code> **Asynchronous Call:** A solid line with an open arrowhead. Indicates a non-blocking message or event broadcast.<\/li>\n<\/ul>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAAseCAl07u+DUorLUIiuFIJCS4hKFgMTKnPzEFIgSiKSurh1QrZWCkYGBgr83UGVxQX5ecSoAn9Ua8A==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    App-&gt;&gt;Server: Request Payload\r\n    Server--&gt;App: 200 OK Response<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAAseCAl07u+DUorLUIiuFIJCS4hKFgMTKnPzEFIgSiKSurh1QrZWCkYGBgr83UGVxQX5ecSoAn9Ua8A==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"jLtFHya\"><img decoding=\"async\" width=\"450\" height=\"267\" class=\"alignnone size-full wp-image-624 \" src=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190369d9ad7.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190369d9ad7.png 450w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190369d9ad7-300x178.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<h3>3. Managing Lifeline Activation Bars<\/h3>\n<p>To show exactly when a system component is actively executing a task or taking up thread memory, use the <code>activate<\/code> and <code>deactivate<\/code> commands. Alternatively, you can append a plus (<code>+<\/code>) or minus (<code>-<\/code>) sign directly onto your message targets as a fast visual shortcut:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNolzDEKwzAMBdC90DtoyVR8gQxekgOU5ATCfILAcagku\/T2Degvf\/iPb\/h0tIJV+FA+nw+6s1RB85Tza4cO6ExvvQrMaGXnMNNEMZIYtetLQ6xzrT\/i4jIQKkhKOcXnTBu8a7vLenX7AzPwKV4=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    Client-&gt;&gt;+Server: Process Data\r\n    %% Server is now visually active\r\n    Server--&gt;-Client: Return Results<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNolzDEKwzAMBdC90DtoyVR8gQxekgOU5ATCfILAcagku\/T2Degvf\/iPb\/h0tIJV+FA+nw+6s1RB85Tza4cO6ExvvQrMaGXnMNNEMZIYtetLQ6xzrT\/i4jIQKkhKOcXnTBu8a7vLenX7AzPwKV4=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"cOetWMX\"><img decoding=\"async\" width=\"450\" height=\"267\" class=\"alignnone size-full wp-image-625 \" src=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19036e236c9.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19036e236c9.png 450w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19036e236c9-300x178.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<h3>4. Structuring Conditionals and Alternatives (Alt, Opt, Loop)<\/h3>\n<p>To handle branching runtime logic, token evaluations, or repetitive request retries, wrap your message scripts inside standard block fragments:<\/p>\n<ul>\n<li><code>alt \/ else<\/code> \u2014 Evaluates conditional paths (similar to if\/else code blocks).<\/li>\n<li><code>opt<\/code> \u2014 Defines an optional step that only executes under specific criteria.<\/li>\n<li><code>loop<\/code> \u2014 Repeats an execution sequence until a condition is satisfied.<\/li>\n<\/ul>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgpz8\/AIF17LUokoFYwOF4tTk\/LyUYogUCDjnZKbmleja2QWnFgEVWSl4pCYWlSSlJpYoBGTmpUMUpualAABAyxwZ\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    loop Every 30 seconds\r\n        Client-&gt;&gt;Server: Heartbeat Ping\r\n    end<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNorTi0sTc1LTnXJTEwvSszl5VIAgpz8\/AIF17LUokoFYwOF4tTk\/LyUYogUCDjnZKbmleja2QWnFgEVWSl4pCYWlSSlJpYoBGTmpUMUpualAABAyxwZ\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"VlRPVlQ\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"274\" class=\"alignnone size-full wp-image-626 \" src=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190372961a2.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190372961a2.png 450w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a190372961a2-300x183.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<h2>Best Practices for Clean Sequence Timelines<\/h2>\n<ul>\n<li><strong>Keep Lifelines Uncluttered:<\/strong> Avoid listing dozens of micro-entities along the X-axis. If a process interacts with minor helper classes, abstract them behind a high-level system boundary like <code>[Auth Worker]<\/code> or <code>[Cache Pool]<\/code>.<\/li>\n<li><strong>Label Status Codes Explicitly:<\/strong> When writing response returns (<code>--&gt;<\/code>), don&#8217;t just write \u00abReturn Data\u00bb. Label the path with explicit HTTP statuses or event types (e.g., <code>\"201 Created (JWT Token)\"<\/code>) to give engineers precise context.<\/li>\n<li><strong>Implement Notes for Complex Calculations:<\/strong> Use the <code>Note over<\/code>, <code>Note left of<\/code>, or <code>Note right of<\/code> directives to document non-visual operations, like internal encryption steps or database data hashing.<\/li>\n<\/ul>\n<h2>Real-World Mermaid.js\u00a0 Sequence Diagram Examples<\/h2>\n<h3>Example 1: Secured OAuth2 Token Exchange Flow (Activation &amp; Alternative Blocks)<\/h3>\n<p>This functional blueprint models a secure user login sequence. It demonstrates how to combine human actors, explicit system lifelines, and complex validation paths using an alt\/else block.<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNptUstOAjEU3Zv4DzcsjMYQ8bFiQTJBEjAaCYguzaW9MA0z7XjbAfXr7WNIBnA208d59bSWvmrSgh4VrhnL8zPwHwpnGBaWGNDCSMs4TnsVslNCVagdZFUVAC9mqQqKs2GhSLt\/kLXLAzT8ezCRHqTcD0zZbJUM0okSbLqDwbWX6gctsYHOs1krDTvlBV4DvZOgHhKRfqUPM5KKSbgEEzHEp5JwAVaYihqGh3Y9J5gEivbGkNQn2hGvUNBBjKQ9r5elcjBkiqmxsAnUEt1D37FQEh3BFK3dGZYwRpu34VgcKEHGlFhpux0zdnDfuzs6XGxyaCS1GLGKFGH0LXLUa4oQWPlrzIQga+HNbEifunSjzYxczRqePt4SDi4nMg6uDl2O24tPxBuY2t\/x2JRNKCos+U634WCnxZ0csnF\/6N3CQqPfMax+ScKI2fBJgG5KMM\/NDjp7k7CmsaSbffMdyAri5iX6sH\/tqOE0\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    actor User as End User\r\n    participant App as Mobile App Client\r\n    participant Auth as Auth0 Identity Provider\r\n\r\n    User-&gt;&gt;+App: Click \"Login with OAuth\"\r\n    App-&gt;&gt;+Auth: Redirect with client_id &amp; scope\r\n    Auth--&gt;&gt;User: Render Login Interface\r\n    User-&gt;&gt;Auth: Submit Credentials\r\n    \r\n    Auth-&gt;&gt;Auth: Validate Password Hash\r\n    \r\n    alt Credentials Are Valid\r\n        Auth--&gt;&gt;App: 302 Redirect with Auth Code\r\n        App-&gt;&gt;Auth: Exchange Code for Access Token\r\n        Auth--&gt;&gt;-App: Return JWT Token (IdToken)\r\n        App--&gt;&gt;User: Render User Account Home\r\n    else Invalid Credentials\r\n        Auth--&gt;&gt;App: Return 401 Unauthorized Error\r\n        App--&gt;&gt;-User: Show \"Invalid Username\/Password\" Alert\r\n    end<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNptUstOAjEU3Zv4DzcsjMYQ8bFiQTJBEjAaCYguzaW9MA0z7XjbAfXr7WNIBnA208d59bSWvmrSgh4VrhnL8zPwHwpnGBaWGNDCSMs4TnsVslNCVagdZFUVAC9mqQqKs2GhSLt\/kLXLAzT8ezCRHqTcD0zZbJUM0okSbLqDwbWX6gctsYHOs1krDTvlBV4DvZOgHhKRfqUPM5KKSbgEEzHEp5JwAVaYihqGh3Y9J5gEivbGkNQn2hGvUNBBjKQ9r5elcjBkiqmxsAnUEt1D37FQEh3BFK3dGZYwRpu34VgcKEHGlFhpux0zdnDfuzs6XGxyaCS1GLGKFGH0LXLUa4oQWPlrzIQga+HNbEifunSjzYxczRqePt4SDi4nMg6uDl2O24tPxBuY2t\/x2JRNKCos+U634WCnxZ0csnF\/6N3CQqPfMax+ScKI2fBJgG5KMM\/NDjp7k7CmsaSbffMdyAri5iX6sH\/tqOE0\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"zhyELct\"><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"829\" class=\"alignnone size-full wp-image-627 \" src=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a1903768417b.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a1903768417b.png 939w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a1903768417b-300x265.png 300w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a1903768417b-768x678.png 768w\" sizes=\"(max-width: 939px) 100vw, 939px\" \/><\/p>\n<p><strong>Syntax Breakdown:<\/strong> This timeline traces a multi-party handshake. The <code>alt \/ else<\/code> container maps out the binary validation paths clearly, ensuring error states are fully documented alongside the happy path.<\/p>\n<h3>Example 2: Distributed Order Inventory Checkout (Parallel Processes &amp; Notes)<\/h3>\n<p>This advanced system blueprint maps out an enterprise e-commerce checkout pipeline. It utilizes parallel blocks (<code>par<\/code>) to show concurrent API dispatch routines and handles database locking notes across the topology.<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNplkUFrwkAQhe+C\/2GOliJIjx4EibUIpRWF9jxuJsniJpvOTmzTX99ZF43UPexC8s3Me28CfXXUGFpZLBnr8Qj0tMhijW2xEfikA2A4P2v2jVCT30PvnEdIH2K9TUVBGMXzPbppThHVhxoFetgTn6yhe3KLfST1qRWFFxT6xn48SqQKmi4WjzpyDvvuUFuBrCJz9J3ALpoKksA3LwT+dBam7AexLXrYCNWwF2+OsDyhdXiwzkqfSq5aYGVDi2IqyHxjOuYoZLndQIbOhYTFo52jGDU1h9fYc7AXB92Q+mM6XUzPUgZoR0FToBwmSVLsQflDKsNL4jeTNJQ5LDupPNtfgowpjwGg7iGrkEsaKhS9TsywlY5JAzOGQig6B5PE6xpE3HXmdcvp9q2ug32sgaVz3qBY38Bag7vxdk6abVkJ+CKl\/fxDpotfvXMHVGcBSwRbqKkejIYIxdDj39BoVYXroufwNJtdRA9r1p0UlmvK\/wCHINpF\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code data-language=\"mermaid\" class=\"language-mermaid\">sequenceDiagram\r\n    participant Web as Web Frontend\r\n    participant Ord as Order Orchestrator\r\n    participant Inv as Inventory Service\r\n    participant Pay as Payment Gateway\r\n\r\n    Web-&gt;&gt;+Ord: Submit Checkout Request\r\n    Note over Ord: Verify Item Stock Availability\r\n    \r\n    par Dispatch Concurrent API Calls\r\n        Ord-&gt;&gt;+Inv: Lock Inventory Items\r\n        Inv--&gt;-Ord: Inventory Reserved (Stock Locked)\r\n    and\r\n        Ord-&gt;&gt;+Pay: Authorize Credit Card Charge\r\n        Pay--&gt;-Ord: Capture Successful (Charge Settled)\r\n    end\r\n    \r\n    opt Process Allocation Fails\r\n        Note right of Ord: Execute rollback saga if any call fails\r\n    end\r\n    \r\n    Ord--&gt;-Web: 200 Success Checkout Confirmed<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#mermaid:eNplkUFrwkAQhe+C\/2GOliJIjx4EibUIpRWF9jxuJsniJpvOTmzTX99ZF43UPexC8s3Me28CfXXUGFpZLBnr8Qj0tMhijW2xEfikA2A4P2v2jVCT30PvnEdIH2K9TUVBGMXzPbppThHVhxoFetgTn6yhe3KLfST1qRWFFxT6xn48SqQKmi4WjzpyDvvuUFuBrCJz9J3ALpoKksA3LwT+dBam7AexLXrYCNWwF2+OsDyhdXiwzkqfSq5aYGVDi2IqyHxjOuYoZLndQIbOhYTFo52jGDU1h9fYc7AXB92Q+mM6XUzPUgZoR0FToBwmSVLsQflDKsNL4jeTNJQ5LDupPNtfgowpjwGg7iGrkEsaKhS9TsywlY5JAzOGQig6B5PE6xpE3HXmdcvp9q2ug32sgaVz3qBY38Bag7vxdk6abVkJ+CKl\/fxDpotfvXMHVGcBSwRbqKkejIYIxdDj39BoVYXroufwNJtdRA9r1p0UlmvK\/wCHINpF\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"DDTNVua\"><img loading=\"lazy\" decoding=\"async\" width=\"1090\" height=\"692\" class=\"alignnone size-full wp-image-628 \" src=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png 1090w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393-300x190.png 300w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393-1024x650.png 1024w, https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393-768x488.png 768w\" sizes=\"(max-width: 1090px) 100vw, 1090px\" \/><\/p>\n<p><strong>Syntax Breakdown:<\/strong> The <code>par \/ and<\/code> container instructs the engine to group parallel executions together, documenting concurrent backend operations. The <code>Note over<\/code> and <code>Note right of<\/code> tags inject technical runtime explanations directly into the canvas grid, helping teams understand background transactions like data locking and rollback sagas without cluttering the main message arrows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is a Sequence Diagram? A Sequence Diagram is an essential behavioral UML diagram designed to visualize the chronological flow of messages, function calls, and data payloads between different system entities over a linear timeline. Recognized as a core UML&#8230;<\/p>\n","protected":false},"author":4,"featured_media":628,"parent":48,"menu_order":3,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-94","ld_docs","type-ld_docs","status-publish","has-post-thumbnail","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mermaid Sequence Diagram | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-30T01:21:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1090\" \/>\n\t<meta property=\"og:image:height\" content=\"692\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/\",\"name\":\"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/img_6a19037c84393.png\",\"datePublished\":\"2026-05-26T08:05:43+00:00\",\"dateModified\":\"2026-07-30T01:21:28+00:00\",\"description\":\"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/img_6a19037c84393.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/img_6a19037c84393.png\",\"width\":1090,\"height\":692},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/mermaid-js-sequence-diagram-syntax-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Mermaid.js Playbook\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/mermaid-js-playbook\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Mermaid.js Sequence Diagram Syntax Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide","description":"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/","og_locale":"es_ES","og_type":"article","og_title":"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide","og_description":"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/","og_site_name":"VPasCode","article_modified_time":"2026-07-30T01:21:28+00:00","og_image":[{"width":1090,"height":692,"url":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"5 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/","url":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/","name":"Mermaid Sequence Diagram | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png","datePublished":"2026-05-26T08:05:43+00:00","dateModified":"2026-07-30T01:21:28+00:00","description":"Map message flows between system components with Mermaid sequence diagrams in VPasCode, an agile diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png","contentUrl":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/05\/img_6a19037c84393.png","width":1090,"height":692},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/mermaid-js-sequence-diagram-syntax-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/es\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/es\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Mermaid.js Playbook","item":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/mermaid-js-playbook\/"},{"@type":"ListItem","position":4,"name":"Mermaid.js Sequence Diagram Syntax Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/es\/#website","url":"https:\/\/www.vpascode.com\/es\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/es\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.vpascode.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/es\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_docs\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/users\/4"}],"up":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_docs\/48"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/media\/628"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_collection?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}