Schematex

Flowchart

General-purpose flowcharts with 13 node shapes, 6 edge types, subgraph clustering, and fan-out wiring. Mermaid-compatible syntax. Used by software engineers, business analysts, and technical writers for process documentation, system design, and decision flows.

flowchart·§
↘ preview
100%
Flowchart Flowchart with 6 nodes and 5 edges. A → B B → C: Yes Yes B → D: No No C → E E → F Start Start Valid input? Valid input? Process data Process data Return error Return error Save to DB Save to DB End End
UTF-8 · LF · 6 lines · 133 chars✓ parsed·7.5 ms·6.8 KB SVG

Mermaid-compatible flowchart DSL with extended shape set and automatic DAG layout.


Direction

flowchart TD   # top → down (default)
flowchart LR   # left → right
flowchart BT   # bottom → top
flowchart RL   # right → left
flowchart TB   # same as TD

Node shapes

SyntaxShapeUse for
A[Label]RectangleProcess step
A(Label)Rounded rectSoft step / subprocess
A([Label])Stadium (pill)Start / end terminal
A{Label}DiamondDecision
A{{Label}}HexagonPreparation / config
A[[Label]]SubroutinePredefined process
A[(Label)]CylinderDatabase / storage
A((Label))CircleConnector / junction
A(((Label)))Double circleEnd state
A[/Label/]ParallelogramInput / output
A[\Label\]Parallelogram altManual operation
A[/Label\]TrapezoidManual input
A>Label]AsymmetricTag / annotation

Edges

SyntaxStyleUse for
A --> BSolid arrowNormal flow
A --- BNo arrowAssociation
A -.-> BDotted arrowOptional / async path
A ==> BThick arrowCritical path
A <--> BBidirectionalTwo-way
A --x BCrossed endBlock / reject
A --o BCircle endAggregation

Edge labels

A -->|Yes| B           # pipe label
A -- Yes --> B         # inline label
A -.->|optional| B    # dotted with label

Fan-out (cross-product edges)

A & B --> C            # both A and B connect to C
A --> B & C            # A connects to both B and C
A & B --> C & D        # all combinations

Subgraphs

flowchart LR
  subgraph "Frontend"
    ui[React App] --> api[API Client]
  end
  subgraph "Backend"
    server[Express] --> db[(PostgreSQL)]
  end
  api --> server

Comments

%% This is a comment
A --> B  %% inline comment

Examples

Software deployment pipeline

flowchart LR
  code[Push code] --> ci{CI pass?}
  ci -->|Yes| staging[Deploy staging]
  ci -->|No| fix[Fix errors]
  fix --> code
  staging --> review{Review OK?}
  review -->|Yes| prod[Deploy prod]
  review -->|No| rollback[Rollback]

User authentication flow

flowchart TD
  start([Login request]) --> creds{Credentials valid?}
  creds -->|No| fail[Return 401]
  creds -->|Yes| mfa{MFA enabled?}
  mfa -->|No| token[Issue JWT]
  mfa -->|Yes| otp{OTP correct?}
  otp -->|No| lockout[Increment failed attempts]
  otp -->|Yes| token
  token --> done([Authenticated])

Data processing with subgraphs

flowchart TD
  subgraph "Ingestion"
    raw[/Raw data/] --> validate{Valid schema?}
    validate -->|No| dead[(Dead letter queue)]
    validate -->|Yes| clean[Clean & normalize]
  end
  subgraph "Storage"
    clean --> dw[(Data warehouse)]
    clean --> cache[(Redis cache)]
  end
  dw --> report[Generate report]