Examples
167 playground samples, rendered by Ondine when the documentation builds. Select one to open its source in the playground.
flowchart1. subgraph Clientflowchart2. subgraph Clientflowchart3. subgraph subgraph1flowchart4. subgraph "One"flowchart5. A-->Bflowchart6. A-->Bblock1. columns 1block2. blockArrowId<["Label"]>(right)block3. columns 1block4. id1 space id2block5. columns 3block6. columns 3c41. title System Context diagram for Internet Banki…c42. title System Context diagram for Internet Banki…c43. title Container diagram for Internet Banking Sy…c44. title Component diagram for Internet Banking Sy…c45. title Dynamic diagram for Internet Banking Syst…c46. title Deployment Diagram for Internet Banking S…class1. namespace Earth.Volcano.Summit {class2. Reef animal exampleclass3. Animal exampleclass4. class Customer {class5. namespace Platform {class6. namespace Company.Engineering.Backend {er1. CUSTOMER ||--o{ ORDER : placeser2. CAR ||--o{ NAMED-DRIVER : allowser3. direction TBer4. direction LRer5. subgraph title1er6. CAR {eventmodeling1. timeframe 01 ui CartUIeventmodeling2. tf 01 ui CartUIeventmodeling3. timeframe 01 ui CartUIeventmodeling4. tf 01 ui CartUIeventmodeling5. timeframe 01 ui CartUIeventmodeling6. rf 02 evt CartCreatedgantt1. title A Gantt Diagramgantt2. dateFormat YYYY-MM-DDgantt3. title A Gantt Diagramgantt4. title A Gantt Diagramgantt5. title Git Issues - days since last updategantt6. title Timeline - Gantt Samplergit1. commitgit2. commitgit3. commitgit4. commitgit5. commit type:HIGHLIGHTgit6. commitinfo1. infoinfo2. info showInfojourney1. title My working daykanban1. column1[Column Title]kanban2. todo[Todo]kanban3. Todomindmap1. root((Hawaiʻi))mindmap2. id1["`**Pele** is themindmap3. root((mindmap))mindmap4. Rootmindmap5. Rootmindmap6. id1["`**Root** withpacket1. TCP Packetpacket2. title UDP Packetpacket3. 0-7: "DATA"packet4. 0-15: "Source Port"pie1. "ʻAhi" : 386pie2. "Dogs" : 386pie3. title Key elements in Product Xquadrant1. title Reach and engagement of campaignsquadrant2. x-axis Urgent --> Not Urgentquadrant3. title Reach and engagement of campaignsrequirement1. requirement checkout_req {requirement2. requirement checkout_req {requirement3. requirement test_req {requirement4. requirement test_req {requirement5. requirement test_req {requirement6. requirement test_req:::important {sankey1. Agricultural 'waste',Bio-conversion,124.729sankey2. Electricity grid,Over generation / exports,104.…sankey3. Pumped heat,"Heating and cooling, ""homes""",19…sankey4. Electricity grid,Heating and cooling - homes,11…sankey5. Electricity grid,Heating and cooling - homes,11…sankey6. Electricity grid,Heating and cooling - homes,11…sequence1. autonumbersequence2. autonumbersequence3. participant API@{ "type": "boundary", "alias": …sequence4. participant Alicesequence5. participant Alicesequence6. participant Alicestate1. [*] --> Draftstate2. [*] --> Firststate3. [*] --> Activestate4. direction TBstate5. direction TBstate6. classDef yourState font-style:italic,font-weigh…timeline1. title Timeline of the Hawaiian Islandstimeline2. title Hawaiʻi's History Timelinetimeline3. title Timeline of Industrial Revolutiontimeline4. title England's History Timelinetimeline5. title MermaidChart 2023 Timelinetimeline6. title History of Social Media Platformxychart1. title "Ocean Temperature"xychart2. title "Animals seen in reef survey of 2025"xychart3. title "Sales Revenue"xychart4. title "Different Colors in xyChart"xychart5. title "Genres in top 100 book survey of 2025"xychart6. title "Sales Revenue"agentflow1. brief["Release brief"]@{ shape: input }agentflow2. brief["Release brief"]@{ shape: input }agentflow3. brief["Brief"]@{ shape: input }agentflow4. globalagentflow5. flow intake["Intake"]agentflow6. connector llm["LLM API"]architecture1. group api(cloud)[API]architecture2. group api(cloud)[API]API DB1 DB2 DB3 MCP architecture3. service src1(server)[Source 1]Source 1 Source 2 Source 3 Processor architecture4. group sources(cloud)[Sources]Sources Storage Output Source A Source B Source C DB One DB Two DB Three Brief Analyst Delivery architecture5. service left_disk(disk)[Disk]Disk Disk Disk Gateway Gateway architecture6. group api(logos:aws-lambda)[API]API Database Storage Storage Server cynefin1. title Incident ResponseIncident Response Complex Probe → Sense → Respond Emergent Practices Investigate root cause Run chaos experiment Complicated Sense → Analyse → Respond Good Practices Analyze performance data Expert review needed Chaotic Act → Sense → Respond Novel Practices Page on-call immediately Clear Sense → Categorise → Respond Best Practices Restart service Apply known fix Confusion Disorder Unknown failure mode cynefin2. title Strategy CategorizationStrategy Categorization Complex Probe → Sense → Respond Emergent Practices Market research Complicated Sense → Analyse → Respond Good Practices Competitive analysis Chaotic Act → Sense → Respond Novel Practices Crisis management Clear Sense → Categorise → Respond Best Practices Standard pricing Confusion Disorder Pattern identified Best practice codified Complacency Stabilized cynefin3. title Cynefin FrameworkCynefin Framework Complex Probe → Sense → Respond Emergent Practices Complicated Sense → Analyse → Respond Good Practices Chaotic Act → Sense → Respond Novel Practices Clear Sense → Categorise → Respond Best Practices Confusion Disorder ishikawa1. Blurry PhotoProcess Beautification filter applied Protective film not removed Shutter speed too slow Out of focus User Shaky hands Equipment SENSOR Dirty sensor Damaged sensor LENS Dirty lens Damaged lens Inappropriate lens Environment Subject moved too quickly Too dark Blurry Photo radar1. GradesGrades Math Science English History Geography Art Alice Bob radar2. title Restaurant ComparisonRestaurant Comparison Food Quality Service Price Ambiance Restaurant A Restaurant B Restaurant C Restaurant D radar3. axis A, B, C, D, EA B C D E c1 c2 c3 railroad1. title "Arithmetic Expression Grammar"Arithmetic Expression Grammar expression term + - term term factor * / factor factor number ( expression ) number digit digit 0 1 2 3 4 5 6 7 8 9 railroad2. title "JSON Grammar"JSON Grammar json element element object array string number true false null object { member , member } array [ element , element ] member string : element railroad3. title "Email Address"Email Address address local-part @ domain local-part ALPHA DIGIT . - domain label . label label ALPHA DIGIT - railroad4. title "Calculator Grammar"Calculator Grammar Expression Term + - Term Term Factor * / Factor Factor Number ( Expression ) Number Digit Digit 0 1 2 3 4 5 6 7 8 9 railroad5. title "Identifiers (keywords excluded)"Identifiers (keywords excluded) Identifier ? !Keyword ? Letter Letter Keyword if else while Letter a b c _ railroad6. title Expression GrammarExpression Grammar expression term + - term term factor * / factor factor number ( expression ) number digit digit 0 1 2 3 4 5 6 7 8 9 swimlane1. subgraph CustomerFinance Warehouse Customer Browse catalog Pay Pick items Ship order Raise invoice swimlane2. subgraph CustomerEngineering Support Customer Known issue Needs code change Request service Receive update Triage request Send answer Investigate issue Prepare fix swimlane3. accTitle: Support escalationSupport escalation A request starts with the customer, is triaged by support, and may be escalated to engineering. Engineering Support Customer Open request Triage Resolve swimlane4. subgraph CustomerCarrier Store Customer Submit order Confirm delivery Check order Pack items Collect package Deliver package swimlane5. subgraph ApplicantSystem Reviewer Applicant Application received Approved Needs changes Submit application Sign agreement Screen application Approved? Create account Send welcome email swimlane6. subgraph IntakeDelivery Review Intake Yes No Collect request Validate details Review request Ready? Schedule work Complete work treemap1. "Products"Products 180 Electronics 100 Clothing 80 Phones 50 Computers 30 Accessories 20 Men's 40 Women's 40 treemap2. "Section 1"Section 2 57 Section 1 24 Section 1.2 12 Leaf 2.2 25 Leaf 2.1 20 Leaf 2.3 12 Leaf 1.1 12 Leaf 1.2.1 12 treemap3. "Main"Main 50 B 25 A 20 C 5 B2 15 B1 10 treemap4. "Category A"Category B 40 Category A 30 Item B2 25 Item B1 15 Item A2 20 Item A1 10 treemap5. "Budget"Budget $1,500,000 Operations $1,000,000 Marketing $500,000 Salaries $700,000 Equipment $200,000 Supplies $100,000 Advertising $400,000 Events $100,000 treemap6. "Market Share"Market Share $100.0% Company A $35.0% Company B $25.0% Others $25.0% Company C $15.0% treeview1. ├── src/src App.tsx main component index.ts entry point .env environment variables Dockerfile package.json treeview2. ├── packages/packages mermaid src parser.ts renderer.ts package.json parser src README.md treeview3. src/src App.tsx utils.ts Dockerfile notes.txt README.md treeview4. my-project/my-project src App.tsx main component index.js entry point .env environment variables Dockerfile package.json treeview5. 🚀 rocket-app/🚀 rocket-app 📦 packages 🎨 ui 🛠️ utils 🧪 tests 📝 README.md ⚙️ config.yaml treeview6. "packages"packages mermaid src parser usecase1. direction LRStorefront Fulfilment «include» Customer Support Browse catalog Checkout Track delivery usecase2. actor Normal("Normal actor")Normal actor Hollow actor Awesome actor Registered icon Missing icon fallback Manage usecase3. Inspect("Inspect payload")Inspect payload Payload 2 second in source 1 first after 2 enabled true count 3 missing null colors Red Green address.city Oslo items[0].name Book emptyObject {} emptyArray [] usecase4. actor Customer:::externalAccount Customer Checkout Edit profile Session active true usecase5. direction LRCustomer Browse catalog usecase6. direction LROnline ordering use cases A customer places an order through the storefront.
Staff review the order and inspect its data. Ordering System places order «include» Customer «Employee» Order staff Browse products «Core» Checkout Process payment Review order Validates the cart before payment OrderData status pending items[0].name Book items[0].quantity 1 total 29.95 venn1. title What makes a good featureWhat makes a good feature Desirable Feasible Viable Buildable Sustainable Marketable Ship it venn2. title What makes a good featureWhat makes a good feature Desirable Feasible Viable Buildable Sustainable Marketable Ship it venn3. title "Team overlap"Team overlap Frontend Backend APIs venn4. set DesirableDesirable Feasible Viable Innovation venn5. set A["Frontend"]Frontend React Design Systems Backend API Shared OpenAPI venn6. set A["Alpha"]:20Alpha React Design Systems Beta AB wardley1. title Tea Shop Value ChainTea Shop Value Chain Genesis Custom Built Product Commodity Evolution Visibility Business Cup of Tea Tea Hot Water Kettle Power Standardizing power allows Kettles to evolve faster wardley2. title Coordinate ExamplesCoordinate Examples Genesis Custom Built Product Commodity Evolution Visibility Infrastructure Product User Need wardley3. title Sourcing StrategySourcing Strategy Genesis Custom Built Product Commodity Evolution Visibility Customer Custom App Off-the-shelf Tool Managed Service Cloud Platform wardley4. title Dual Label StagesDual Label Stages Genesis / Concept Custom / Emerging Product / Converging Commodity / Accepted Evolution Visibility Novel Idea Custom Solution Product Utility wardley5. title AnnotationsAnnotations Genesis Custom Built Product Commodity Evolution Visibility API Cache Database 1 2 3 1. Critical component 2. Performance layer 3. Data persistence wardley6. title Software Platform StrategySoftware Platform Strategy Genesis Custom Product Commodity Evolution Visibility Customer Mobile App Web App API Gateway Auth Service Database Cloud Platform 1 2 3 1. User touchpoints 2. Integration layer 3. Data persistence Build mobile-first experience Migrate to cloud-native database Cloud Native Legacy Data