My Projects

Version History

Mermaid

Code
Preview

Mermaid Cheat Sheet

Flowchart

Direction: TB/TD (top-bottom), BT, LR, RL. Shapes: [rect], (rounded), {diamond}, ((circle)), [(db)]

Basic Flow
graph TD A[Start] --> B{Decision} B -->|Yes| C[OK] B -->|No| D[Cancel] C --> E[End] D --> E
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[OK]
    B -->|No| D[Cancel]
    C --> E[End]
    D --> E
Subgraphs
graph TB subgraph Frontend A[React] --> B[Redux] end subgraph Backend C[Node] --> D[DB] end B --> C
graph TB
    subgraph Frontend
        A[React] --> B[Redux]
    end
    subgraph Backend
        C[Node] --> D[DB]
    end
    B --> C
Sequence Diagram

Arrows: ->> solid, -->> dotted. Activation: +/-. Alt/loop/par for conditionals.

Sequence
sequenceDiagram Alice->>+Bob: Request Bob-->>-Alice: Response Note over Alice,Bob: Done!
sequenceDiagram
    Alice->>+Bob: Request
    Bob-->>-Alice: Response
    Note over Alice,Bob: Done!
Class Diagram
Classes
classDiagram class Animal { +String name +makeSound() } Animal <|-- Dog
classDiagram
    class Animal {
        +String name
        +makeSound()
    }
    Animal <|-- Dog
State Diagram
States
stateDiagram-v2 [*] --> Idle Idle --> Running: Start Running --> [*]: Done
stateDiagram-v2
    [*] --> Idle
    Idle --> Running: Start
    Running --> [*]: Done
ER Diagram
ER
erDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ LINE : contains
erDiagram
    CUSTOMER ||--o{ ORDER : places
    ORDER ||--|{ LINE : contains
User Journey
Journey
journey title User Flow section Login Visit: 5: User Login: 3: User
journey
    title User Flow
    section Login
      Visit: 5: User
      Login: 3: User
Gantt Chart
Gantt
gantt title Project dateFormat YYYY-MM-DD section Dev Task1 :a1, 2024-01-01, 7d Task2 :after a1, 5d
gantt
    title Project
    dateFormat YYYY-MM-DD
    section Dev
    Task1 :a1, 2024-01-01, 7d
    Task2 :after a1, 5d
Pie Chart
Pie
pie showData title Share "A" : 60 "B" : 30 "C" : 10
pie showData
    title Share
    "A" : 60
    "B" : 30
    "C" : 10
Git Graph
Git
gitGraph commit branch dev commit checkout main merge dev
gitGraph
    commit
    branch dev
    commit
    checkout main
    merge dev
Mindmap
Mindmap
mindmap root((Topic)) A A1 A2 B B1
mindmap
  root((Topic))
    A
      A1
      A2
    B
      B1
Timeline
Timeline
timeline title History 2020 : Event A 2021 : Event B 2022 : Event C
timeline
    title History
    2020 : Event A
    2021 : Event B
    2022 : Event C