Merlive

The library / Architecture diagrams

Architecture diagrams, drawn twice

A service is a box with its icon, a group is a group, and the sides an edge leaves by say which way the diagram runs. Held to the same measure.

28 samples: 17 drawn as written, 11 drawn less something. Mermaid’s side is mermaid-cli 12.2.0 as it comes, on white. Merlive’s is 0.6.1 in its own look. What is read of an architecture diagram.

The icons Mermaid is born with: cloud, database, disk, internet, server

Drawn, less something A disk is drawn with the database's drawing: Merlive has no drawing of a disk of its own yet

Mermaid
The icons Mermaid is born with: cloud, database, disk, internet, server, as Mermaid draws it
Merlive
The icons Mermaid is born with: cloud, database, disk, internet, server, as Merlive draws it
The Mermaid
architecture-beta
  service web(internet)[Web shop]
  service edge(cloud)[Azure]
  service api(server)[Orders API]
  service db(database)[Orders]
  service files(disk)[Invoices]

  web:R -- L:edge
  edge:R -- L:api
  api:R -- L:db
  api:B -- T:files
Draw it yourself

An icon from a pack by its name (logos:aws-lambda)

Drawn, less something An icon from a pack is somebody's mark, which Merlive neither fetches nor draws: the words are kept, and it is said

Mermaid
An icon from a pack by its name (logos:aws-lambda), as Mermaid draws it
Merlive
An icon from a pack by its name (logos:aws-lambda), as Merlive draws it
The Mermaid
architecture-beta
  service fn(logos:aws-lambda)[Price check]
  service db(database)[Prices]

  fn:R -- L:db
Draw it yourself

A service with no title

Drawn, less something A box says something: a service with no title takes its id for its words, where Mermaid draws the icon alone

Mermaid
A service with no title, as Mermaid draws it
Merlive
A service with no title, as Merlive draws it
The Mermaid
architecture-beta
  service api(server)
  service db(database)[Orders]

  api:R -- L:db
Draw it yourself

A group, the services in it, and one outside it

Drawn, less something A group's icon is not drawn: a frame is named by its title

Mermaid
A group, the services in it, and one outside it, as Mermaid draws it
Merlive
A group, the services in it, and one outside it, as Merlive draws it
The Mermaid
architecture-beta
  group cloud(cloud)[Azure]

  service api(server)[Orders API] in cloud
  service db(database)[Orders] in cloud
  service shop(internet)[Web shop]

  shop:R -- L:api
  api:R -- L:db
Draw it yourself

A group inside a group

Drawn, less something A group's icon is not drawn: a frame is named by its title

Mermaid
A group inside a group, as Mermaid draws it
Merlive
A group inside a group, as Merlive draws it
The Mermaid
architecture-beta
  group cloud(cloud)[Azure]
  group net(server)[Private network] in cloud

  service gateway(internet)[Gateway] in cloud
  service api(server)[Orders API] in net
  service db(database)[Orders] in net

  gateway:R -- L:api
  api:R -- L:db
Draw it yourself

A group with no icon

Drawn

Mermaid
A group with no icon, as Mermaid draws it
Merlive
A group with no icon, as Merlive draws it
The Mermaid
architecture-beta
  group office[Head office]

  service erp(server)[ERP] in office
  service ledger(database)[Ledger] in office

  erp:R -- L:ledger
Draw it yourself

Words on an edge

Drawn

Mermaid
Words on an edge, as Mermaid draws it
Merlive
Words on an edge, as Merlive draws it
The Mermaid
architecture-beta
  service api(server)[Orders API]
  service db(database)[Orders]

  api:R -[saves to]- L:db
Draw it yourself

Words on an edge with arrowheads

Drawn

Mermaid
Words on an edge with arrowheads, as Mermaid draws it
Merlive
Words on an edge with arrowheads, as Merlive draws it
The Mermaid
architecture-beta
  service shop(internet)[Web shop]
  service api(server)[Orders API]
  service db(database)[Orders]

  shop:R -[places an order]-> L:api
  api:R <-[reads and writes]-> L:db
Draw it yourself

An edge out of a group and into a group ({group})

Drawn, less something A link out of a group is drawn from the service its author named, not from the frame: a line ends at a box. A group's icon is not drawn: a frame is named by its title

Mermaid
An edge out of a group and into a group ({group}), as Mermaid draws it
Merlive
An edge out of a group and into a group ({group}), as Merlive draws it
The Mermaid
architecture-beta
  group shop(cloud)[Shop]
  group books(cloud)[Books]

  service api(server)[Orders API] in shop
  service db(database)[Orders] in shop
  service erp(server)[ERP] in books

  api:R -- L:db
  db{group}:R --> L:erp{group}
Draw it yourself

A junction: where edges meet and part

Drawn, less something A junction is drawn as a round box with no words, the size of every other box, not as the point where lines meet

Mermaid
A junction: where edges meet and part, as Mermaid draws it
Merlive
A junction: where edges meet and part, as Merlive draws it
The Mermaid
architecture-beta
  service api(server)[Orders API]
  service db(database)[Orders]
  service files(disk)[Invoices]
  junction split

  api:R -- L:split
  split:R -- L:db
  split:B -- T:files
Draw it yourself

A junction in a group

Drawn, less something A junction is drawn as a round box with no words, the size of every other box, not as the point where lines meet. A group's icon is not drawn: a frame is named by its title

Mermaid
A junction in a group, as Mermaid draws it
Merlive
A junction in a group, as Merlive draws it
The Mermaid
architecture-beta
  group cloud(cloud)[Azure]

  service api(server)[Orders API] in cloud
  service db(database)[Orders] in cloud
  service files(disk)[Invoices] in cloud
  junction split in cloud

  api:R -- L:split
  split:R --> L:db
  split:B --> T:files
Draw it yourself

Services lined up in a column (align)

Drawn, less something Lining services up in a row or a column is read past: where a box goes is by rule. A group's icon is not drawn: a frame is named by its title

Mermaid
Services lined up in a column (align), as Mermaid draws it
Merlive
Services lined up in a column (align), as Merlive draws it
The Mermaid
architecture-beta
  group store(cloud)[Stores]

  service orders(database)[Orders] in store
  service prices(database)[Prices] in store
  service stock(database)[Stock] in store
  service api(server)[Orders API] in store

  orders:R --> L:api
  prices:R --> L:api
  stock:R --> L:api
  align column orders prices stock
Draw it yourself

A whole diagram: groups in groups, services, a junction, edges with arrowheads and words

Drawn, less something A junction is drawn as a round box with no words, the size of every other box, not as the point where lines meet. A link out of a group is drawn from the service its author named. A group's icon is not drawn: a frame is named by its title

Mermaid
A whole diagram: groups in groups, services, a junction, edges with arrowheads and words, as Mermaid draws it
Merlive
A whole diagram: groups in groups, services, a junction, edges with arrowheads and words, as Merlive draws it
The Mermaid
architecture-beta
  group edge(cloud)[Public]
  group cloud(cloud)[Azure]
  group data(database)[Data] in cloud

  service shop(internet)[Web shop] in edge
  service gateway(server)[Gateway] in cloud
  service api(server)[Orders API] in cloud
  service erp(server)[ERP] in cloud
  service orders(database)[Orders] in data
  service invoices(disk)[Invoices] in data
  junction split in cloud

  shop{group}:R --> L:gateway{group}
  gateway:R --> L:api
  api:R -- L:split
  split:R --> L:orders
  split:B --> T:invoices
  api:B <-[posts and reads]-> T:erp
Draw it yourself