Where Merlive is going
Merlive turns the Mermaid already in your Markdown into diagrams that are well placed, in your own design, and live. The Mermaid stays the source: it is what people edit, and it still renders anywhere Mermaid does.
What is borrowed, and from where
| Idea | From | In Merlive |
|---|---|---|
| A design settled once and kept in a file | Impeccable | merlive.design.json, which --setup writes by reading the project's own site |
| Colours a colour-blind reader can tell apart | Okabe and Ito, Paul Tol | Rule D2, checked on every palette; Merlive's dark kinds are Okabe-Ito's |
| Rules checked before output, not left to the model | Impeccable, Archify | score.mjs: nothing is written that breaks a rule |
| A typed model between the text and the drawing | Archify | parse.mjs gives a model; layout and drawing never read Mermaid |
| Step-by-step walkthroughs a reader can leave and come back to | Ilograph | %% step: comments |
| Pick a thing, see only what it touches | Ilograph | In every page |
| Flows played over a diagram that is already there | IcePanel | A step is a path over the flowchart |
| A legend made for you | Structurizr | From the kinds of box the diagram uses |
| Colours as variables, so a theme is a few values | beautiful-mermaid | The design's palette |
| A still version for where a page cannot go | D2, Archify | --format svg; notes print as an appendix |
What is Merlive's own: Mermaid stays the source of truth, placement is by named rule, nothing is configured by hand, and the colours are yours, read from your site, but checked, for contrast and for colour-blind readers, before anything is drawn in them.
Milestones
- 0.1, released. Flowcharts, state diagrams and sequence diagrams: parse, place, check, draw; steps and notes; setup that reads a project's colours and choices with nothing asked; the two colour rules. A sequence diagram has rules of its own (SEQUENCE.md) and is gone through one message at a time.
- 0.2, released: class diagrams and entity diagrams. Boxes that list rows under their name, in one width and their own height; links that end in "is a", "has" or how many.
- 0.3, more boxes and links (in hand). Requirement, C4, architecture and block diagrams.
- Next, where Mermaid still reads better. A grid its author placed (block diagrams); a junction as a point; Forks and joins as bars in a state diagram; a group's own direction; the rest of the newer shapes.
- Then the other kinds, picked by what real documents use: those of boxes and links first (requirement, C4, block, architecture), which the placement there is can draw; then timelines, charts and trees, each of which needs a way of drawing of its own.
- Setup that reads more. Colours kept in a Tailwind config or a component's own styles; a dark look made from a light one when a site has none; the setup page saving its settings itself.
- Later. Pan, zoom and search for diagrams past about twenty boxes; a build step for docs sites (Docusaurus first); an audit mode over a whole repository; evals for the skill; a film export.
PLAN.md says where the work stands today and what to do next.
What the corpus found
corpus/ holds one sample of everything Mermaid documents, and COVERAGE.md says what Merlive draws of each, written again whenever the code changes. Its first run found seven things. Six are done: front matter, & between boxes, everything written with @{ … }, what is at the ends of a link, the older shapes, and words (entity codes, Markdown strings, icons). What is left of flowcharts:
- Bottom-to-top and right-to-left are drawn the other way round, and said.
- A group's own direction is read past: it runs the way the rest does.
- Twelve shapes are drawn as themselves; the newer ones are not yet: a document, a cloud, a person and the rest of the
@{ shape }list are boxes that say what they are in words.
Reading & brought out a fourth thing, now done: two boxes that each lead to the same two (A & B --> C & D) were refused. The lines that swap sides no longer lie on each other, and P4 allows the one crossing such a diagram cannot be drawn without. Three boxes that each lead to the same three are still refused: that forces nine crossings, and placement does not yet find the order that has only those.
One thing no check caught was seen in the pictures: a line coming into a group from above ran through the group's name. It is a rule now, P8, with a check.
What it will not become
- A diagram editor. The Mermaid is edited as text; Merlive never asks anyone to drag a box.
- A second diagram language. Hints are comments in Mermaid, and there are four of them.
Written from docs/ROADMAP.md in the repository, so the two cannot disagree.