Cheatsheet







MermaidJs help
FlowChart
direction - top to down
graph TD
a-->b
direction - left to right
graph LR
Shape: round rect
id(Label)
Shape: circle
id((Start))
Shape: cylinder/database
id[(Database)]
Shape: rhombus
id{is successful}
Shape: double circle
id(((End)))
Edges: with arrow head
flowchart LR
A-->BEdges: without arrow
flowchart LR
A --- BEdges: with text
flowchart LR
A---|This is the text|BSequence Diagram
line types
sequenceDiagram
a->b: solid no arrow
a-->b: dashed no arrow
a-->>b: dashed with arrow
b-->>a: reverse
Class Diagrams
define class
classDiagram
class Person{
String name
}
xxxxxxxxxx---title: ERD---classDiagram class Organization { String url int id } class User { String avatar String email } class Repository { String name int stargazers_count } Repository --> User: stargazers Organization --> Repository: repos Organization --> User: members